+# -*- 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'),
+ ('admin', 'your_email@test.com'),
)
MANAGERS = ADMINS
+# Mail configuration
+#DEFAULT_FROM_EMAIL = "root@theseus.ipv6.lip6.fr"
+#EMAIL_HOST_PASSWORD = "mypassword"
+
+EMAIL_HOST = "localhost"
+EMAIL_PORT = 25
+EMAIL_USE_TLS = False
+
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
+
+ 'django.middleware.locale.LocaleMiddleware',
+ 'django.middleware.doc.XViewMiddleware',
+
+ # CMS
+ 'cms.middleware.page.CurrentPageMiddleware',
+ 'cms.middleware.user.CurrentUserMiddleware',
+ 'cms.middleware.toolbar.ToolbarMiddleware',
+ 'cms.middleware.language.LanguageCookieMiddleware',
+)
+
+# 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.formtools',
+# DEPRECATED ## 'crispy_forms',
+# DEPRECATED #
+# DEPRECATED # # User registration
+# 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.
+
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
}
}
-AUTHENTICATION_BACKENDS = ( 'auth.backend.MyCustomBackend', 'auth.manifoldbackend.ManifoldBackend', )
+AUTHENTICATION_BACKENDS = (
+ 'auth.backend.MyCustomBackend',
+ 'auth.manifoldbackend.ManifoldBackend',
+ # This is required to login as an admin
+ 'django.contrib.auth.backends.ModelBackend'
+)
### the view to redirect malformed (i.e. with a wrong CSRF) incoming requests
# without this setting django will return a 403 forbidden error, which is fine