~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to settings.py

  • Committer: franku
  • Date: 2016-03-02 21:02:38 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160302210238-kuzuundfpu2fgiab
first partially working version with old data

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
ROOT_URLCONF = 'urls'
62
62
 
63
 
#TEMPLATE_DIRS = (
64
 
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
65
 
    # Always use forward slashes, even on Windows.
66
 
    # Don't forget to use absolute paths, not relative paths.
67
 
#    '/var/www/django_projects/widelands/templates',
68
 
#)
 
63
#TEMPLATE_DIRS = () are now managed in TEMPLATES (Febr. 2016)
 
64
 
 
65
# List of finder classes that know how to find static files in
 
66
# various locations.
 
67
STATICFILES_FINDERS = [
 
68
    "django.contrib.staticfiles.finders.FileSystemFinder",
 
69
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
 
70
]
69
71
 
70
72
INSTALLED_APPS = (
71
73
    'django.contrib.admin',
72
74
    'django.contrib.auth',
73
75
    'django.contrib.contenttypes',
74
76
    'django.contrib.sessions',
75
 
#    'django.contrib.messages',
 
77
    'django.contrib.messages',
76
78
    'django.contrib.staticfiles',
77
79
    'django.contrib.sites',
78
 
    #    'django.contrib.markup',
 
80
#    'django.contrib.markup', # doesn't exist anymore
79
81
    'django.contrib.humanize',
80
82
    'django_comments',
81
 
    # TODO: only temporary for webdesign stuff
82
 
    'django.contrib.webdesign',
83
83
    # Thirdparty apps, but need preload
84
 
    #    'tracking',
 
84
#    'tracking',
85
85
 
86
86
    # Our own apps
87
87
    'wiki.templatetags.restructuredtext',
88
88
    'mainpage',
89
 
    #    'widelands.wlhelp',
 
89
    'wlhelp',
90
90
    'wlimages',
91
91
    'wlwebchat',
92
92
    'wlrecaptcha',
105
105
    'pybb',  # Feature enriched version of pybb
106
106
 
107
107
    # Thirdparty apps
 
108
    'pinax.notifications', # Formerly notification, see next entry
 
109
    #'notification',
108
110
    'threadedcomments',
109
111
    'django_messages',
110
112
    'registration',  # User registration (per Email validation)
111
113
    'pagination',
112
114
    'tagging',
113
 
    'notification',
114
115
    #    'djangoratings', #No longer maintained
115
116
    #    'sphinxdoc',
116
117
    #    'south', Not longer supprted
138
139
    {
139
140
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
140
141
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
141
 
#        'APP_DIRS': True,
 
142
        'APP_DIRS': True,
142
143
        'OPTIONS': {
 
144
            'debug': DEBUG,
143
145
            'context_processors': [
144
146
                'django.template.context_processors.debug',
145
147
                'django.template.context_processors.request',
150
152
                'django.core.context_processors.media',
151
153
                'django.template.context_processors.static',
152
154
                'django.template.context_processors.tz',
153
 
                'django_messages.context_processors.inbox'
 
155
                'django_messages.context_processors.inbox',
154
156
            ],
155
 
            'loaders': [
156
 
                'django.template.loaders.filesystem.Loader',
157
 
                'django.template.loaders.app_directories.Loader',
158
 
            ]
159
157
        },
160
158
    },
161
159
]
162
160
 
163
161
# Static files (CSS, JavaScript, Images)
164
162
# https://docs.djangoproject.com/en/1.8/howto/static-files/
165
 
 
166
163
STATIC_URL = '/static/'
167
164
 
 
165
#https://pypi.python.org/pypi/django-threadedcomments v 1.0.1
 
166
COMMENTS_APP = 'threadedcomments'
 
167
 
168
168
############################
169
169
# Activation configuration #
170
170
############################
181
181
######################
182
182
# User configuration #
183
183
######################
184
 
AUTH_PROFILE_MODULE = 'wlprofile.Profile'
 
184
AUTH_PROFILE_MODULE = 'wlprofile.Profile' # NOCOMM: Must we change that?
 
185
 
185
186
DEFAULT_TIME_ZONE = 3
186
187
DEFAULT_TIME_DISPLAY = r"%ND(Y-m-d,) H:i"  # According to ISO 8601
187
188
DEFAULT_MARKUP = 'markdown'
296
297
## Use allways the form ('name', 'Email')   ##
297
298
##############################################
298
299
INQUIRY_RECIPIENTS = [
299
 
    ('franku', 'somal@arcor.de'),
300
 
    ('bla', 'bulpp@bla.de'),
 
300
    ('peter', 'peter@example.com'),
301
301
]
302
302
 
 
303
 
303
304
try:
304
305
   from local_settings import *
305
306
except ImportError: