Révision cc12ccfe
Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans
corbo/settings.py | ||
---|---|---|
10 | 10 |
|
11 | 11 |
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
12 | 12 |
import os |
13 |
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
|
14 | 13 |
|
14 |
from django.conf import global_settings |
|
15 |
|
|
16 |
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
|
15 | 17 |
|
16 | 18 |
# Quick-start development settings - unsuitable for production |
17 | 19 |
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ |
... | ... | |
32 | 34 |
INSTALLED_APPS = ( |
33 | 35 |
'corbo', |
34 | 36 |
'ckeditor', |
37 |
'gadjo', |
|
35 | 38 |
'django.contrib.auth', |
36 | 39 |
'django.contrib.admin', |
37 | 40 |
'django.contrib.contenttypes', |
... | ... | |
78 | 81 |
|
79 | 82 |
USE_TZ = True |
80 | 83 |
|
84 |
STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + ('gadjo.finders.XStaticFinder',) |
|
85 |
|
|
81 | 86 |
|
82 | 87 |
# Static files (CSS, JavaScript, Images) |
83 | 88 |
# https://docs.djangoproject.com/en/1.7/howto/static-files/ |
84 | 89 |
|
85 | 90 |
STATIC_URL = '/static/' |
86 | 91 |
|
92 |
STATIC_ROOT = 'static' |
|
93 |
|
|
87 | 94 |
CKEDITOR_UPLOAD_PATH = 'ckeditor/uploads' |
88 | 95 |
|
89 | 96 |
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') |
90 | 97 |
MEDIA_URL = '/media/' |
91 | 98 |
|
92 |
ANNOUNCES_PER_PAGE = 10
|
|
99 |
ANNOUNCES_PER_PAGE = 3
|
|
93 | 100 |
|
94 | 101 |
RSS_TITLE = 'Announces' |
95 | 102 |
RSS_DESCRIPTION = '' |
Formats disponibles : Unified diff
gadjo theme used for templates
Category and announces management views and urls updated