No prefixing slash in URLs

This commit is contained in:
2020-05-05 14:25:03 +02:00
parent 8d80745469
commit 7daff47d5c
2 changed files with 3 additions and 3 deletions

View File

@@ -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']

View File

@@ -31,6 +31,6 @@
<div class="commenter-count-container"><span class="commenter-count">0</span> comments total</div>
</div>
<script data-container="commenter-container" src="//www.welmers.net/commenter/js/commenter.js" type="text/javascript"></script>
<script src="/static/js/video.js" type="text/javascript"></script>
<script src="static/js/video.js" type="text/javascript"></script>
</body>
</html>