Hacker News new | ask | show | jobs
by dacox 1871 days ago
This looks great! In a similar vein - does anyone know of a project that will allow for a Django shell in the browser?

I know Jupyter exists - but a solution like this with the permissions would be valuable.

2 comments

This launches the web-based Werkzeug debugger on Exception:

  pip install django-extensions
  python manage.py runserver_plus
https://django-extensions.readthedocs.io/en/latest/runserver...

This should run IPython Notebook with database models already imported :

  python manage.py shell_plus --notebook
But writing fixtures, tests and (celery / dask-labextension) tasks is probably the better way to do things. Django-rest-assured is one way to get a tested REST API with DRF and e.g. factory_boy for generating test data.
That is an excellent idea. The number of times I've fired up an SSH shell on my phone to do a quick fix for a client...