Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
How to solve "'app name' is not a registered namespace"

I have a "NoReverseMatch" error. How can I solve this?

File Project_name/urls.py

path('orders/', include('orders.urls')),

File ordres/urls.py

from .views import chack_out
path('chack_out/', chack_out, name='chack_out')

File ordres/views.py

def chack_out(request):
    .....

File product(anther app name)/templates/product/cart.html

<form action="{% url 'orders:chack_out' %}" method="POST">
     {% csrf_token %}

Error page

Enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Add the desired namespace to the urls.py file:

path('orders/', include('orders.urls', namespace='orders')),

or set the app_name attribute inside the ordres/urls.py file:

from .views import chack_out

app_name = 'orders'
urlpatterns = [
    path('chack_out/', chack_out, name='chack_out')
]

Check out the documentation for URL namespaces.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!