annotate settings.py @ 195:baf8776dc44d

added code for the integration of comment system into bundles and snippets. database sync must be run so that necessary tables is created for the comments to work properly.
author ahsanalishahid <ahsan.ali.shahid@gmail.com>
date Tue, 02 Jul 2013 02:09:21 +0500
parents ef4c73999c6c
children 2619e53b1ec2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
1 # Django settings for agora project.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
3
59
0abd9ba5c9a8 Import sys in settings.py
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 42
diff changeset
4 import sys
0abd9ba5c9a8 Import sys in settings.py
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 42
diff changeset
5
72
06b69000a057 settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS
dellsystem <ilostwaldo@gmail.com>
parents: 64
diff changeset
6 import django.conf.global_settings as DEFAULT_SETTINGS
151
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
7 import djcelery
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
8 djcelery.setup_loader()
72
06b69000a057 settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS
dellsystem <ilostwaldo@gmail.com>
parents: 64
diff changeset
9
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
10 # Read some settings from config file
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
11 from ConfigParser import ConfigParser
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
12 config = ConfigParser()
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
13
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
14 #This makes options in the config case-sensitive
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
15 config.optionxform = str
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
16
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
17 if not config.read('agora.conf'):
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
18 print >> sys.stderr, '''
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
19 ERROR: No config file found!
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
20 You probably should copy agora-example.conf to agora.conf
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
21 ''';
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
22 exit(1)
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
23
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
24 try:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
25 DEBUG = (config.get('debug', 'debug').lower() == 'yes')
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
26 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
27 DEBUG = False
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
28
143
7a27b1c9cb84 Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents: 129
diff changeset
29 try:
7a27b1c9cb84 Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents: 129
diff changeset
30 COMPILE_LESS = config.get('debug', 'compile_less').lower() != 'no'
7a27b1c9cb84 Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents: 129
diff changeset
31 except:
7a27b1c9cb84 Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents: 129
diff changeset
32 COMPILE_LESS = True
7a27b1c9cb84 Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents: 129
diff changeset
33
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
34 TEMPLATE_DEBUG = DEBUG
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
35
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
36 try:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
37 ADMINS = tuple(config.items('admins'))
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
38 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
39 ADMINS = ()
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
40
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
41 MANAGERS = ADMINS
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
42
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
43 try:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
44 database = dict(config.items('db'))
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
45 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
46 database = {'ENGINE': 'django.db.backends.sqlite3',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
47 'NAME': 'agora'}
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
48
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
49 DATABASES = {
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
50 'default': database
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
51 }
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
52
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
53 try:
74
96f45cd7655e settings.py: Fix another whitespace issue
dellsystem <ilostwaldo@gmail.com>
parents: 73
diff changeset
54 tz = config.get('env', 'timezone')
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
55 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
56 tz = 'America/Mexico_City'
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
57
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
58 # Local time zone for this installation. Choices can be found here:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
59 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
60 # although not all choices may be available on all operating systems.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
61 # On Unix systems, a value of None will cause Django to use the same
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
62 # timezone as the operating system.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
63 # If running in a Windows environment this must be set to the same as your
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
64 # system time zone.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
65 TIME_ZONE = tz
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
66
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
67 # Language code for this installation. All choices can be found here:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
68 # http://www.i18nguy.com/unicode/language-identifiers.html
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
69 LANGUAGE_CODE = 'en-us'
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
70
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
71 SITE_ID = 1
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
72
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
73 # If you set this to False, Django will make some optimizations so as not
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
74 # to load the internationalization machinery.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
75 USE_I18N = False
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
76
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
77 # If you set this to False, Django will not format dates, numbers and
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
78 # calendars according to the current locale
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
79 USE_L10N = False
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
80
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
81 # Absolute path to the directory that holds media.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
82 # Example: "/home/media/media.lawrence.com/"
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
83 MEDIA_ROOT = 'static/'
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
84
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
85 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
86 # trailing slash if there is a path component (optional in other cases).
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
87 # Examples: "http://media.lawrence.com", "http://example.com/media/"
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
88 MEDIA_URL = ''
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
89
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
90 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
91 # trailing slash.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
92 # Examples: "http://foo.com/media/", "/media/".
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
93 ADMIN_MEDIA_PREFIX = '/media/'
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
94
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
95 try:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
96 secret_key = config.get('security', 'secret_key')
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
97 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
98 secret_key = 'l0ng-str1ng-no-one-w1ll-gue55-with-numb3rs-4nd-letters'
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
99
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
100 # Make this unique, and don't share it with anybody.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
101 SECRET_KEY = secret_key
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
102
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
103 # List of callables that know how to import templates from various sources.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
104 TEMPLATE_LOADERS = (
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
105 'django.template.loaders.filesystem.Loader',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
106 'django.template.loaders.app_directories.Loader',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
107 # 'django.template.loaders.eggs.Loader',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
108 )
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
109
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
110 MIDDLEWARE_CLASSES = (
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
111 'django.middleware.common.CommonMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
112 'django.contrib.sessions.middleware.SessionMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
113 'django.middleware.csrf.CsrfViewMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
114 'django.contrib.auth.middleware.AuthenticationMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
115 'django.contrib.messages.middleware.MessageMiddleware',
35
290dd9208cc4 Implement editing user profiles and fix bugs related to the login/logout buttons. Implement 403 exception
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 34
diff changeset
116
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
117 # Agora-specific middleware
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
118 'agora.middleware.http.Http403Middleware',
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
119 )
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
120
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
121 ROOT_URLCONF = 'agora.urls'
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
122
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
123 TEMPLATE_DIRS = (
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
124 # Probably should make this an absolute path on an actual
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
125 # installation, but on a debug setup relative paths work fine.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
126 "templates",
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
127 )
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
128
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
129 ACCOUNT_ACTIVATION_DAYS = 1
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
130
72
06b69000a057 settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS
dellsystem <ilostwaldo@gmail.com>
parents: 64
diff changeset
131 TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
132 'django.core.context_processors.request',
143
7a27b1c9cb84 Add LESS compilation (toggled in settings)
dellsystem <ilostwaldo@gmail.com>
parents: 129
diff changeset
133 'context_processors.less_compilation',
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
134 )
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
135
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
136 INSTALLED_APPS = (
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
137 'django.contrib.auth',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
138 'django.contrib.contenttypes',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
139 'django.contrib.sessions',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
140 'django.contrib.sites',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
141 'django.contrib.messages',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
142 'django.contrib.admindocs',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
143 'django.contrib.admin',
191
ef4c73999c6c added treecomments app settings in settings.py
ahsanalishahid <ahsan.ali.shahid@gmail.com>
parents: 151
diff changeset
144 'django.contrib.comments',
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
145
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
146 # Third-party apps
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
147 'registration',
151
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
148 'djcelery',
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
149 'kombu.transport.django',
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
150 'mptt',
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
151 'sizefield',
150
3db897f5acdc Convert some tabs to spaces in settings.py
dellsystem <ilostwaldo@gmail.com>
parents: 143
diff changeset
152 # 'threadedcomments',
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
153
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
154 # Agora apps
151
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
155 'apps.profile',
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
156 'apps.snippet',
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
157 'apps.bundle',
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
158 'apps.free_license',
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
159 'apps.pygments_style',
191
ef4c73999c6c added treecomments app settings in settings.py
ahsanalishahid <ahsan.ali.shahid@gmail.com>
parents: 151
diff changeset
160 'apps.treecomments',
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
161 )
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
162
191
ef4c73999c6c added treecomments app settings in settings.py
ahsanalishahid <ahsan.ali.shahid@gmail.com>
parents: 151
diff changeset
163 COMMENTS_APP = 'apps.treecomments'
63
d5ebcf4a249f Added some urls for the bundle links, and a template
Rettaw
parents: 59
diff changeset
164
129
be8fec1e85d9 Add LOGIN_URL to settings
dellsystem <ilostwaldo@gmail.com>
parents: 102
diff changeset
165 # Doesn't accept view names until Django 1.5
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
166 LOGIN_REDIRECT_URL='/'
129
be8fec1e85d9 Add LOGIN_URL to settings
dellsystem <ilostwaldo@gmail.com>
parents: 102
diff changeset
167 LOGIN_URL = '/login'
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
168 AUTH_PROFILE_MODULE = 'profile.Profile'
151
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
169
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
170 # For celery
c7be7def8b57 Bundles! (basic functionality)
dellsystem <ilostwaldo@gmail.com>
parents: 150
diff changeset
171 BROKER_URL = 'django://'