summaryrefslogtreecommitdiff
path: root/pgcommitfest/settings.py
diff options
context:
space:
mode:
authorMagnus Hagander2023-04-12 11:42:58 +0000
committerMagnus Hagander2023-04-12 11:44:51 +0000
commitb1b4f2af8d1b28ef8b808c85e75a7c0b5794be3c (patch)
tree5eea56e40751f21aae4532067df155a8dcc5c64a /pgcommitfest/settings.py
parent1bea866b082c10de74373803f0cdf7236a0dc846 (diff)
Change static->media and stop using collectstatic
This changes both the storage location of the files and the URL. This aligns it up with how (almost) all our other django apps work, so good for consistency.
Diffstat (limited to 'pgcommitfest/settings.py')
-rw-r--r--pgcommitfest/settings.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pgcommitfest/settings.py b/pgcommitfest/settings.py
index d83d994..ffac58c 100644
--- a/pgcommitfest/settings.py
+++ b/pgcommitfest/settings.py
@@ -64,12 +64,12 @@ STATIC_ROOT = ''
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
-STATIC_URL = '/static/'
+STATIC_URL = '/media/'
# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.
# Examples: "http://foo.com/static/admin/", "/static/admin/".
-ADMIN_MEDIA_PREFIX = '/static/admin/'
+ADMIN_MEDIA_PREFIX = '/media/admin/'
# Additional locations of static files
STATICFILES_DIRS = (
@@ -81,8 +81,6 @@ STATICFILES_DIRS = (
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
- 'django.contrib.staticfiles.finders.FileSystemFinder',
- 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
# Make this unique, and don't share it with anybody.
@@ -119,7 +117,6 @@ INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
- 'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation: