Skip to content

Instantly share code, notes, and snippets.

@roosnic1
Last active July 23, 2020 14:06
Show Gist options
  • Save roosnic1/f2c8cc57e515146d0eba7a497029e3d6 to your computer and use it in GitHub Desktop.
Save roosnic1/f2c8cc57e515146d0eba7a497029e3d6 to your computer and use it in GitHub Desktop.
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
]
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the app index.")
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('app/', include('app.urls')),
path('admin/', admin.site.urls),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment