Opened 7 years ago

Closed 7 years ago

Last modified 7 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 7 years ago by Gabriel Hurley

Component: runserverCore (Management commands)

comment:2 Changed 7 years ago by Luke Plant

Type: Bug

comment:3 Changed 7 years ago by Luke Plant

Severity: Normal

comment:4 Changed 7 years ago by Julien Phalip

Resolution: invalid
Status: newclosed

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 7 years ago by Jacob

milestone: 1.4

Milestone 1.4 deleted

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