summaryrefslogtreecommitdiff
path: root/local_settings.py.pip.sample
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-09 17:47:02 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-09 17:47:02 +0200
commita6153b8b87e88130068e0b83986516417f8f5257 (patch)
tree06b132d292d4446797f3edd8410bae8f8854b58d /local_settings.py.pip.sample
parent749810918b0e3bf3a256af99ef8e7f89c52ad14c (diff)
downloadChimère - projet de référence-a6153b8b87e88130068e0b83986516417f8f5257.tar.bz2
Chimère - projet de référence-a6153b8b87e88130068e0b83986516417f8f5257.zip
Integration of Alban Tiberghien <alban.tiberghien@gmail.com> changes to make the application more 'pip' and 'virtualenv' friendly
Changes has been integrated in alternate files 'local_settings.py.pip.sample' and 'apache-wsgi-pip.conf' in order to not conflict with installation not using 'pip'. The changes are: - Add django-extensions - Install tinymce as 3rd app - Minor fix in jquery path - Fix shabang in order to work with virtual environment As I want to minimise the size of the tracked files in the Git repository jQuery-UI files were not included (as a small fix Google CDN is set by default for jquery-UI).
Diffstat (limited to 'local_settings.py.pip.sample')
-rw-r--r--local_settings.py.pip.sample42
1 files changed, 42 insertions, 0 deletions
diff --git a/local_settings.py.pip.sample b/local_settings.py.pip.sample
new file mode 100644
index 0000000..6b6cffc
--- /dev/null
+++ b/local_settings.py.pip.sample
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# rename this file to local_settings.py and overload settings in this file
+
+import os
+
+STATIC_URL = '/static/'
+
+CHIMERE_OSM_API_URL = 'api06.dev.openstreetmap.org' # test URL
+CHIMERE_OSM_USER = 'osm_user'
+CHIMERE_OSM_PASSWORD = 'osm_pass'
+
+# Make this string unique, and don't share it with anybody.
+SECRET_KEY = ''
+
+ADMINS = (
+ # ('Your Name', 'your_email@domain.com'),
+)
+
+MANAGERS = ADMINS
+
+DATABASES = {
+ 'default': {
+ 'NAME': 'chimere',
+ 'ENGINE': 'django.contrib.gis.db.backends.postgis',
+ 'HOST': 'localhost',
+ 'PORT': '5432',
+ 'USER': 'postgres',
+ 'PASSWORD': '',
+ },
+}
+
+ROOT_URLCONF = 'example_project.urls'
+
+INSTALLED_APPS += ['django_extensions',
+ 'tinymce']
+
+TINYMCE_URL = '%stiny_mce/' % STATIC_URL
+JQUERY_JS_URLS = ('%sjquery/jquery.js' % STATIC_URL,
+ 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js')
+JQUERY_CSS_URLS = ('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css')