-
Create a python virtual environment and install python dependencies.
cd evalai virtualenv venv source venv/bin/activate # run this command everytime before working on project pip install -r requirements/dev.txt
-
Change Postgresql credentials in
settings/dev.py
and run migrationsUse your postgres username and password for fields
USER
andPASSWORD
indev.py
file. After changing credentials, run migrations using the following command:even/bin/python manage.py migrate --settings=settings.dev
virtualenv 运行python 解决依赖冲突问题 尤其是django那种蛋疼的版本问题
猜你喜欢
转载自www.cnblogs.com/bonelee/p/9995407.html
今日推荐
周排行