diff options
Diffstat (limited to '')
-rw-r--r-- | pydis_site/settings.py (renamed from pysite/settings.py) | 47 |
1 files changed, 38 insertions, 9 deletions
diff --git a/pysite/settings.py b/pydis_site/settings.py index b27e2a41..e8355918 100644 --- a/pysite/settings.py +++ b/pydis_site/settings.py @@ -1,5 +1,5 @@ """ -Django settings for pysite project. +Django settings for pydis_site project. Generated by 'django-admin startproject' using Django 2.1. @@ -62,8 +62,9 @@ else: # Application definition INSTALLED_APPS = [ - 'api', - 'home', + 'pydis_site.apps.api', + 'pydis_site.apps.home', + 'pydis_site.apps.wiki', 'django.contrib.admin', 'django.contrib.auth', @@ -75,6 +76,8 @@ INSTALLED_APPS = [ 'crispy_forms', 'django_hosts', 'django_filters', + 'django_crispy_bulma', + 'django_simple_bulma', 'rest_framework', 'rest_framework.authtoken' ] @@ -92,12 +95,12 @@ MIDDLEWARE = [ 'django_hosts.middleware.HostsResponseMiddleware', ] -ROOT_URLCONF = 'pysite.urls' +ROOT_URLCONF = 'pydis_site.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [os.path.join(BASE_DIR, 'pysite', 'templates')], + 'DIRS': [os.path.join(BASE_DIR, 'pydis_site', 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'builtins': [ @@ -114,7 +117,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'pysite.wsgi.application' +WSGI_APPLICATION = 'pydis_site.wsgi.application' # Database @@ -162,12 +165,19 @@ USE_TZ = True # https://docs.djangoproject.com/en/2.1/howto/static-files/ STATIC_URL = '/static/' -STATICFILES_DIRS = [os.path.join(BASE_DIR, 'pysite', 'static')] -STATIC_ROOT = env('STATIC_ROOT', default='/var/www/pythondiscord.com') +STATICFILES_DIRS = [os.path.join(BASE_DIR, 'pydis_site', 'static')] +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/ -ROOT_HOSTCONF = 'pysite.hosts' +ROOT_HOSTCONF = 'pydis_site.hosts' DEFAULT_HOST = 'home' if DEBUG: @@ -228,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", + } +} |