I started going through The Definitive Guide to Django and now would like to start working on my own project. I have Django set up and everything. I created a project called djangoproject1. Basically what I would like is that the main page is a registration/login page. My urls.py for djangoproject1 looks like this:
urlpatterns = patterns('',
(r'^/',include('djangoproject1.authentication.urls')),
)
I have a pydev package (application) under djangoproject1 called authentication which has an urls.py that looks like this:
urlpatterns = patterns('',
(r'^$',direct_to_template,{'template':'index.html'}),
)
A couple of questions:
- I'm getting a page not found error which means I'm probably doing my mapping/include incorrectly
- If I don't specify anything under TEMPLATE_DIRS in settings.py, my understanding is that Django will look in each package for a directory named templates. Is that correct?