Commit a29488f2 authored by chris's avatar chris

forgot some files

parent 96ed7a8a
...@@ -91,7 +91,10 @@ INSTALLED_APPS = ( ...@@ -91,7 +91,10 @@ INSTALLED_APPS = (
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'nuages.sondage', 'django.contrib.admin',
'django.contrib.admindocs',
'sondage',
'request'
) )
LOGIN_URL = '/user/login/' LOGIN_URL = '/user/login/'
......
...@@ -91,7 +91,10 @@ INSTALLED_APPS = ( ...@@ -91,7 +91,10 @@ INSTALLED_APPS = (
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'nuages.sondage', 'django.contrib.admin',
'django.contrib.admindocs',
'sondage',
'request'
) )
LOGIN_URL = '/user/login/' LOGIN_URL = '/user/login/'
......
...@@ -4,8 +4,8 @@ from nuages.sondage.models import Poll ...@@ -4,8 +4,8 @@ from nuages.sondage.models import Poll
from nuages.sondage.forms import PollForm from nuages.sondage.forms import PollForm
# Uncomment the next two lines to enable the admin: # Uncomment the next two lines to enable the admin:
# from django.contrib import admin from django.contrib import admin
# admin.autodiscover() admin.autodiscover()
info_dict = { info_dict = {
...@@ -22,12 +22,8 @@ urlpatterns = patterns('', ...@@ -22,12 +22,8 @@ urlpatterns = patterns('',
# Example: # Example:
# (r'^nuage/', include('nuage.foo.urls')), # (r'^nuage/', include('nuage.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs' (r'^admin/', include(admin.site.urls)),
# to INSTALLED_APPS to enable admin documentation: (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
(r'^$', 'django.views.generic.list_detail.object_list', dict(info_dict, template_name='index.html')), (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'}), (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