Packaging components #557
-
I want to share code I have developed for Django. The typical method of sharing with Django is an app that can be included in the project. The app I have been developing contains both regular views as well as django components used by these views. How would you package it so it would be convenient for users? Is there a way for example to put components inside an app? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @mikko-ahonen, coincidentally, I was doing that just yesterday and today! Have a look at https://github.com/JuroOravec/alpinui/tree/main/packages/alpinui-django. How to:
Notes:
|
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
Hey @mikko-ahonen, coincidentally, I was doing that just yesterday and today! Have a look at https://github.com/JuroOravec/alpinui/tree/main/packages/alpinui-django.
How to:
<my_app>/templates
directory.ready()
hook inapps.py
, so the components are registered when user install the app withINSTALLED_APPS
.python -m build --sdist --wheel --outdir dist/ .
twine
to publish to Py…