From 7daff47d5c5698c3e48bc380e61f7adc62f053e0 Mon Sep 17 00:00:00 2001 From: Bastiaan Welmers Date: Tue, 5 May 2020 14:25:03 +0200 Subject: [PATCH] No prefixing slash in URLs --- videodinges/settings.py | 4 ++-- videodinges/templates/video.html.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/videodinges/settings.py b/videodinges/settings.py index 099943e..22fc105 100644 --- a/videodinges/settings.py +++ b/videodinges/settings.py @@ -124,13 +124,13 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ -STATIC_URL = '/static/' +STATIC_URL = 'static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads') -MEDIA_URL = '/uploads/' +MEDIA_URL = 'uploads/' FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.TemporaryFileUploadHandler'] diff --git a/videodinges/templates/video.html.j2 b/videodinges/templates/video.html.j2 index 79b0330..4dc8453 100644 --- a/videodinges/templates/video.html.j2 +++ b/videodinges/templates/video.html.j2 @@ -31,6 +31,6 @@
0 comments total
- + \ No newline at end of file