The magical fullstack framework for Django. ✨
django-unicorn provides a way to use backend Django code and regular Django templates to create interactive experiences without investing in a separate frontend framework.
Building server-side sites in Django with the ORM and template engine is so pleasant, but once you need more interactivity on the frontend, there is a lot more ambiguity. Should you build out an entire API in Django REST framework? Should you use React or Vue.js (or some) other frontend framework?
It seems like there should be an easier way to create interactive experiences.
django-unicorn is still beta and the API will likely change on the way to version 1.0.0. All efforts will be made to include an easy upgrade path. 1.0.0 will signify that the public API won't change until the next major release.
https://www.django-unicorn.com
git clone [email protected]:adamghill/django-unicorn.gitpoetry installpoetry run example/manage.py migratepoetry run example/manage.py runserver 0:8000- Go to
localhost:8000in your browser - To install in another project
pip install -e ../django-unicorn
poetry run pytest
npm installnpm run-script build
npm run-script buildpoetry version major|minor|patch- Commit/tag/push version bump
poetry publish --build -r test -u __token__- Make sure test package can be installed as expected (https://test.pypi.org/project/django-unicorn/)
poetry publish -r pypi -u __token__- Make sure live package can be installed as expected (https://pypi.org/project/django-unicorn/)