diff --git a/ecommerce/settings.py b/ecommerce/settings.py index 10be8bd..375b684 100644 --- a/ecommerce/settings.py +++ b/ecommerce/settings.py @@ -119,12 +119,12 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/ -STATIC_URL = '/static/' +STATIC_URL = '/static/static/' STATICFILES_DIRS = [ - os.path.join(BASE_DIR, 'static') + os.path.join(BASE_DIR, 'static/static') ] -MEDIA_URL = 'static/image/' +MEDIA_URL = 'static/images/' -MEDIA_ROOT = os.path.join(BASE_DIR, 'static') \ No newline at end of file +MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images') diff --git a/store/urls.py b/store/urls.py index 2fa4042..a176e28 100644 --- a/store/urls.py +++ b/store/urls.py @@ -1,4 +1,6 @@ +from os import startfile from django.urls import path +from django.contrib.staticfiles.urls import startfile_urlpatterns from . import views @@ -10,4 +12,6 @@ path('update_item/', views.updateItem, name="update_item"), path('process_order/', views.processOrder, name="process_order"), -] \ No newline at end of file +] + +urlpatterns += startfile_urlpatterns()