summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-09-09 13:44:25 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-09-09 13:44:25 +0200
commit3f785c373404999b4bf274b26f323c01f752640f (patch)
treee6aa66c98111ae67b5ea8bca52fd4f9ee248b154 /example_project/settings.py
parente0d7c3e8dd7273e0a613981b066704cbe3e231a7 (diff)
downloadIshtar-3f785c373404999b4bf274b26f323c01f752640f.tar.bz2
Ishtar-3f785c373404999b4bf274b26f323c01f752640f.zip
Adapt CSS, templates to new version of JS libraries
Diffstat (limited to 'example_project/settings.py')
-rw-r--r--example_project/settings.py46
1 files changed, 22 insertions, 24 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 901987905..c669ea954 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -2,9 +2,8 @@
# -*- coding: utf-8 -*-
# Django settings for ishtar project.
-import os, sys
-
-from django.utils.translation import gettext_lazy as _
+import os
+import sys
DEBUG = False
DEBUG_TOOLBAR = False
@@ -79,7 +78,7 @@ MEDIA_URL = '/media/'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
-# 'django.template.loaders.eggs.Loader',
+ # 'django.template.loaders.eggs.Loader',
)
MIDDLEWARE_CLASSES = [
@@ -122,17 +121,18 @@ INSTALLED_APPS = [
'django.contrib.formtools',
'south',
'registration',
- #'geodjangofla',
+ # 'geodjangofla',
'ishtar_common',
- 'archaeological_operations', # mandatory app to run ishtar
- #'django_extensions',
- #'debug_toolbar',
+ 'archaeological_operations', # mandatory app to run ishtar
+ # 'django_extensions',
+ # 'debug_toolbar',
]
LOGFILE = '/var/log/django/ishtar.log'
-LOGGING = {'version': 1,
- 'disable_existing_loggers': False,
+LOGGING = {
+ 'version': 1,
+ 'disable_existing_loggers': False,
'handlers': {
# Include the default Django email handler for errors
# This is what you'd get without configuring logging at all.
@@ -147,9 +147,9 @@ LOGGING = {'version': 1,
'class': 'logging.handlers.WatchedFileHandler',
'filename': '/var/log/django/ishtar.log'
},
- 'console':{
- 'level': 'DEBUG',
- 'class': 'logging.StreamHandler',
+ 'console': {
+ 'level': 'DEBUG',
+ 'class': 'logging.StreamHandler',
},
},
'loggers': {
@@ -168,8 +168,8 @@ LOGGING = {'version': 1,
# Your own app - this assumes all your logger names start with "myapp."
'chimere': {
'handlers': ['logfile'],
- 'level': 'WARNING', # Or maybe INFO or DEBUG
- 'propogate': False
+ 'level': 'WARNING', # Or maybe INFO or DEBUG
+ 'propogate': False
},
},
}
@@ -188,7 +188,7 @@ ISHTAR_OPE_TYPES = {}
# DB key: txt_idx
ISHTAR_PERIODS = {}
ISHTAR_PERMIT_TYPES = {}
-ISHTAR_DOC_TYPES = {u"undefined":u"Undefined"}
+ISHTAR_DOC_TYPES = {u"undefined": u"Undefined"}
ISHTAR_DPTS = []
@@ -221,10 +221,8 @@ if LOGFILE:
INTERNAL_IPS = ('127.0.0.1',)
-if 'JQUERY_URL' not in globals():
- JQUERY_URL = BASE_URL + "javascript/jquery/jquery.js"
-if 'JQUERY_UI_URL' not in globals():
- JQUERY_UI_URL = BASE_URL + "javascript/jquery-ui/"
+JQUERY_URL = STATIC_URL + "js/jquery.min.js"
+JQUERY_UI_URL = STATIC_URL + "js/jquery-ui/"
if DEBUG_TOOLBAR:
@@ -243,7 +241,7 @@ if DEBUG_TOOLBAR:
'debug_toolbar.panels.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)
- DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS':False}
+ DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS': False}
import sys
if 'test' in sys.argv or 'test_coverage' in sys.argv:
@@ -252,6 +250,6 @@ if 'test' in sys.argv or 'test_coverage' in sys.argv:
if SQL_DEBUG:
LOGGING['loggers']['django.db.backends'] = {
- 'level': 'DEBUG',
- 'handlers': ['console'],
- }
+ 'level': 'DEBUG',
+ 'handlers': ['console'],
+ }