﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5901	r'^polls/' vs r'^admin/'	anonymous	nobody	"From a new user perspective... This part is a big stumbling block for me.
This page documents how to get the polls working in the urls.py but disables the admin page... It should be expanded to include how to keep the admin site working... The instinctual answer would be to add the following:

{{{
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^polls/', include('mysite.polls.urls')),
)
}}}


but this doesn't work because:


{{{
ViewDoesNotExist at /admin/
Tried vote in module mysite.polls.views. Error was: 'module' object has no attribute 'vote'

Request Method:	GET
Request URL:	http://mysite/admin/
Exception Type:	ViewDoesNotExist
Exception Value:	Tried vote in module mysite.polls.views. Error was: 'module' object has no attribute 'vote'
Exception Location:	/sw/lib/python2.4/site-packages/django/core/urlresolvers.py in _get_callback, line 184
Python Executable:	/sw/sbin/apache2
Python Version:	2.4.3
}}}

"		closed	Documentation	dev		invalid	admin site		Unreviewed	0	0	0	0	0	0
