+# -*- coding: utf-8 -*-
# Django settings for myslice project.
+import os
+gettext = lambda s: s
+PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
+
import os.path
DEBUG = True
####################
ADMINS = (
- # ('Your Name', 'your_email@example.com'),
+ # ('your_name', 'your_email@test.com'),
)
MANAGERS = ADMINS
# Mail configuration
-#EMAIL_HOST = 'tibre.lip6.fr'
-#EMAIL_PORT = 465
-DEFAULT_FROM_EMAIL = "support@myslice.info"
+#DEFAULT_FROM_EMAIL = "root@theseus.ipv6.lip6.fr"
+#EMAIL_HOST_PASSWORD = "mypassword"
+
+EMAIL_HOST = "localhost"
+EMAIL_PORT = 25
+EMAIL_USE_TLS = False
+
+
+
+
DATABASES = {
'default': {
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
+
+ # CMS
+ 'cms.middleware.multilingual.MultilingualURLMiddleware',
+ 'cms.middleware.page.CurrentPageMiddleware',
+ 'cms.middleware.user.CurrentUserMiddleware',
+ 'cms.middleware.toolbar.ToolbarMiddleware',
)
+# CMS
+TEMPLATE_CONTEXT_PROCESSORS = (
+ 'django.contrib.auth.context_processors.auth',
+ 'django.core.context_processors.i18n',
+ 'django.core.context_processors.request',
+ 'django.core.context_processors.media',
+ 'django.core.context_processors.static',
+ 'cms.context_processors.media',
+ 'sekizai.context_processors.sekizai',
+)
+
+
ROOT_URLCONF = 'myslice.urls'
# Python dotted path to the WSGI application used by Django's runserver.
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(ROOT,"all-templates"),
+
+ # CMS
+ os.path.join(PROJECT_PATH, "templates"),
)
+# CMS
+CMS_TEMPLATES = (
+ ('template_1.html', 'Template One'),
+ ('template_2.html', 'Template Two'),
+)
+LANGUAGES = [
+ ('en', 'English'),
+]
+
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'views',
'trash',
# Uncomment the next line to enable the admin:
- # 'django.contrib.admin',
+ 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'portal',
# DEPRECATED # 'django.contrib.auth',
# DEPRECATED # 'django.contrib.sites',
# DEPRECATED # 'registration',
+
+ # CMS : Django CMS
+ 'cms', # django CMS itself
+ 'mptt', # utilities for implementing a modified pre-order traversal tree
+ 'menus', # helper for model independent hierarchical website navigation
+ 'south', # intelligent schema and data migrations
+ 'sekizai', # for javascript and css management
+ # + plugins:
+ 'cms.plugins.flash',
+ 'cms.plugins.googlemap'
+ 'cms.plugins.link',
+ 'cms.plugins.snippet',
+ 'cms.plugins.text',
+ 'cms.plugins.twitter',
+ # either
+ 'cms.plugins.file',
+ 'cms.plugins.picture',
+ 'cms.plugins.teaser',
+ 'cms.plugins.video',
+ # or
+ #'filer',
+ #'cmsplugin_filer_file',
+ #'cmsplugin_filer_folder',
+ #'cmsplugin_filer_image',
+ #'cmsplugin_filer_teaser',
+ #'cmsplugin_filer_video',
+
+ # Versioning of content
+ 'reversion',
)
ACCOUNT_ACTIVATION_DAYS = 7 # One-week activation window; you may, of course, use a different value.