Django 1.10 add media url to static image file -


after update django 1.10 have problem static file images. django add static file path "media" link... example before "/static/images/avatar.jpeg" "/media/static/images/avatar.jpeg"

admin enter image description here

settings

static_url = '/static/'    staticfiles_dirs = (     # put strings here, "/home/html/static" or "c:/www/django/static".     # use forward slashes, on windows.     # don't forget use absolute paths, not relative paths.     os.path.join(base_dir, 'static'),         'static',     )  media_root = os.path.join(base_dir, 'media/') media_url = '/media/' 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -