django-cms
authorOlivier Larchevêque <olivier.larcheveque@auf.org>
Tue, 24 Jul 2012 16:42:42 +0000 (12:42 -0400)
committerOlivier Larchevêque <olivier.larcheveque@auf.org>
Tue, 24 Jul 2012 16:42:42 +0000 (12:42 -0400)
.gitignore
buildout.cfg
project/settings.py
project/templates/cms/vide.html [new file with mode: 0644]
project/urls.py
versions.cfg

index c8c4403..0d4b6e0 100644 (file)
@@ -10,6 +10,7 @@ src/*
 
 # DB de dev
 *.db
+*.sqlite
 
 # restants de merge
 *.orig
index 8801c03..9663877 100644 (file)
@@ -15,6 +15,7 @@ eggs =
     django
     south
     django-admin-tools
+    django-cms
 
 [django]  
 recipe = auf.recipe.django 
index a8b2ac5..c2fe1e4 100644 (file)
@@ -17,6 +17,10 @@ MANAGERS = ADMINS
 TIME_ZONE = 'America/Montreal'
 
 LANGUAGE_CODE = 'fr-ca'
+gettext = lambda x: x
+CMS_LANGUAGES = (
+    ('fr', gettext('French')),
+)
 
 PROJECT_ROOT = os.path.dirname(__file__)
 SITE_ROOT = os.path.dirname(PROJECT_ROOT)
@@ -42,12 +46,37 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'django.contrib.admin',
     'django.contrib.staticfiles',
+    'django.contrib.sites',
+    'south',
+
+    # django-cms
+    'cms',
+    'mptt',
+    'menus',
     'south',
+    'sekizai',
+
+    # django-cms plugins
+    'cms.plugins.text',
+    'cms.plugins.picture',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.middleware.common.CommonMiddleware',
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.middleware.csrf.CsrfViewMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+    'django.contrib.messages.middleware.MessageMiddleware',
+    'cms.middleware.page.CurrentPageMiddleware',
+    'cms.middleware.user.CurrentUserMiddleware',
+    'cms.middleware.toolbar.ToolbarMiddleware',
 )
 
 TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
     'django.core.context_processors.static',
     'django.core.context_processors.request',
+    'cms.context_processors.media',
+    'sekizai.context_processors.sekizai',
 )
 
 
@@ -59,4 +88,8 @@ SOUTH_TESTS_MIGRATE = False
 
 ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
 
+CMS_TEMPLATES = (
+        ('cms/vide.html', u'Gabarit vide'),
+)
+
 from conf import *
diff --git a/project/templates/cms/vide.html b/project/templates/cms/vide.html
new file mode 100644 (file)
index 0000000..f8b5f83
--- /dev/null
@@ -0,0 +1,13 @@
+{% load cms_tags sekizai_tags %}
+<html>
+  <head>
+      {% render_block "css" %}
+  </head>
+  <body>
+      {% cms_toolbar %}
+      {% placeholder base_content %}
+      {% block base_content%}{% endblock %}
+      {% render_block "js" %}
+  </body>
+</html>
+
index c29c8f2..8c504bd 100644 (file)
@@ -25,3 +25,8 @@ if settings.DEBUG:
         'django.views.static.serve', {
         'document_root': settings.MEDIA_ROOT, }),
         )
+
+# django-cms
+urlpatterns += patterns('',
+    url(r'^', include('cms.urls')),
+    )
index 9fe715a..206485e 100644 (file)
@@ -18,3 +18,13 @@ zc.buildout = 1.5.2
 # auf.recipe.django==2.0
 # djangorecipe==1.2.1
 zc.recipe.egg = 1.3.2
+
+# Added by Buildout Versions at 2012-07-24 12:24:41.132808
+django-classy-tags = 0.3.4.1
+django-cms = 2.3
+django-mptt = 0.5.2
+django-sekizai = 0.6.1
+
+# Required by:
+# django-cms==2.3
+html5lib = 0.95