0001-settings-get-select2-from-xstatic-17092.patch
bijoe/settings.py | ||
---|---|---|
28 | 28 |
from django.conf import global_settings |
29 | 29 |
import django |
30 | 30 | |
31 |
from gadjo.templatetags.gadjo import xstatic |
|
32 | ||
31 | 33 |
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
32 | 34 |
import os |
33 | 35 |
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
... | ... | |
57 | 59 |
'django.contrib.messages', |
58 | 60 |
'django.contrib.staticfiles', |
59 | 61 |
'xstatic.pkg.chartnew_js', |
62 |
'xstatic.pkg.select2', |
|
60 | 63 |
'django_select2', |
61 | 64 |
'gadjo', |
62 | 65 |
'rest_framework', |
... | ... | |
165 | 168 |
# Django-Select2 |
166 | 169 |
AUTO_RENDER_SELECT2_STATICS = False |
167 | 170 | |
171 |
SELECT2_JS = xstatic('select2', 'select2.min.js') |
|
172 |
SELECT2_CSS = xstatic('select2', 'select2.min.css') |
|
173 | ||
168 | 174 |
BIJOE_SCHEMAS = [] |
169 | 175 | |
170 | 176 |
if 'BIJOE_SETTINGS_FILE' in os.environ: |
171 |
- |