diff --git a/config/settings/base.py b/config/settings/base.py index 6219e39..16c6413 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -35,6 +35,7 @@ INSTALLED_APPS = [ "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", + "flangr.posts", ] MIDDLEWARE = [ @@ -108,3 +109,5 @@ STATIC_URL = "static/" # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + +MEDIA_URL = "media/" diff --git a/config/settings/development.py b/config/settings/development.py index 1e7319a..06bc389 100644 --- a/config/settings/development.py +++ b/config/settings/development.py @@ -15,3 +15,5 @@ DEBUG = True # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "django-insecure-lt9sfgmvcrjuiz!=l)3f50x&333&p4wi60t1@jdjtrho43ytl+" + +MEDIA_ROOT = "./media"