如何运行我在GitHub上找到的这个Python项目?

2024-06-16 11:35:14 发布

您现在位置:Python中文网/ 问答频道 /正文

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

我成功地安装了需求。 当我尝试:python manage.py makemigrations时,什么都没有发生

我试着用谷歌搜索一个解决方案,花了两吨神经元。 如果哭是一种解决办法,我会这么做


Tags: 项目djangopyhttpsgithubcomappmanage
1条回答
网友
1楼 · 发布于 2024-06-16 11:35:14

如果您熟悉如何使用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

相关问题 更多 >