Python package "django_ynh" as a helper to package Django based projects

To make packaging Django apps easier, i created https://pypi.org/project/django-ynh/

The repository https://github.com/YunoHost-Apps/django_ynh is both:

  • A installable YunoHost app (It’s just the Django Admin)
  • A python package with helpers for e.g.: SSOwat integration

I started to use this app in my PyInventory package, here the pull request: https://github.com/YunoHost-Apps/pyinventory_ynh/pull/42

Next project will be my Django-For-Runners package

3 Likes

In django_ynh -> django in manifest ..? by alexAubin · Pull Request #13 · YunoHost-Apps/django_ynh · GitHub there was the idea to split an rename the project, because it’s currently confusing.

Current idea:

  • django_yunnohost_integration - The PyPi package with the helper to integrate a Django project with YunoHost
  • example_django_ynh - A example implementation that will use the helper PyPi package

Does anyone here have any ideas? Opinions on how to name it better?

It’s done:

:wink:

1 Like

Question: django_example_ynh is currently not in app package list.

So package check will always fail, e.g:

So just add this example app to the catalog? It’s not a real app, because is just contains a “empty” Django Admin … So nobody needs this, really.
But i would like to run the package check and the YunoHost CI for it, to test that everything works.

Yeah i wouldn’t be shocked to add it to the catalog in the dev section. I recently added an “helloworld” app only to have a packaging v2 example (and be able to test the new version of the catalog API)

1 Like

Add "django_example_ynh" by jedie · Pull Request #1493 · YunoHost/apps · GitHub :wink: