urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', TemplateView.as_view(template_name='home.html')),
url(r'^resturants/$', resturant_ListView.as_view(),
url(r'^resturants/punjabi/$', punjabiresturant_ListView.as_view(),
url(r'^resturants/thai/$', thairesturant_ListView.as_view(),
url(r'^about/$', TemplateView.as_view(template_name='about.html')),
url(r'^contact/$',TemplateView.as_view(template_name='contact.html')),#ERROR
]
Getting error in urls.py .Getting error in urls.py .Getting error in urls.py
There is a comma at the end of the line. Remove it
url(r'^contact/$',TemplateView.as_view(template_name='contact.html')),#ERROR
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.