What is a good way to host django applications?

I have a django project that is being installed by clients on their servers. I have a few more applications that are additional functionality plugins that can be installed / uninstalled.

I would like a simple package to install these plugins to make installing / uninstalling painless. I do not want them to copy template files to one directory, application to another, media to one third, etc. I would prefer that they do not need to edit settings.py, although everything is fine if this does not help.

The ideal situation would be if they could just unzip the python path (maybe a special plugin directory?) And delete it for deletion. Is there an easy way to pack applications so that they can be installed this way?

+5
source share
2 answers

I will skip the discussion of Python packaging (distutils, setuptools, pip, etc.), since it looks like you prefer to use simple zip files or tarball. I will refer to the "sore points" that you mentioned one at a time:

. "django.template.loaders.app_directories.load_template_source", TEMPLATE_LOADERS , . "templates/", , .

. - . serve_media, app_directories ( ). , , . , ; django-staticfiles.

settings.py: . , , .. , INSTALLED_APPS. , - settings.py, , , INSTALLED_APPS. ( , , ), , .

, , : , , , .

+4

settings.py. . root settings.py, / "INSTALLED_APPS".

+1

All Articles