Thursday, October 23, 2014

Re: django-admin creates the views.py files in the wrong place!

On Thursday, 23 October 2014 21:45:18 UTC+1, Aliane Abdelouahab wrote:
Try the code like that, it will not work,

now move the views.py from /rango to the initial directory where the is the manage.py (/abdou) and it will work

Nope; that is the correct structure, as it is, with no need to move anything. The problem is not with the structure, but with your rango/urls.py: you did not follow the instructions correctly, and have 'views.index' in quotes, rather than referring directly to the function as shown in section 4.5 of the Tango docs.
--
DR.

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1cd9e0e2-6b0e-44de-9742-0e5fba92620e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment