comparison settings.py @ 151:c7be7def8b57

Bundles! (basic functionality) Changes made in this commit: * Added new dependencies (see pip-requirements) * Added new dependency and setup information to README * Deleted the included mptt app (in apps/mptt) in favour of just adding the dependency to pip-requirements (makes it easier to update, etc) * Changed the import convention to use `from apps.bundle.models import Bundle` rather than `from agora.apps.bundle.models import Bundle` because Celery was having problems with the latter style. Everything should still work. * Moved the syntax-highlighting and related code for snippets into separate HTML files so that they can be used by the bundle app And, of course, the ability to upload bundles. But wait! There's more! Changes still to come, for only $19.95 a month: * Bundle versioning * Automatic license integration (i.e. adding headers to files) * The ability to download bundles (zip, tar, etc) * Rating bundles * And much, much more! Batteries not included.
author dellsystem <ilostwaldo@gmail.com>
date Mon, 15 Oct 2012 00:52:00 -0400
parents 3db897f5acdc
children ef4c73999c6c
comparison
equal deleted inserted replaced
150:3db897f5acdc 151:c7be7def8b57
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 import sys 4 import sys
5 5
6 import django.conf.global_settings as DEFAULT_SETTINGS 6 import django.conf.global_settings as DEFAULT_SETTINGS
7 import djcelery
8 djcelery.setup_loader()
7 9
8 # Read some settings from config file 10 # Read some settings from config file
9 from ConfigParser import ConfigParser 11 from ConfigParser import ConfigParser
10 config = ConfigParser() 12 config = ConfigParser()
11 13
141 'django.contrib.admin', 143 'django.contrib.admin',
142 # 'django.contrib.comments', 144 # 'django.contrib.comments',
143 145
144 # Third-party apps 146 # Third-party apps
145 'registration', 147 'registration',
148 'djcelery',
149 'kombu.transport.django',
150 'mptt',
151 'sizefield',
146 # 'threadedcomments', 152 # 'threadedcomments',
147 153
148 # Agora apps 154 # Agora apps
149 'agora.apps.profile', 155 'apps.profile',
150 'agora.apps.snippet', 156 'apps.snippet',
151 'agora.apps.bundle', 157 'apps.bundle',
152 'agora.apps.free_license', 158 'apps.free_license',
153 'agora.apps.pygments_style', 159 'apps.pygments_style',
154 'agora.apps.mptt',
155 ) 160 )
156 161
157 COMMENTS_APP = 'threadedcomments' 162 COMMENTS_APP = 'threadedcomments'
158 163
159 # Doesn't accept view names until Django 1.5 164 # Doesn't accept view names until Django 1.5
160 LOGIN_REDIRECT_URL='/' 165 LOGIN_REDIRECT_URL='/'
161 LOGIN_URL = '/login' 166 LOGIN_URL = '/login'
162 AUTH_PROFILE_MODULE = 'profile.Profile' 167 AUTH_PROFILE_MODULE = 'profile.Profile'
168
169 # For celery
170 BROKER_URL = 'django://'