diff --git a/borgweb/borg/templates/borg/index.html b/borgweb/borg/templates/borg/index.html index da1a153..ccc2d9b 100644 --- a/borgweb/borg/templates/borg/index.html +++ b/borgweb/borg/templates/borg/index.html @@ -6,11 +6,8 @@ Borg Summary {% load static %} - - + + diff --git a/borgweb/borgweb/settings.py b/borgweb/borgweb/settings.py index df1b465..14e7840 100644 --- a/borgweb/borgweb/settings.py +++ b/borgweb/borgweb/settings.py @@ -17,7 +17,6 @@ from . import SECRET_KEY as __SECRET_KEY # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ @@ -121,9 +120,15 @@ USE_TZ = False # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.2/howto/static-files/ +import os STATIC_URL = '/static/' - +STATIC_ROOT = os.path.join(BASE_DIR, 'root') +print(os.path.join(BASE_DIR, 'bootstrap', 'dist')) +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, 'static'), + os.path.join(BASE_DIR, 'bootstrap', 'dist'), +] # Default primary key field type # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field diff --git a/borgweb/templates/registration/login.html b/borgweb/templates/registration/login.html index 8915fd1..18c60b1 100644 --- a/borgweb/templates/registration/login.html +++ b/borgweb/templates/registration/login.html @@ -3,8 +3,9 @@ Login - - + {% load static %} + +