~ubuntu-branches/ubuntu/saucy/mumble-django/saucy-proposed

« back to all changes in this revision

Viewing changes to pyweb/settings.py

  • Committer: Package Import Robot
  • Author(s): Michael Ziegler
  • Date: 2013-05-19 18:06:11 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20130519180611-flqpsk20fu2t6hq4
Tags: 2.9-1
* New upstream release.
* Drop DM-Upload-Allowed as it isn't used any longer.
* Update VCS-{SVN,Browser} tags.
* Update Django dependency to 1.5.
* Remove template patch for django-registration 0.8 (applied upstream).
* Remove the hunk that adds MessageMiddleware to settings.py (applied
  upstream).
* Disable the registration app for now (incompatible to Django 1.5).
* Remove dependency to python-simplejson.
* Adapt apache config to staticfiles change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
## $SLICEDIR/Ice/SliceChecksumDict.ice exists.                 ##
32
32
## Not used on recent Ice versions, because the SLICEDIR can   ##
33
33
## be retrieved from Ice directly.                             ##
34
 
SLICEDIR = '/usr/share/slice'                                  ##
 
34
SLICEDIR = '/usr/share/Ice/slice'                              ##
35
35
##                                                             ##
36
36
#################################################################
37
37
##                                                             ##
189
189
# If you set this to False, Django will make some optimizations so as not
190
190
# to load the internationalization machinery.
191
191
USE_I18N = True
192
 
 
193
 
# Absolute path to the directory that holds media.
194
 
MEDIA_ROOT = join( MUMBLE_DJANGO_ROOT, 'htdocs' )
195
 
 
196
 
# URL that handles the media served from MEDIA_ROOT.
197
 
MEDIA_URL = MUMBLE_DJANGO_URL + 'static/'
198
 
 
199
 
STATIC_URL  = MEDIA_URL
200
 
STATIC_ROOT = MEDIA_ROOT
 
192
USE_L10N = True
 
193
 
 
194
STATIC_URL = MUMBLE_DJANGO_URL + 'static/'
 
195
 
 
196
STATICFILES_DIRS = (
 
197
    join( MUMBLE_DJANGO_ROOT, 'htdocs' ),
 
198
)
201
199
 
202
200
## URL to static files of the currently active theme
203
201
THEME_URL = '%sstatic/themes/%s/' % ( MUMBLE_DJANGO_URL, THEME )
204
202
 
205
 
# URL prefix for admin media -- CSS, JavaScript and images.
206
 
ADMIN_MEDIA_PREFIX = MUMBLE_DJANGO_URL + 'media/'
207
 
MUMBLE_MEDIA_PREFIX = MUMBLE_DJANGO_URL + 'mumble/media/'
208
 
 
209
203
# URL to the login view
210
204
LOGIN_URL = MUMBLE_DJANGO_URL + 'accounts/login'
211
205
LOGIN_REDIRECT_URL = MUMBLE_DJANGO_URL + 'accounts/profile'
243
237
    'django.middleware.csrf.CsrfViewMiddleware',
244
238
    'django.middleware.locale.LocaleMiddleware',
245
239
    'django.contrib.auth.middleware.AuthenticationMiddleware',
246
 
    'django.contrib.messages.middleware.MessageMiddleware',
 
240
    'django.contrib.messages.middleware.MessageMiddleware'
247
241
)
248
242
 
249
243
ROOT_URLCONF = 'pyweb.urls'
282
276
INSTALLED_APPS = [
283
277
    'django.contrib.auth',
284
278
    'django.contrib.admin',
 
279
    'django.contrib.admindocs',
285
280
    'django.contrib.contenttypes',
 
281
    'django.contrib.messages',
 
282
    'django.contrib.markup',
 
283
    'django.contrib.staticfiles',
286
284
    'django.contrib.sessions',
287
285
    'django.contrib.sites',
288
286
    'mumble',
305
303
# Check if django_extensions is available.
306
304
modprobe( "django_extensions" )
307
305
 
308
 
modprobe( 'registration' )
 
306
#modprobe( 'registration' )