<s> from django . conf . urls import patterns , include , url <EOL> from django . conf . urls . static import static <EOL> from django . conf import settings <EOL> from django . contrib import admin <EOL> from wagtail . wagtailadmin import urls as wagtailadmin_urls <EOL> from wagtail . wagtailsearch import urls as wagtailsearch_urls <EOL> from wagtail . wagtaildocs import urls as wagtaildocs_urls <EOL> from wagtail . wagtailcore import urls as wagtail_urls <EOL> from wagtail . contrib . wagtailsitemaps . views import sitemap <EOL> from feeds . feeds import BasicFeed , ExtendedFeed <EOL> admin . autodiscover ( ) <EOL> urlpatterns = [ <EOL> url ( r'<STR_LIT>' , include ( admin . site . urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( wagtailadmin_urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( wagtailsearch_urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( wagtaildocs_urls ) ) , <EOL> url ( '<STR_LIT>' , sitemap ) , <EOL> url ( r'<STR_LIT>' , BasicFeed ( ) , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , ExtendedFeed ( ) , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , include ( wagtail_urls ) ) , <EOL> ] <EOL> if settings . DEBUG : <EOL> from django . contrib . staticfiles . urls import staticfiles_urlpatterns <EOL> from django . views . generic . base import RedirectView <EOL> urlpatterns += staticfiles_urlpatterns ( ) <EOL> urlpatterns += static ( settings . MEDIA_URL , document_root = settings . MEDIA_ROOT ) <EOL> urlpatterns += [ <EOL> url ( r'<STR_LIT>' , RedirectView . as_view ( url = settings . STATIC_URL + '<STR_LIT>' , permanent = True ) ) <EOL> ] </s>
