Is it possible to have django projects(python3) directory outside of the environment directory? e.g I want to have my projects under /Users/me/Documents/dev/myDjangoProject and environment under /Users/me/Documents/env/myCustomEnvironment and somehow link them together. Thanks in advance
Asked
Active
Viewed 40 times
1
-
1Please visit this link: https://stackoverflow.com/questions/35936425/django-and-virtualenv-proper-project-structure – Azdy Sep 18 '19 at 12:56
1 Answers
0
Ok. I found solution.
- From my terminal window I moved into my project directory - /Users/me/Documents/dev/myDjangoProject
- Activated virtualenv from its absolute path - source /Users/me/Documents/env/myCustomEnvironment/bin/activate
- And then ran server python manage.py runserver

gogagubi
- 965
- 1
- 15
- 36