2024-04-23 07:20:46 发布
网友
我想得到一个带有代码的交互式shell,但我甚至不知道是否存在这样的东西。现在有人能帮我吗?
编辑:
我已经知道我们可以使用python manage.py shell,但是我希望我们可以在代码中插入一些东西,这样我们就不必重新导入shell中的所有库。
python manage.py shell
尝试使用https://docs.djangoproject.com/en/1.10/ref/django-admin/#shell
django-admin shell
或者
此命令将帮助您加载所有包。
python manage.py shell_plus
引用链接http://django-extensions.readthedocs.io/en/latest/index.html
在django项目上创建根目录,然后在这里执行视图操作。
尝试使用https://docs.djangoproject.com/en/1.10/ref/django-admin/#shell
或者
此命令将帮助您加载所有包。
引用链接http://django-extensions.readthedocs.io/en/latest/index.html
在django项目上创建根目录,然后在这里执行视图操作。
相关问题 更多 >
编程相关推荐