Design and publish custom Django modules

How do I create a third-party Django application? Iโ€™ve been hacking something recently, and Iโ€™d like to put it on GitHub and release it. How do I structure it? Is there a way I can use it without having to store the entire Django project around it in the repository? How can I check it locally inside another project?

I'm kind of new to this, so I'm sorry. I used to use Buildout to create my projects, but I donโ€™t know if I can use the Buildout Django recipe without the attached project.

Is there a guide for this?

+4
source share
1 answer
James Bennett in DjangoCon 2008 talked about how to develop django reusable applications that work well together and can be dropped into different projects. Here you can see. He explains some good practices to follow. You can also look at some popular existing external applications (some by James Bennett themselves) or even django.contrib, which are accessible through django.

Use setuptools / distutils to package your applications through cheezeshop . I think they can help you:
http://bruno.im/2010/may/05/packaging-django-reusable-app/
https://github.com/Natim/django-reusable-apps

+6
source

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


All Articles