DjangoPatternsBook / superbook

SuperBook is a social network for superheroes
MIT License
63 stars 29 forks source link

RemovedInDjango110Warning warnings in Django==1.9.7 #9

Open kirkdebaets opened 7 years ago

kirkdebaets commented 7 years ago

The following is generated when you attempt to migrate and the tutorial is non-operational:

/home/proto/sbenv/lib64/python3.4/site-packages/django/template/utils.py:37: RemovedInDjango110Warning: You haven't defined a TEMPLATES setting. You must do so before upgrading to Django 1.10. Otherwise Django will be unable to load templates. "unable to load templates.", RemovedInDjango110Warning)

/home/proto/superbook/src/superbook/urls.py:17: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead. url(r'^admin/', include(admin.site.urls)),

abduladi commented 7 years ago

replace your ulr pattern to this list below. I am also looking for a solution for the Templating error

urlpatterns = [ url(r'^$', SignInAndSignUp.as_view(template_name='home.html'), name='home'), url(r'^about/$', AboutView.as_view(), name='about'), url(r'^accounts/logout$', LogoutView.as_view(), name='logout'),

url(r'^admin/', include(admin.site.urls)),

]