annotate settings.py @ 129:be8fec1e85d9

Add LOGIN_URL to settings So that the @login_required decorator uses the custom login/registration view and not the default one
author dellsystem <ilostwaldo@gmail.com>
date Sat, 22 Sep 2012 11:12:30 -0400
parents f872c643b056
children 7a27b1c9cb84
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'):
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
16 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
17 ERROR: No config file found!
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
18 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
19 ''';
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
20 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
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:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
23 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
24 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
25 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
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:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
30 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
31 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
32 ADMINS = ()
34
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:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
37 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
38 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
39 database = {'ENGINE': 'django.db.backends.sqlite3',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
40 '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
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 = {
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
43 '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
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:
74
96f45cd7655e settings.py: Fix another whitespace issue
dellsystem <ilostwaldo@gmail.com>
parents: 73
diff changeset
47 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
48 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
49 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
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:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
89 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
90 except:
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
91 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
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 = (
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
104 'django.middleware.common.CommonMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
105 'django.contrib.sessions.middleware.SessionMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
106 'django.middleware.csrf.CsrfViewMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
107 'django.contrib.auth.middleware.AuthenticationMiddleware',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
108 '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
109
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
110 # Agora-specific middleware
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
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 + (
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
125 'django.core.context_processors.request',
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
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
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
138 # 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
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
73
e24fec1bfe31 settings.py: Fix small whitespace issues
dellsystem <ilostwaldo@gmail.com>
parents: 72
diff changeset
142 # Agora apps
34
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',
102
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents: 74
diff changeset
147 'agora.apps.pygments_style',
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
148 '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
149 )
22d514498935 Move the configurable parts of settings.py into a conf file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
150
63
d5ebcf4a249f Added some urls for the bundle links, and a template
Rettaw
parents: 59
diff changeset
151 COMMENTS_APP = 'threadedcomments'
d5ebcf4a249f Added some urls for the bundle links, and a template
Rettaw
parents: 59
diff changeset
152
129
be8fec1e85d9 Add LOGIN_URL to settings
dellsystem <ilostwaldo@gmail.com>
parents: 102
diff changeset
153 # 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
154 LOGIN_REDIRECT_URL='/'
129
be8fec1e85d9 Add LOGIN_URL to settings
dellsystem <ilostwaldo@gmail.com>
parents: 102
diff changeset
155 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
156 AUTH_PROFILE_MODULE = 'profile.Profile'