We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your settings.py has this line
STATIC_URL = settings.STATIC_URL or settings.MEDIA_URL
This causes issues where the editor will 404 if you have settings defined this way.
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url STATIC_URL = '/static/' # See: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#std:setting-STATICFILES_DIRS STATICFILES_DIRS = ( join(BASE_DIR, 'static'), ) # See: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#staticfiles-finders STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) # END STATIC FILE CONFIGURATION # MEDIA CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#media-root MEDIA_ROOT = join(BASE_DIR, 'media') # See: https://docs.djangoproject.com/en/dev/ref/settings/#media-url MEDIA_URL = '/media/'
because it will always evaluate to true. I would suggest dropping the setting or just setting it to
STATIC_URL = settings.STATIC_URL MEDIA_URL = settings.MEDIA_URL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Your settings.py has this line
This causes issues where the editor will 404 if you have settings defined this way.
because it will always evaluate to true. I would suggest dropping the setting or just setting it to
The text was updated successfully, but these errors were encountered: