On Monday 05 June 2017 11:24:08 kit...@gmail.com wrote: > I was attempting the tutorial titled "Writing your first Django app". > The tutorial appears to be very simple, but it does not seem to work. > I have frustrated myself by attempting to do it from scratch after > failing last week. If I could get this app to work I could fix the > tutorial for you. It looks like a lot of people have similar gripes > about the directions not working.
You went into parent/mysite/mysite/ then created polls there. That shouldn't even work, because there is no manage.py inside parent/mysite/mysite/. So you adapted and went further down the rabbit hole. The tutorial clearly states: "In this tutorial, we’ll create our poll app right next to your manage.py file so that it can be imported as its own top-level module, rather than a submodule of mysite. To create your app, make sure you’re in the same directory as manage.py and type this command" So two times it's pointing you to the right directory. > /home/me/parent/mysite/mysite/ > __init__.py > polls/ And if you don't, you end up with polls in the wrong place. For the people who answered "import polls", it's wrong and only aggrevates the issue (poll does not have the correct name in polls.apps.PollsConfig for django to find it's models). On top of that, polls.urls is referenced by string, so importing won't fix a thing. The tutoral could probably be improved by listing the complete tree after creating polls app, showing mysite as sister directory, but honestly, it told you exactly what to do twice. -- Melvyn Sopacua -- 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+unsubscr...@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/8480695.TbJasx0xAn%40devstation. For more options, visit https://groups.google.com/d/optout.