A magical full-stack framework for Django.
Project description
django-unicorn
The magical fullstack framework for Django. ✨
Unicorn
is a reactive component framework that progressively enhances a normal Django view, makes AJAX calls in the background, and dynamically updates the DOM. It seamlessly extends Django past its server-side framework roots without giving up all of its niceties or re-building your website.
Why?
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.
A note
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.
Detailed documentation
https://www.django-unicorn.com
Developing
git clone git@github.com:adamghill/django-unicorn.git
poetry install
poetry run python example/manage.py migrate
poetry run python example/manage.py runserver localhost:8000
- Go to
localhost:8000
in your browser - To install in another project
pip install -e ../django-unicorn
Run unittests
poetry run pytest
npm run test
Minify Javascript
npm install
npm run build
Bump version
dj t
npm run build
poetry version major|minor|patch
- Commit/tag/push version bump
poetry publish --build -r test
- Make sure test package can be installed as expected (https://test.pypi.org/project/django-unicorn/)
poetry publish
- Make sure live package can be installed as expected (https://pypi.org/project/django-unicorn/)
- Update django-unicorn.com's changelog.md
- Update django-unicorn.com's version of
django-unicorn
- Create GitHub release and add changelog there
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Adam Hill 💻 ⚠️ |
Andres Vargas 💻 |
Eddy Ernesto del Valle Pino 💻 |
Yaser Al-Najjar 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_unicorn-0.17.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfddabd146db5aa7c297268d841368070d569a4189e8d8b8cd7f65cc61861344 |
|
MD5 | d9b8e94274c17082ef09a40344a2f641 |
|
BLAKE2b-256 | 3012cdf6896e51338eeb6a7f88f9c384aaf1d759489a04a95740e3c4ed23740c |