Tuesday, April 26, 2016

Re: New to Django (stuck at the end of the tutorial)

Since 1.9, admin.site.urls is a special case, and you should not use include(). If you do, you'll trigger some deprecation warnings due to changes to include().
 
On Tuesday, April 26, 2016 at 6:33:40 PM UTC+2, Nikhil Beniwal wrote:
The Problem is in your line 21. 

admin.site.urls should be wrapped inside include like :-

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

On Tuesday, April 26, 2016 at 1:03:09 PM UTC+5:30, Cronos Cto wrote:


Hello Django Lovers.

So I started on Django as project of mine. Seems like a great first framework to start on. At the moment I am stuck at this:


This was after what I encountered at the end of the Django oficial post app tutorial.

I tried several ways to solve it. The problem seems to lay in the url.py file, but I can not seem to solve it.


Thank you to anyone that can help me solve it.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/88fb3e35-1bd0-4070-ab02-1683263273a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment