forked from markfinger/python-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
82 lines (56 loc) · 1.22 KB
/
Copy pathsettings.py
File metadata and controls
82 lines (56 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import os
# DJANGO
# ======
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
SECRET_KEY = '_'
INSTALLED_APPS = (
'django.contrib.staticfiles',
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder'
)
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'djangosite', 'static'),
)
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'djangosite', 'templates'),
)
MIDDLEWARE_CLASSES = ()
ROOT_URLCONF = 'djangosite.urls'
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# DJANGO NODE
# ===========
INSTALLED_APPS += (
'django_node',
)
DJANGO_NODE = {
'SERVICES': (),
'PACKAGE_DEPENDENCIES': (),
}
# Instruct django-node to install the package.json dependencies
DJANGO_NODE['PACKAGE_DEPENDENCIES'] += (
BASE_DIR,
)
# DJANGO WEBPACK
# ==============
INSTALLED_APPS += (
'django_webpack',
)
DJANGO_NODE['SERVICES'] += (
'django_webpack.services',
)
STATICFILES_FINDERS += (
'django_webpack.staticfiles.WebpackFinder',
)
# DJANGO REACT
# ============
INSTALLED_APPS += (
'django_react',
)
DJANGO_NODE['SERVICES'] += (
'django_react.services',
)