Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as text by berat ( 17 years ago )
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^mysite/', include('mysite.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
#(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
# URLconf
(r'^$', 'django.views.generic.list_detail.object_list', info_dict),
(r'^(?P<object_id>d+)/$', 'django.views.generic.list_detail.object_detail', info_dict),
url(r'^(?P<object_id>d+)/results/$', 'django.views.generic.list_detail.object_detail', dict(info_dict, template_name='polls/results.html'), 'poll_results'),
(r'^(?P<poll_id>d+)/vote/$', 'mysite.polls.views.vote'),
)
NameError at /admin/
name 'info_dict' is not defined
Revise this Paste