annotate settings.py @ 72:06b69000a057

settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS Instead of defining all the TEMPLATE_CONTEXT_PROCESSORS in settings.py, the setting was changed to use Django's default context processors and add on any additional context processors needed for this project. The alternative leads to incompatibility issues when the default context processors are renamed (as the auth context processor was, for Django 1.2). This fix is not likely to cause any issues. For more information: https://docs.djangoproject.com/en/1.2/ref/settings/#template-context-processors http://blog.madpython.com/2010/04/07/django-context-processors-best-practice/
author dellsystem <ilostwaldo@gmail.com>
date Tue, 07 Aug 2012 00:34:46 -0400
parents 29802e95fe96
children e24fec1bfe31
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
06b69000a057 settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS
dellsystem <ilostwaldo@gmail.com>
parents: 64
diff changeset
7
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
8 # 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
9 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
10 config = ConfigParser()
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
11
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
12 #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
13 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
14
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
15 if not config.read('agora.conf'):
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
16 print >> sys.stderr, '''
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
17 ERROR: No config file found!
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
18 You probably should copy agora-example.conf to agora.conf
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
19 ''';
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
20 exit(1)
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
21
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
22 try:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
23 DEBUG = (config.get('debug', 'debug').lower() == 'yes')
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
24 except:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
25 DEBUG = False
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
26
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
27 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
28
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
29 try:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
30 ADMINS = tuple(config.items('admins'))
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
31 except:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
32 ADMINS = ()
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
33
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
34 MANAGERS = ADMINS
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:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
37 database = dict(config.items('db'))
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
38 except:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
39 database = { 'ENGINE' : 'django.db.backends.sqlite3',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
40 'NAME' : 'agora',}
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
41
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
42 DATABASES = {
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
43 'default': database
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
44 }
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
45
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
46 try:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
47 tz = config.get('env','timezone')
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
48 except:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
49 tz = 'America/Mexico_City'
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
50
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
51 # 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
52 # 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
53 # 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
54 # 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
55 # 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
56 # 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
57 # 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
58 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
59
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
60 # 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
61 # 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
62 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
63
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
64 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
65
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
66 # 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
67 # 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
68 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
69
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
70 # 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
71 # 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
72 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
73
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
74 # 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
75 # 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
76 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
77
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
78 # 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
79 # 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
80 # 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
81 MEDIA_URL = ''
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
82
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
83 # 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
84 # trailing slash.
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
85 # 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
86 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
87
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
88 try:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
89 secret_key = config.get('security','secret_key')
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
90 except:
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
91 secret_key = 'l0ng-str1ng-no-one-w1ll-gue55-with-numb3rs-4nd-letters'
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
92
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
93 # 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
94 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
95
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
96 # 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
97 TEMPLATE_LOADERS = (
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
98 '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
99 '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
100 # '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
101 )
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 MIDDLEWARE_CLASSES = (
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
104 'django.middleware.common.CommonMiddleware',
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
105 'django.contrib.sessions.middleware.SessionMiddleware',
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
106 'django.middleware.csrf.CsrfViewMiddleware',
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
107 'django.contrib.auth.middleware.AuthenticationMiddleware',
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
108 'django.contrib.messages.middleware.MessageMiddleware',
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
109
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
110 #Agora-specific middleware
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
111 '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
112 )
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
113
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
114 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
115
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
116 TEMPLATE_DIRS = (
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
117 # 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
118 # 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
119 "templates",
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
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
122 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
123
72
06b69000a057 settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS
dellsystem <ilostwaldo@gmail.com>
parents: 64
diff changeset
124 TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
06b69000a057 settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS
dellsystem <ilostwaldo@gmail.com>
parents: 64
diff changeset
125 'django.core.context_processors.request',
06b69000a057 settings.py: Fix Django compatibility issue with TEMPLATE_CONTEXT_PROCESSORS
dellsystem <ilostwaldo@gmail.com>
parents: 64
diff changeset
126 )
34
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 INSTALLED_APPS = (
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
129 '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
130 '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
131 '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
132 '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
133 '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
134 '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
135 'django.contrib.admin',
64
29802e95fe96 Added some masks to the ignore, leaves out things not implemented properly yet.
rettaw
parents: 63
diff changeset
136 # '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
137
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
138 #Third-party apps
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
139 'registration',
64
29802e95fe96 Added some masks to the ignore, leaves out things not implemented properly yet.
rettaw
parents: 63
diff changeset
140 # 'threadedcomments',
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
141
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
142 #Agora apps
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
143 'agora.apps.profile',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
144 'agora.apps.snippet',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
145 'agora.apps.bundle',
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
146 'agora.apps.free_license',
42
ab608f27ecd5 Copy preliminary django-paste code for snippets along with mptt. Works clunkily. Still need to adapt it for Agora.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 35
diff changeset
147 'agora.apps.mptt',
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
148 )
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
149
63
d5ebcf4a249f Added some urls for the bundle links, and a template
Rettaw
parents: 59
diff changeset
150 COMMENTS_APP = 'threadedcomments'
d5ebcf4a249f Added some urls for the bundle links, and a template
Rettaw
parents: 59
diff changeset
151
34
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
152 LOGIN_REDIRECT_URL='/'
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
153 AUTH_PROFILE_MODULE = 'profile.Profile'