From 0945dc5b6bfd94e4a37958b9d024157eceaae2a8 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Sun, 3 Jul 2022 22:20:39 +0100 Subject: [PATCH] Fix some MEDIA settings --- config/settings/base.py | 3 +++ config/settings/development.py | 2 ++ 2 files changed, 5 insertions(+) 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"