On Feb 9, 2016 4:22 PM, <michaelatnanoc...@gmail.com> wrote:
>
> Hi,
>
> I am running into the same problem as this:
>
http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial
>
> Now I can just follow the Alasdair's recommendation and delete the
polls/url.py file, but the tutorial is very clear about having two separate
urls.py.
> Is this a mistake in the tutorial?

If you follow the official tutorial, you will have two urls.py files.

One is located at mysite/mysite/urls.py, having been created by the
'startproject' command. This is your primary urls.py file that is
referenced in your settings.py as the starting point for all URL lookups by
default, as automatically configured by the 'startproject' command.

The second will be located at mysite/polls/urls.py, and is created by the
'startapp' command listed in the tutorial. This file is referenced by your
primary project urls.py using an include() function. Any URL's that match
the regular expression for the include statement in your primary file will
then begin searching through your app urls.py for further matches.

If you are on a Linux host, everything is case-sensitive, so make sure your
upper/lower case code references match your actual directory structure.

-James

-- 
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/CA%2Be%2BciU%2B91xsZ-fC7JUYMiL_n4%2BEJu%3D8f7oWXqOmqe1etxUyQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to