Django interactive traceback using Werkzeug, `manage.py runserver_plus` Error
Asked Answered
T

2

6

The Problem

I'm trying to run the interactive Werkzeug debugger included in Django with my Django project. After executing python manage.py runserver_plus from the command line to start the server with the debugger, I get the error:

Unknown command: 'runserver_plus'
Type 'manage.py help' for usage.

I'm using virtualenv. Here is a look at what I have installed:

Django==1.5.2
Werkzeug==0.9.3
argparse==1.2.1
wsgiref==0.1.2

After looking at the Django documentation and this question,

How to use Werkzeug interactive traceback debugger in a Django project hosted on Heroku?

even though I'm only trying to debug my project locally, everything should be working fine. I have Django installed, I have Werkzeug utils installed (even though I might not need to), and I am running the right command.

Any idea what could be going wrong? this should be a pretty straight forward action.

Theophylline answered 20/8, 2013 at 21:46 Comment(0)
S
7

You need to also install django-werkzeug-debugger-runserver or django-extensions. And add whatever you install into INSTALLED_APPS.

Sash answered 20/8, 2013 at 22:25 Comment(5)
I'm still getting the same error, even after I've pip installed it and added it to my installed_APPs at the project level. should I add it to the app level as well?Theophylline
running the regular python manage.py runserver gives me this error now: ImportError: cannot import name AdminMediaHandlerTheophylline
got it to work thanks to your answer. But I still have no idea how to get rid of the import error for the regular runserver or how installing this could have caused it. Thanks though!Theophylline
link to question for ImportError: cannot import name AdminMediaHandler: Django manage.py runserver throws ImportError AdminMediaHandlerTheophylline
yep INSTALLED APPS should include 'django_extensions'.Intemperance
C
0

Just check if django-extensions is installed:

pip install django-extensions

And django_extensions is added to your INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    "django_extensions",
]
Contractual answered 20/3 at 16:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.