Skip to content

Commit dd8436a

Browse files
committed
update static root for whitenoise
1 parent 26a9055 commit dd8436a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gettingstarted/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676
# Database
7777
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
7878

79-
import dj_database_url
80-
8179
DATABASES = {
8280
"default": {
8381
"ENGINE" : "django.db.backends.sqlite3",
@@ -115,6 +113,7 @@
115113
# Static files (CSS, JavaScript, Images)
116114
# https://docs.djangoproject.com/en/2.0/howto/static-files/
117115

116+
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
118117
STATIC_URL = "/static/"
119118

120119
django_heroku.settings(locals())

0 commit comments

Comments
 (0)