Click here to Skip to main content
13,863,201 members
Rate this:
Please Sign up or sign in to vote.
See more:
Guys I am tried to relate my url in anchor tag of my html file but I am getting a no reverse match error ,The file i am trying to relate is having the right location also it, been initialised in views and urls too .

Here,s the code for this relative view

from django.shortcuts import render

# Create your views here.
def relative(request):
return render(request,'second_app/relative.html')

Here,s the code not the django,s own file urls but the one i created

from django.conf.urls import url
from second_app import views

app_name = 'second_app'

urlpatterns = [

Here,s the html code

<!DOCTYPE html>


Hey click on the link below

Other page

What I have tried:

I tired to write the template tagging in achor tg like this {% url 'relative' %} and I also tried to find the answer on stack overflow.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190214.1 | Last Updated 11 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100