diff options
Diffstat (limited to 'example_project')
| -rw-r--r-- | example_project/local_settings.py.pip.sample | 42 | ||||
| -rw-r--r-- | example_project/local_settings.py.sample | 3 | ||||
| -rwxr-xr-x | example_project/manage.py | 2 | ||||
| -rw-r--r-- | example_project/settings.py | 9 | ||||
| -rw-r--r-- | example_project/urls.py | 5 |
5 files changed, 52 insertions, 9 deletions
diff --git a/example_project/local_settings.py.pip.sample b/example_project/local_settings.py.pip.sample new file mode 100644 index 0000000..6b6cffc --- /dev/null +++ b/example_project/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') diff --git a/example_project/local_settings.py.sample b/example_project/local_settings.py.sample index 9ccd41d..b5939af 100644 --- a/example_project/local_settings.py.sample +++ b/example_project/local_settings.py.sample @@ -9,6 +9,9 @@ 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'), ) diff --git a/example_project/manage.py b/example_project/manage.py index 300eab0..301acc2 100755 --- a/example_project/manage.py +++ b/example_project/manage.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os, sys from django.core.management import execute_manager sys.path.insert(0, os.path.abspath('./..')) diff --git a/example_project/settings.py b/example_project/settings.py index 372f1e6..45c7af2 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -151,14 +151,6 @@ MEDIA_ROOT = ROOT_PATH + 'media/' # Example: "http://media.lawrence.com" MEDIA_URL = '/media/' -# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a -# trailing slash. -# deprecated in Django 1.4 but left for Django 1.3 -ADMIN_MEDIA_PREFIX = '/admin-media/' - -# Make this unique, and don't share it with anybody. -SECRET_KEY = 'achanger_!ToChange!' - # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', @@ -181,6 +173,7 @@ TEMPLATE_DIRS = [ # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ROOT_PATH + 'templates', + ROOT_PATH + '../chimere/templates', ] TEMPLATE_CONTEXT_PROCESSORS = ( diff --git a/example_project/urls.py b/example_project/urls.py index a49cb4f..e37ae53 100644 --- a/example_project/urls.py +++ b/example_project/urls.py @@ -28,6 +28,11 @@ urlpatterns = patterns('django.views.static', (r'^%s(?P<path>.*)' % settings.MEDIA_URL[1:], 'serve', {'document_root': settings.MEDIA_ROOT}), ) + +if "tinymce" in settings.INSTALLED_APPS: + urlpatterns += patterns('django.views.static', + (r'^tinymce/', include('tinymce.urls')),) + urlpatterns += staticfiles_urlpatterns() urlpatterns += patterns('', |
