Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6006771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:35:16+00:00 2026-05-23T01:35:16+00:00

I am new to Django and have started working on a mature Django project.

  • 0

I am new to Django and have started working on a mature Django project.

I want to add a new page to the user account screens, and link to it. But I am getting a NoReverseMatch error.

To /users/urls.py I added:

url(r'^panel/history$',
    'theproject.users.views.history',
    name='account_history'
),

…which is consistent with the line above it:

url(r'^panel$',
    'theproject.users.views.control_panel',
    name='account_panel'
),

To /users/views.py I added:

@login_required
def history(request):
    return render_to_response('users/ourbrand_history.html', {},
    context_instance=RequestContext(request))

…which is consistent with the line above it:

@login_required
def control_panel(request):
    return render_to_response('users/ourbrand_panel.html', {},
    context_instance=RequestContext(request))

To /templates/users/ourbrand_panel.html I added:

<a href="{% url account_history %}">History</a>

…which is consistent with the line above it:

<a href="{% url account_panel %}">Home</a>

Now when I load /panel I get a TemplateSyntaxError: NoReverseMatch.

Reverse for 'account_history' with arguments '()' and keyword arguments '{}' not found.

UPDATE: As a test, I removed my link in the template — and /panel loads fine. If I then delete /users/urls.py and /users/views.py /panel still loads. I have deleted all cookies, history etc. Do I have to run a command at the terminal (like rake in ruby) to commit changes to urls.py? Or should changes ‘just work’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:35:16+00:00Added an answer on May 23, 2026 at 1:35 am

    Answering my own question (based on help provided here)…

    Since the server is production, changes to urls.py do not have any effect until the server is restarted. Currently I do not have su access so cannot apachectl restart but it appears this will resolve the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Django but I seem to have nearly identical code working on
As I am working through https://docs.djangoproject.com/en/1.4/topics/db/models/ , in django, I have started a new
I'm new to Django, but the application that I have in mind might end
I'm new to Django and Web programming in general. Have googled but could not
I create a new Django app (not project) called Bussinesses, then add following class
Disclaimer: I am new to django but have coded in Drupal I need to
I've got a django project working on a development server(ubuntu) that we have been
I am new to Django, I have started learning just a week ago. I
I started to play with new i18n_patterns in Django 1.4. Basically, i want to
I'm new to Django and I have a page with several forms and submit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.