Skip to content

Instantly share code, notes, and snippets.

@codetombomb
Last active September 26, 2020 02:06
Show Gist options
  • Save codetombomb/75a09fa69c3f773df7eba4b965229fa3 to your computer and use it in GitHub Desktop.
Save codetombomb/75a09fa69c3f773df7eba4b965229fa3 to your computer and use it in GitHub Desktop.
Adding path to views in app
from django.contrib import admin
from django.urls import path
import projects.views
urlpatterns = [
path('admin/', admin.site.urls),
path('projects', projects.views.projects)
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment