Travel Notes on virtualenv / virtualenvwrapper and Django.
export settings of the project in Django
edit the file in the virtual environment created PostActivate.
workon virtualenvironment
$ $ $ vim cdvirtualenv
bin / PostActivate
and add: export
DJANGO_SETTINGS_MODULE = virtualenvironment.settings
Then, you could also add the autocomplete in bash. Download from
django_bash_completion trunk.
Place the downloaded file in the bin directory and edit the environment virtualenv PostActivate adding the following line.
. django_bash_completion
The point is an alias of the source.
HTH,
Sani
0 comments:
Post a Comment