I am having- admin/ home/ [name='home'] about/ [name='about'] menu/ [name='menu'] The current path, base/, didn’t match any of these.

project urls

from django.contrib import admin
from django.urls import path,include

urlpatterns = [
    path('admin/', admin.site.urls),

from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.
def home(request):
    return render(request,'index.html')

def about(request):
    return render(request,'about.html')

def menu(request):
    return render(request,'menu.html')


from django.urls import path
from . import views
    path('home/',views.home, name='home'),
    path('about/', views.about, name='about'),
    path('menu/', views.menu, name='menu'),

‘DIRS’: [‘templates’],



  • Home
  • About
  • Menu
  • base.html

    Little Lemon {% block content %} {% endBlock %}

    {% extends ‘base.html’ %}

    {% block content %}


    This is a Menu Page for Little Lemon

    {% endBlock %}

    {% extends ‘base.html’ %}

    {% block content %}


    This is an About Page for Little Lemon

    {% endBlock %}



    Side note: When posting code, error message, templates, etc, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. (I have taken the liberty of correcting your post this time.)

    Can you post the complete error message you are getting along with the url generating that message?

    What the error message is telling you is that you’re trying to reference a url named base/, but you do not have a url by that name defined here.

    In order to figure out why you’re getting that error, we will need more information.

    Do you know what you have that is trying to request that url?

    1 Like

    Sir,I would like to cast my sincere thanks to you. I am extremely grateful for your genuine efforts to rectify my errors in code. I have posted all the code. It would be more beneficial if I can send you the entire Django file that I am working. Such mistakes are extremely frequent in my codes and sometimes, I feel extremely disturbed for these errors.I shall be grateful if you can help me to fix this problem. I believe that I can learn a lot from you for Django Project. I shall always wait for your positive response in this error-solving matter.

    Please correct your post to add the lines of ``` before and after each file’s code.

    The error message you just posted does not match your description at the top. Please clarify what error we’re trying to resolve.

    Also, please do not post screen images of code or error messages. Copy/paste the text of the code or error message into your post, surrounded by the lines of ```.