Skip to content

Instantly share code, notes, and snippets.

@pranavcode
Created March 30, 2019 18:50
Show Gist options
  • Save pranavcode/4ebe309eb2ac7e270635a4701310d28e to your computer and use it in GitHub Desktop.
Save pranavcode/4ebe309eb2ac7e270635a4701310d28e 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