Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/e06093e8f6e3740dce464c18e1e75b1e to your computer and use it in GitHub Desktop.
Save velotiotech/e06093e8f6e3740dce464c18e1e75b1e to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - Django URLs or routes on the project level for our example application
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('web', include('tweetapp.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