diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-06-15 12:45:25 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-06-15 12:45:25 +0200 |
commit | aae0f5143ea6bb40459a4bc5a5b738d7852a6ea3 (patch) | |
tree | 5c17c2dd872cfe3eb3e91aa4b160892f42beff5d /papillon/local_settings.py.sample | |
parent | 7d9b6fca686e018a476155834b75be951a23fd3d (diff) | |
download | Papillon-aae0f5143ea6bb40459a4bc5a5b738d7852a6ea3.tar.bz2 Papillon-aae0f5143ea6bb40459a4bc5a5b738d7852a6ea3.zip |
Upgrade source code to work with Django 1.4v0.4.0
* cleaner way to manage settings.py
* fix feeds for Django 1.
* fix settinsg for Django 1.4
* update documentation
Diffstat (limited to 'papillon/local_settings.py.sample')
-rw-r--r-- | papillon/local_settings.py.sample | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/papillon/local_settings.py.sample b/papillon/local_settings.py.sample new file mode 100644 index 0000000..8070842 --- /dev/null +++ b/papillon/local_settings.py.sample @@ -0,0 +1,38 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# copy this file to local_settings.py and modify it to your needs + +DEBUG=False + +import os +PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) + +# Make this unique, and don't share it with anybody. +SECRET_KEY = 'replace_this_with_something_else' + +# if you have set an EXTRA_URL set the full path +EXTRA_URL = '' + +TINYMCE_URL = 'http://localhost/tinymce/' +MAX_COMMENT_NB = 10 # max number of comments by poll - 0 to disable comments +ALLOW_FRONTPAGE_POLL = False # disabled is recommanded for public instance +# time to live in days +DAYS_TO_LIVE = 30 + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), +) + +MANAGERS = ADMINS + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': PROJECT_PATH + '/papillon.db', # Or path to database file if using sqlite3. + 'USER': '', # Not used with sqlite3. + 'PASSWORD': '', # Not used with sqlite3. + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + } +} |