首页 > 解决方案 > 如何运行我在 GitHub 上找到的这个 Python 项目?

问题描述

我是新手。这是我要运行的项目: https ://github.com/app-generator/django-dashboard-atlantis-dark

我成功安装了需求。当我尝试: python manage.py makemigrations 时,没有任何反应。

我试图用谷歌搜索一个解决方案并花费了两吨神经元。如果哭泣是一个解决方案,我会这样做。

标签: pythonproject

解决方案


你不需要这个,如果你熟悉如何使用 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

推荐阅读