N
N
Nick V2015-03-06 06:29:54
linux
Nick V, 2015-03-06 06:29:54

PyCharm + virtualenv + git?

On a computer running Elementary OS, there are - 2 versions of python ([python --version Python 2.7.3],[python3 --version Python 3.4.3]), PyCharm PE v4.0.4, git (private repository created on bitbucket). Tell/show/share/explain please how to prepare all this for effective work? It is very necessary to understand how to create a virtual environment correctly? In the project folder or in a separate folder? What should be the structure of a Django project? I read that it is better to use jinja2 instead of the standard template engine. How to attach it to the project? How to use git from PyCharm? What other tools might be needed? I would be very grateful for detailed answers or advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rhost, 2015-03-06
@hoOstel

Alternatively, you can write a script that will create a virtual environment

#!/bin/bash

virtualenv --prompt="<myenv>" ./env

source ./env/bin/activate
export PIP_REQUIRE_VIRTUALENV=true
./env/bin/pip install --upgrade -r ./requirements.txt

virtualenv --relocatable ./env

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question