this is my urls:
urlpatterns = [
url(r'^', include('my_website.urls')),
url(r'^tinymce/', include('tinymce.urls')),
url(r'^filer/', include('filer.urls')),
url(r'^ckeditor/', include('ckeditor_uploader.urls')),
url(r'^admin/', admin.site.urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT + os.path.altsep )
this is my settings:
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
MEDIA_ROOT = os.path.join(BASE_DIR, "mooimom_id", "user_uploads")
MEDIA_URL = "/media/"
my media files are all in:
C:\wamp64\www\mooimom_django\mooimom_id\user_uploads\folder_name\file_names
static files are mostly in: C:\wamp64\www\mooimom_django\mooimom_id\static\folder_names
When debug is True, the images works fine, but when i turn it into False, only images from {% static %} shows up. The rest gets 404.