1. 程式人生 > >virtualenv 執行python 解決依賴衝突問題 尤其是django那種蛋疼的版本問題

virtualenv 執行python 解決依賴衝突問題 尤其是django那種蛋疼的版本問題

  1. 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
    
  2. Change Postgresql credentials in settings/dev.py and run migrations

    Use your postgres username and password for fields USER

    and PASSWORD in dev.py file. After changing credentials, run migrations using the following command:

    even/bin/python manage.py migrate --settings=settings.dev