settings: ajout du nom du projet aux modules django
[auf_framonde.git] / project / settings / 10-base.py
1 import os
2
3 SITE_ID = '1'
4
5 PROJECT_ROOT = os.path.dirname(__file__)
6 ROOT = os.path.dirname(PROJECT_ROOT)
7
8 MEDIA_ROOT = os.path.join(ROOT, 'media')
9 MEDIA_URL = '/media/'
10
11 STATIC_ROOT = os.path.join(ROOT, 'sitestatic')
12 STATIC_URL = '/static/'
13
14 #STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage'
15
16 INSTALLED_APPS += (
17 'django.contrib.admin',
18 'django.contrib.auth',
19 'django.contrib.contenttypes',
20 'django.contrib.sessions',
21 'django.contrib.sites',
22 'django.contrib.messages',
23 'django.contrib.staticfiles',
24 'django.contrib.sitemaps',
25
26 'pagination',
27 'tagging',
28 )
29
30 TEMPLATE_DIRS = (
31 os.path.join(PROJECT_ROOT, "templates/"),
32 )
33
34