summaryrefslogtreecommitdiff
path: root/papillon/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'papillon/settings.py')
-rw-r--r--papillon/settings.py25
1 files changed, 11 insertions, 14 deletions
diff --git a/papillon/settings.py b/papillon/settings.py
index 0f3dd65..50973bc 100644
--- a/papillon/settings.py
+++ b/papillon/settings.py
@@ -12,9 +12,11 @@ PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
EXTRA_URL = ''
+STATIC_URL = '/static/'
+
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
+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
@@ -27,16 +29,13 @@ 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.
+ 'NAME': PROJECT_PATH + '/papillon.db',
}
}
# Local time zone for this installation. Choices can be found here:
-# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
+# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html
+# #DATETIME-TIMEZONE-SET-TABLE
# although not all variations may be possible on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
@@ -55,7 +54,7 @@ USE_I18N = True
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = PROJECT_PATH + '/static/'
+MEDIA_ROOT = PROJECT_PATH + '/media/'
# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com"
@@ -87,9 +86,6 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF = 'papillon.urls'
TEMPLATE_DIRS = (
- # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
- # Always use forward slashes, even on Windows.
- # Don't forget to use absolute paths, not relative paths.
PROJECT_PATH + '/templates',
)
@@ -101,6 +97,7 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.markup',
+ 'django.contrib.staticfiles',
# third parties
'south',
@@ -110,8 +107,8 @@ INSTALLED_APPS = (
)
LANGUAGES = (
- ('fr', 'Français'),
- ('en', 'English'),
+ ('fr', 'Français'),
+ ('en', 'English'),
)
try: