1- # django-unicorn
1+ <p align =" center " >
2+ <a href =" https://www.django-unicorn.com/ " ><img src =" https://www.django-unicorn.com/static/img/unicorn.svg " alt =" django-unicorn logo " height =" 80 " /></a >
3+ </p >
4+ <h1 align =" center " >Unicorn</h1 >
5+ <p align =" center " >The magical full-stack framework for Django ✨</p >
26
37![ PyPI] ( https://img.shields.io/pypi/v/django-unicorn?color=blue&style=flat-square )
48
5- ![ GitHub Release Date] ( https://img.shields.io/github/release-date/adamghill/django-unicorn?style=flat-square )
6-
79<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
8-
9- [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square )] ( #contributors- )
10-
10+ [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square )] ( #contributors- )
1111<!-- ALL-CONTRIBUTORS-BADGE:END -->
1212
13- The magical fullstack framework for Django. ✨
14-
15- ` 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.
16-
17- ## Why?
18-
19- 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?
20-
21- It seems like there should be an easier way to create interactive experiences.
22-
23- ## A note
24-
25- ` 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.
26-
27- # Detailed documentation
28-
29- https://www.django-unicorn.com
30-
31- # Developing
32-
33- 1 . ` git clone [email protected] :adamghill/django-unicorn.git ` 34- 1 . ` poetry install `
35- 1 . ` poetry run python example/manage.py migrate `
36- 1 . ` poetry run python example/manage.py runserver localhost:8000 `
37- 1 . Go to ` localhost:8000 ` in your browser
38- 1 . To install in another project ` pip install -e ../django-unicorn `
39-
40- ## Run unittests
41-
42- 1 . ` poetry run pytest `
43- 1 . ` npm run test `
13+ [ Unicorn] ( https://www.django-unicorn.com ) 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.
4414
45- ## Minify Javascript
15+ ## : zap : How to use
4616
47- 1 . ` npm install `
48- 1 . ` npm run build `
17+ 1 . [ Install] ( https://www.django-unicorn.com/docs/installation/ ) ` Unicorn `
18+ 1 . [ Create] ( https://www.django-unicorn.com/docs/components/ ) a component
19+ 1 . Load the ` Unicorn ` templatetag with ` {% load unicorn %} ` and add the component to your template with ` {% unicorn 'component-name' %} `
20+ 1 . :tada :
4921
50- ## Bump version
22+ ## : book : More details
5123
52- 1 . ` npm run build `
53- 1 . ` poetry version major|minor|patch `
54- 1 . Commit/tag/push version bump
55- 1 . ` poetry publish --build -r test `
56- 1 . Make sure test package can be installed as expected (https://test.pypi.org/project/django-unicorn/ )
57- 1 . ` poetry publish `
58- 1 . Make sure live package can be installed as expected (https://pypi.org/project/django-unicorn/ )
59- 1 . Update django-unicorn.com's changelog.md
60- 1 . Update django-unicorn.com's version of ` django-unicorn `
61- 1 . [ Create GitHub release] ( https://github.com/adamghill/django-unicorn/releases/new ) and add changelog there
24+ - [ Changelog] ( https://www.django-unicorn.com/docs/changelog/ )
25+ - [ Docs] ( https://www.django-unicorn.com/docs/ )
26+ - [ Screencasts] ( https://www.django-unicorn.com/screencasts/installation )
27+ - [ Examples] ( https://www.django-unicorn.com/examples/todo )
6228
63- ## Contributors ✨
29+ ## : clap : Contributors
6430
6531Thanks goes to these wonderful people ([ emoji key] ( https://allcontributors.org/docs/en/emoji-key ) ):
6632
@@ -69,14 +35,16 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
6935<!-- markdownlint-disable -->
7036<table >
7137 <tr >
72- <td align="center"><a href="https://adamghill.com"><img src="https://avatars0.githubusercontent.com/u/317045?v=4" width="100px;" alt=""/><br /><sub><b>Adam Hill</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=adamghill" title="Code">💻</a> <a href="https://github.com/adamghill/django-unicorn/commits?author=adamghill" title="Tests">⚠️</a></td>
73- <td align="center"><a href="https://python3.ninja"><img src="https://avatars1.githubusercontent.com/u/44167?v=4" width="100px;" alt=""/><br /><sub><b>Andres Vargas</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=zodman" title="Code">💻</a></td>
74- <td align="center"><a href="http://iskra.ml"><img src="https://avatars3.githubusercontent.com/u/6555851?v=4" width="100px;" alt=""/><br /><sub><b>Eddy Ernesto del Valle Pino</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=edelvalle" title="Code">💻</a></td>
75- <td align="center"><a href="https://www.linkedin.com/in/yaser-al-najjar-429b9096/"><img src="https://avatars3.githubusercontent.com/u/10493809?v=4" width="100px;" alt=""/><br /><sub><b>Yaser Al-Najjar</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=yaseralnajjar" title="Code">💻</a></td>
38+ <td align="center"><a href="https://adamghill.com"><img src="https://avatars0.githubusercontent.com/u/317045?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Adam Hill</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=adamghill" title="Code">💻</a> <a href="https://github.com/adamghill/django-unicorn/commits?author=adamghill" title="Tests">⚠️</a></td>
39+ <td align="center"><a href="https://python3.ninja"><img src="https://avatars1.githubusercontent.com/u/44167?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andres Vargas</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=zodman" title="Code">💻</a></td>
40+ <td align="center"><a href="http://iskra.ml"><img src="https://avatars3.githubusercontent.com/u/6555851?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Eddy Ernesto del Valle Pino</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=edelvalle" title="Code">💻</a></td>
41+ <td align="center"><a href="https://www.linkedin.com/in/yaser-al-najjar-429b9096/"><img src="https://avatars3.githubusercontent.com/u/10493809?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yaser Al-Najjar</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=yaseralnajjar" title="Code">💻</a></td>
42+ <td align="center"><a href="https://github.com/sbidy"><img src="https://avatars.githubusercontent.com/u/1077364?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stephan Traub</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=sbidy" title="Tests">⚠️</a></td>
43+ <td align="center"><a href="https://github.com/frbor"><img src="https://avatars.githubusercontent.com/u/2320183?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fredrik Borg</b></sub></a><br /><a href="https://github.com/adamghill/django-unicorn/commits?author=frbor" title="Code">💻</a> <a href="https://github.com/adamghill/django-unicorn/commits?author=frbor" title="Tests">⚠️</a></td>
7644 </tr >
7745</table >
7846
79- <!-- markdownlint-enable -->
47+ <!-- markdownlint-restore -->
8048<!-- prettier-ignore-end -->
8149
8250<!-- ALL-CONTRIBUTORS-LIST:END -->
0 commit comments