Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
migration/
migrations/
_media/
4 changes: 2 additions & 2 deletions DSJ_Project_prj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/

STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]

STATIC_URL = 'static/'

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, '_media')
Expand Down
12 changes: 9 additions & 3 deletions DSJ_Project_prj/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@
from django.conf import settings
from django.conf.urls.static import static




urlpatterns = [
path('admin/', admin.site.urls),
path('notice/', include('notice.urls')),
path('main/', include('main.urls')),
path('products/', include('products.urls')),
]
path('login/', include('login.urls')),
path('qna/', include('qna.urls')),
path('products/', include('products.urls')),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
1 change: 1 addition & 0 deletions Internet_Programming_Project
Submodule Internet_Programming_Project added at 7ca165
Loading