Add templates & static files
This commit is contained in:
parent
1bcf7ceba3
commit
043449cf4f
8 changed files with 55 additions and 8 deletions
|
@ -14,10 +14,15 @@ Including another URLconf
|
|||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
|
||||
urlpatterns = [
|
||||
path("gallery/", include("gallery.urls")),
|
||||
path("", include("gallery.urls")),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
Loading…
Add table
Add a link
Reference in a new issue