URLs in Django

urlpatterns = [
path('admin/', admin.site.urls),
]
urlpatterns = [ path('admin/', admin.site.urls), path('', include('landing.urls')), path('social/', include('social.urls')),
]
from django.urls import path
from landing.views import Index
urlpatterns = [
path('', Index.as_view(), name='index'),
]
return render(request, 'landing/index.html')
<a href="{% url 'index' %}" class="btn btn-light mr-2">Index</a>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store