~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/settings.py

  • Committer: kaputtnik
  • Date: 2019-03-31 11:08:21 UTC
  • mto: This revision was merged to the branch mainline in revision 531.
  • Revision ID: kaputtnik-20190331110821-1o6c8ebh1sag7xat
mv main files into mainpage directory; apply needed changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
4
4
import os
5
5
 
6
 
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
 
6
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
DEBUG = True
8
8
 
9
9
ADMINS = (
39
39
 
40
40
SITE_ID = 1
41
41
 
 
42
#LOGIN_URL = '/registration/login/'
42
43
# Where should logged in user go by default?
43
44
LOGIN_REDIRECT_URL = '/'
44
45
 
68
69
# Make this unique, and don't share it with anybody.
69
70
SECRET_KEY = '#*bc7*q0-br42fc&6l^x@zzk&(=-#gr!)fn@t30n54n05jkqcu'
70
71
 
71
 
ROOT_URLCONF = 'urls'
 
72
ROOT_URLCONF = 'mainpage.urls'
72
73
 
73
74
# List of finder classes that know how to find static files in
74
75
# various locations.
132
133
    
133
134
    # Foreign middleware
134
135
    'dj_pagination.middleware.PaginationMiddleware',
135
 
    'online_users_middleware.OnlineNowMiddleware',
 
136
    'mainpage.online_users_middleware.OnlineNowMiddleware',
136
137
]
137
138
 
138
139
TEMPLATES = [