diff options
| author | Bobby <[email protected]> | 2022-08-03 00:01:41 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-08-03 00:01:41 +0530 |
| commit | 4b2cb153d4a43d9cd52bb4975af757d6ce193f3d (patch) | |
| tree | 4de82ca648ebc349ec54e992c21f05b7b6bed1c6 | |
| parent | c5d897cc8029482f32e9feca04795a1abc36bbda (diff) | |
| download | thatcomputerscientist-4b2cb153d4a43d9cd52bb4975af757d6ce193f3d.tar.xz thatcomputerscientist-4b2cb153d4a43d9cd52bb4975af757d6ce193f3d.zip | |
Define rules for static
| -rw-r--r-- | thatcomputerscientist/urls.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/thatcomputerscientist/urls.py b/thatcomputerscientist/urls.py index f1587104..ccebe812 100644 --- a/thatcomputerscientist/urls.py +++ b/thatcomputerscientist/urls.py @@ -15,6 +15,8 @@ Including another URLconf """ from django.contrib import admin from django.urls import path, include, re_path +from django.conf import settings +from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), @@ -22,3 +24,5 @@ urlpatterns = [ path('users/', include('users.urls', namespace='users')), path('', include(('userpages.urls', 'userpages'), namespace='userpages')), ] + +urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) |
