Created
December 13, 2017 12:10
-
-
Save bencleary/a25c72c4d27304fe56b81b9db650e6f8 to your computer and use it in GitHub Desktop.
Fixes to your project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Added img tag to view picture | |
<img src="{{object.image.url}}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Changed the name you had it as MEDIA_url | |
MEDIA_URL = '/media/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# changed the file to use the media url rather than static as this causes conflict | |
# django URLS will look for the first one matching a pattern, in this case it was looking for and trying to the user uploads from | |
# static_cdn rather than media_cdn | |
urlpatterns =urlpatterns+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment