and it seems the problem is about creating the double directory, and when doing startapp it creates a directory parallel to the other one created?
Daniel Roseman
unread,
Oct 23, 2014, 11:53:07 AM10/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Sorry, I've no idea what you mean. `startproject` will create the outer project directory and the inner settings/urls directory, but doesn't create any views. `startapp` will create another directory, inside the project directory, containing views and models. None of these need moving anywhere.
--
DR.
Aliane Abdelouahab
unread,
Oct 23, 2014, 4:45:18 PM10/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
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
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
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.
Aliane Abdelouahab
unread,
Oct 23, 2014, 5:25:23 PM10/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message