How to set up a Django development environment without installing?

I am a student, and the laboratory staff set up permissions that students will not install on the computer (or in our profiles).

I'm curious how I can develop a Django application in a closed environment. I checked the Django trunk in my Ubuntu home directory and added the bin path to my .bashrc. But when I try to use django-admin.py, an error occurs:

ImportError: No module named django.core

I am sure this is just a path problem. My real question is whether I need to do my own development or do I need to manually add paths, and if so.

Thank you in advance.

+3
source share
1 answer

You can manually set the path:

import sys
sys.path.append('/home/kevin/dir_with_module')

, . : http://www.clemesha.org/blog/modern-python-hacker-tools-virtualenv-fabric-pip/

+4

Source: https://habr.com/ru/post/1730136/


All Articles