Prepare for collectstatic

This commit is contained in:
Reckless_Satoshi 2022-02-06 16:15:45 -08:00
parent 0b7c51a8ee
commit 14ae3d0c2e
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View File

@ -648,3 +648,5 @@ api/lightning/lightning*
api/lightning/invoices*
api/lightning/router*
api/lightning/googleapis*
frontend/static/admin*
frontend/static/rest_framework*

View File

@ -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/