Answer the question
In order to leave comments, you need to log in
Django 1.9 Flatpages, how to set URLS?
Installed as stated here
when running migrate swears at URLS, an error is displayed
File "/home/nariman/landing/landing/urls.py", line 23, in
url(r'^pages/', include('django.contrib.flatpages.urls')),
NameError: name 'include' is not defined
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^pages/', include('django.contrib.flatpages.urls')),
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question