Begin to add static files support
This commit is contained in:
parent
6012eab88d
commit
11f3c5bcd9
1 changed files with 10 additions and 1 deletions
|
@ -103,7 +103,6 @@ REST_FRAMEWORK = {
|
|||
|
||||
|
||||
|
||||
|
||||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/2.1/topics/i18n/
|
||||
|
||||
|
@ -142,8 +141,18 @@ DATABASES = {
|
|||
}
|
||||
}
|
||||
|
||||
# Static files
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
print(BASE_DIR)
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, "static"))
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
|
||||
|
||||
if "DEBUG" in os.environ:
|
||||
DEBUG = True
|
||||
ALLOWED_HOSTS = []
|
||||
|
||||
DATABASES = DEBUG_DATABASES
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue