From 14ae3d0c2ec8ac05bc9a2a9b07cc1d045455c0ae Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 6 Feb 2022 16:15:45 -0800 Subject: [PATCH] Prepare for collectstatic --- .gitignore | 2 ++ robosats/settings.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index f3a0f6bc..6db2d758 100755 --- a/.gitignore +++ b/.gitignore @@ -648,3 +648,5 @@ api/lightning/lightning* api/lightning/invoices* api/lightning/router* api/lightning/googleapis* +frontend/static/admin* +frontend/static/rest_framework* \ No newline at end of file diff --git a/robosats/settings.py b/robosats/settings.py index 2c318fab..9f33ec60 100644 --- a/robosats/settings.py +++ b/robosats/settings.py @@ -10,12 +10,15 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ +import os from pathlib import Path from decouple import config # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent +STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'frontend/static/') # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/