I am adding a login page to my app and it keep saying that it can't find the login.html This might be a long post, but I want to give any needed info.
I put in urlpatterns = patterns('intranet.timesheets.views', to set my app path as thr root, but datebrowse and admin comes from django. Can I have another urlpatterns that I can leave blank for the django ones? My urls looks like this: from intranet.timesheets.models import Poll from django.contrib import databrowse from django.contrib.auth.decorators import login_required urlpatterns = patterns('intranet.timesheets.views', #(r, 'login'), (r'^$', 'index'), (r'^(?P<poll_id>\d+)/$', 'detail'), (r'^(?P<poll_id>\d+)/results/$', 'results'), (r'^(?P<poll_id>\d+)/vote/$', 'vote'), (r'^admin/(.*)', admin.site.root), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^db/(.*)', login_required(databrowse.site.root)), (r'^accounts/login/$', 'login'), ) my settings.py has this for template localtions: "/home/bryant/Django-1.0/intranet/timesheets/" "/home/bryant/Django-1.0/django/contrib/databrowse/templates/ databrowse" ------------------- I also was tried to make my index.html page with "request.user", as show in http://docs.djangoproject.com/en/dev/topics/auth/#topics-auth it say to put in : if request.user.is_authenticated(): # Do something for authenticated users. else: # Do something for anonymous users. but the view has return HttpResponse("Hello, world. You're at the poll index.") so that is what it says. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---