aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/settings.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-05 13:40:49 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-05 13:40:49 +0100
commit304af6d64733521b49c3ac4e49ee07f76bae3a34 (patch)
tree5783c9e70dd48bd0da4a22a11cb19f7aa0fc26dc /pysite/settings.py
parent[#193] Replace Poetry with Pipenv (diff)
[#158 #160] Add crispy-bulma and simple-bulma
Diffstat (limited to 'pysite/settings.py')
-rw-r--r--pysite/settings.py30
1 files changed, 29 insertions, 1 deletions
diff --git a/pysite/settings.py b/pysite/settings.py
index ac043248..4bcc27b4 100644
--- a/pysite/settings.py
+++ b/pysite/settings.py
@@ -76,6 +76,8 @@ INSTALLED_APPS = [
'crispy_forms',
'django_hosts',
'django_filters',
+ 'django_crispy_bulma',
+ 'django_simple_bulma',
'rest_framework',
'rest_framework.authtoken'
]
@@ -164,7 +166,14 @@ USE_TZ = True
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'pysite', 'static')]
-STATIC_ROOT = env('STATIC_ROOT', default='/var/www/pythondiscord.com')
+STATIC_ROOT = env('STATIC_ROOT', default='staticfiles')
+
+STATICFILES_FINDERS = [
+ 'django.contrib.staticfiles.finders.FileSystemFinder',
+ 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+
+ 'django_simple_bulma.finders.SimpleBulmaFinder',
+]
# django-hosts
# https://django-hosts.readthedocs.io/en/latest/
@@ -229,3 +238,22 @@ LOGGING = {
}
}
}
+
+# Custom settings for Crispyforms
+CRISPY_ALLOWED_TEMPLATE_PACKS = (
+ "bootstrap",
+ "uni_form",
+ "bootstrap3",
+ "bootstrap4",
+ "bulma",
+)
+
+CRISPY_TEMPLATE_PACK = "bulma"
+
+# Custom settings for django-simple-bulma
+BULMA_SETTINGS = {
+ "variables": {
+ "primary": "#7289DA",
+ "link": "$primary",
+ }
+}