6 DEBUG = True # Turn off for production
10 PROJECT_DIR = os.path.normpath(os.path.dirname(os.path.dirname(__file__)))
12 # ('Your Name', 'your_email@domain.com'),
15 DEFAULT_FROM_EMAIL = 'info@radiopanik.org'
17 LOGIN_REDIRECT_URL = '/'
21 'ENGINE': 'django.db.backends.sqlite3',
22 'NAME': os.path.join(PROJECT_DIR, 'panikweb.sqlite3'),
30 ACCOUNT_ACTIVATION_DAYS = 7 # Activation window
32 #if django.VERSION[:2] < (1, 6):
33 TEST_RUNNER = 'discover_runner.DiscoverRunner'
35 # Local time zone for this installation. Choices can be found here:
36 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
37 # although not all choices may be available on all operating systems.
38 # If running in a Windows environment this must be set to the same as your
40 TIME_ZONE = 'Europe/Brussels'
42 # Language code for this installation. All choices can be found here:
43 # http://www.i18nguy.com/unicode/language-identifiers.html
44 LANGUAGE_CODE = 'en-us'
52 # If you set this to False, Django will make some optimizations so as not
53 # to load the internationalization machinery.
56 # Absolute filesystem path to the directory that will hold user-uploaded files.
57 # Example: "/home/media/media.lawrence.com/media/"
58 MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')
60 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
62 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
65 # Absolute path to the directory static files should be collected to.
66 # Don't put anything in this directory yourself; store your static files
67 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
68 # Example: "/home/media/media.lawrence.com/static/"
69 STATIC_ROOT = os.path.join(PROJECT_DIR, 'staticroot')
71 # URL prefix for static files.
72 # Example: "http://media.lawrence.com/static/"
73 STATIC_URL = '/static/'
75 # Additional locations of static files
77 # Put strings here, like "/home/html/static" or "C:/www/django/static".
78 # Always use forward slashes, even on Windows.
79 # Don't forget to use absolute paths, not relative paths.
82 # List of finder classes that know how to find static files in
84 STATICFILES_FINDERS = (
85 'django.contrib.staticfiles.finders.FileSystemFinder',
86 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
87 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
90 # Make this unique, and don't share it with anybody.
91 SECRET_KEY = '3qm&@6264-=st16)7_xa*ds+31e0mqqs@+*!ud7gzt$tq!b^qn'
93 # List of callables that know how to import templates from various sources.
95 'django.template.loaders.filesystem.Loader',
96 'django.template.loaders.app_directories.Loader',
97 # 'django.template.loaders.eggs.load_template_source',
100 MIDDLEWARE_CLASSES = (
101 'django.contrib.sessions.middleware.SessionMiddleware',
102 'django.middleware.locale.LocaleMiddleware',
103 'django.middleware.common.CommonMiddleware',
104 'django.middleware.csrf.CsrfViewMiddleware',
105 'django.contrib.auth.middleware.AuthenticationMiddleware',
106 'django.contrib.messages.middleware.MessageMiddleware',
107 #'request.middleware.RequestMiddleware',
110 ROOT_URLCONF = 'panikweb.urls'
113 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
114 # Always use forward slashes, even on Windows.
115 # Don't forget to use absolute paths, not relative paths.
119 'django.contrib.auth',
120 'django.contrib.contenttypes',
121 'django.contrib.sessions',
122 'django.contrib.sites',
123 'django.contrib.messages',
124 'django.contrib.staticfiles',
125 'django.contrib.admin',
126 'django.contrib.admindocs',
127 'panikweb_templates',
136 CKEDITOR_UPLOAD_PATH = os.path.join(MEDIA_ROOT, 'uploads')
137 CKEDITOR_UPLOAD_PREFIX = '/media/uploads/'
141 from local_settings import *
142 except ImportError, e:
145 if DEBUG and DEBUG_TOOLBAR:
146 MIDDLEWARE_CLASSES += (
147 'debug_toolbar.middleware.DebugToolbarMiddleware',
152 DEBUG_TOOLBAR_CONFIG = {
153 'INTERCEPT_REDIRECTS': False,