<s> from __future__ import unicode_literals <EOL> from django . conf . urls import include , url <EOL> from django . conf import settings <EOL> from django . conf . urls . static import static <EOL> from django . contrib import admin <EOL> import spirit . urls <EOL> from django . contrib . auth . decorators import login_required <EOL> admin . site . login = login_required ( admin . site . login ) <EOL> urlpatterns = [ <EOL> url ( r'<STR_LIT>' , include ( spirit . urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( admin . site . urls ) ) , <EOL> ] <EOL> if settings . DEBUG : <EOL> urlpatterns += static ( settings . MEDIA_URL , document_root = settings . MEDIA_ROOT ) </s>
