Commit a29488f2 authored by chris's avatar chris

forgot some files

parent 96ed7a8a
......@@ -91,7 +91,10 @@ INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'nuages.sondage',
'django.contrib.admin',
'django.contrib.admindocs',
'sondage',
'request'
)
LOGIN_URL = '/user/login/'
......
......@@ -91,7 +91,10 @@ INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'nuages.sondage',
'django.contrib.admin',
'django.contrib.admindocs',
'sondage',
'request'
)
LOGIN_URL = '/user/login/'
......
......@@ -4,8 +4,8 @@ from nuages.sondage.models import Poll
from nuages.sondage.forms import PollForm
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from django.contrib import admin
admin.autodiscover()
info_dict = {
......@@ -22,12 +22,8 @@ urlpatterns = patterns('',
# Example:
# (r'^nuage/', include('nuage.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/', include(admin.site.urls)),
(r'^admin/', include(admin.site.urls)),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^$', 'django.views.generic.list_detail.object_list', dict(info_dict, template_name='index.html')),
(r'^nuages$', 'django.views.generic.simple.direct_to_template', {'template': 'nuages.html'}),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment