8.8 What We Glossed Over: collectstatic and Other Static Directories

master
Jason Zhu 2020-11-11 21:26:58 +11:00
parent 9cb89fbbb2
commit 2b42be9815
2 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
.vscode
.vscode
src/static

View File

@ -31,7 +31,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
# 'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
@ -119,3 +119,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')