Django application for running python code in your project's environment from django admin.
pip install django-webshell
settings.py:
INSTALLED_APPS = (
...
'webshell',
...
)
urls.py:
urlpatterns = patterns('',
...
(r'^admin/webshell/', include('webshell.urls')),
...
)