I am working on a django project that uses multiple applications (python modules). Most of these python modules are supported by other people in their git repositories. I use the git -submodules command to import them into my project in the apps directory, for example:
mysite/
mysite/apps
mysite/apps/django-extensions
mysite/apps/django-celery
mysite/apps/django-comments
mysite/apps/myapp
...etc
Most of these submodules (e.g. for django-extensions) have a subfolder containing the actual python module: mysite / apps / django-extensions / django_extensions
This means that I cannot just set my path in python to enable mysite / apps - I have to install it to enable mysite / apps / django-extensions so that it can import the django_extensions subfolder.
This is annoying typing:
PYTHONPATH=mysite/apps/django-extensions:mysite/apps/django-celery... python manage.py runserver
, ? ?
PYTHONPATH mysite/apps/*, .