Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#15685 closed Bug (invalid)

Server keeps displaying error after I enter reverse() in then remove it

Reported by: hgezim@… Owned by: nobody
Component: Core (Management commands) Version: 1.2
Severity: Normal Keywords: runserver,
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I have my app, textbook. In my when I change this line:

ISBN = forms.CharField(label = "ISBN", max_length=20)

to this:

ISBN = forms.CharField(label = "ISBN", max_length=20,

help_text="<a href='%s'>My book doesn't have an ISBN.</a>" % (reverse('post_details')))

it raises the ImproperlyConfigured exception:

The included urlconf textbook.urls doesn't have any patterns in it.

The problem is that when I change the line back to how it was:

It still gives me the exception until I restart the server at which point it starts working again.

Change History (5)

comment:1 Changed 5 years ago by gabrielhurley

  • Component changed from runserver to Core (Management commands)

comment:2 Changed 5 years ago by lukeplant

  • Type set to Bug

comment:3 Changed 5 years ago by lukeplant

  • Severity set to Normal

comment:4 Changed 5 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The issue most likely is that you're importing the module that contains this form *before* the url patterns are loaded. I don't think there's a bug in Django here -- I advise you to ask for help in the django-users list:

comment:5 Changed 5 years ago by jacob

  • milestone 1.4 deleted

Milestone 1.4 deleted

Note: See TracTickets for help on using tickets.
Back to Top