python - 如何运行我在 GitHub 上找到的这个 Python 项目?
问题描述
我是新手。这是我要运行的项目: https ://github.com/app-generator/django-dashboard-atlantis-dark
我成功安装了需求。当我尝试: python manage.py makemigrations 时,没有任何反应。
我试图用谷歌搜索一个解决方案并花费了两吨神经元。如果哭泣是一个解决方案,我会这样做。
解决方案
你不需要这个,如果你熟悉如何使用 Virtual Env。在 Windows 中的 Pythons 项目上,无需担心。否则,您需要在运行某些命令行之前创建 (Env)。只需按照以下步骤操作。
01. Check using cmd ...\> py --version if it was installed then follow the below
steps
02. cmd ...\> py -m pip install virtualenvwrapper-win
03. cmd ...\> mkvirtualenv myproject
04. cmd ...\> workon myproject
05. cmd ...\> py -m pip install Django
06. Now Open the project by an IDE you are prefer to be use. Better use Pycharm
for python projects.
07. Run cmd ...\> workon myproject ; then call your project directory and lastly
run
08. cmd ...\> py manage.py runserver; if you got an error about table
related just use this cmd ...\> py manage.py migrate
推荐阅读
- terraform - 带条件的 Terraform 设置变量
- java - 如何禁用 JDI 中的所有 EventRequst?
- python - 如何获取熊猫中两列列之间的日期范围信息
- c++ - 我从字符串常量到 char 的错误不推荐使用转换?谁能帮我解决这个问题?谢谢
- c - 即使在使用 clRelease*() 释放所有内容后,OpenCL 内存泄漏和错误
- firebase - 将我的功能部署到 Google Cloud 时出现问题
- javascript - Discord Webhook 访问控制允许来源
- postgresql - 扩展多维数据集的 pg_dump / pg_restore 错误
- azure - 使用表单识别器标签工具为表格添加标签
- java - Java 构造函数和 super()