Commit b1506e52 authored by Jocelyn Delalande's avatar Jocelyn Delalande

converted settings examples to Django1.4 refs #87

parent 93126908
# -*- coding: utf-8 -*-
# Django settings for LettraVox project.
# -*- coding: utf-8 -*-
# Django settings for project.
from os.path import dirname, abspath
SITE_NAME = "Hostile au Style"
DEBUG = True
TEMPLATE_DEBUG = DEBUG
#Custom:
SITE_ROOT = '/var/www/hostile-au-style.fr/test/LettraVox'
SITE_ROOT = dirname(__file__)
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
......@@ -18,9 +19,12 @@ MANAGERS = ADMINS
# Pour les mail automatisés (notifications de commentaires)
DEFAULT_FROM_EMAIL = "no-reply@hostile-au-style.fr"
DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = SITE_ROOT + '/data.sqlite' # Or path to database file if using sqlite3.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': SITE_ROOT + '/data.sqlite'
}
}
# Do we have to force the name used for example in link generation ?
FORCE_SCRIPT_NAME= ""
......@@ -56,9 +60,8 @@ SECRET_KEY = ')t3j^l(!z^o$fgg8gm^j(0aw3@)9x^1!@@zsf6s1%b@0dlx*m('
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader'
)
MIDDLEWARE_CLASSES = (
......@@ -70,7 +73,7 @@ MIDDLEWARE_CLASSES = (
# 'djprofiler.ProfileMiddleware'
)
ROOT_URLCONF = 'LettraVox.urls'
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates".
......@@ -89,16 +92,16 @@ INSTALLED_APPS = (
'tagging',
'captcha',
'captchaproxy',
'LettraVox.texte',
'LettraVox.bugreport',
'LettraVox.articles',
'debug_toolbar'
'texte',
'bugreport',
'articles',
# 'debug_toolbar'
)
AUTH_PROFILE_MODULE = "texte.ProfilAuteur"
## LettraVox settings
## settings
# Lorsque un utilisateur ne publie pas de photo.
DEFAULT_PHOTO='portraits/default.png'#TODO pas implémenté ?
......@@ -111,9 +114,9 @@ PDF_ROOT = '%s/pdf' % MEDIA_ROOT
PDF_URL = '%s/pdf' % MEDIA_URL
BANNERS = (MEDIA_URL + '/img/banniere1.png',
MEDIA_URL + '/img/banniere2.png',
MEDIA_URL + '/img/banniere3.png',
MEDIA_URL + '/img/banniere4.png',
MEDIA_URL + '/img/banniere2.png',
MEDIA_URL + '/img/banniere3.png',
MEDIA_URL + '/img/banniere4.png',
MEDIA_URL + '/img/banniere5.png')
INTERNAL_IPS = ('127.0.0.1',)
......
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