Skip to content

Instantly share code, notes, and snippets.

@arthurarty
Created November 19, 2019 11:55
Show Gist options
  • Save arthurarty/fe1adc3785fe3ec9233edf15e345fc5b to your computer and use it in GitHub Desktop.
Save arthurarty/fe1adc3785fe3ec9233edf15e345fc5b to your computer and use it in GitHub Desktop.
Django Urls.py file with static files added.
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('authentication.urls')),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment