An open API service indexing awesome lists of open source software.

https://github.com/diegojromerolopez/django-async-include-example

A sample django site for the package django-async-include
https://github.com/diegojromerolopez/django-async-include-example

async django example python template-tags

Last synced: 4 months ago
JSON representation

A sample django site for the package django-async-include

Awesome Lists containing this project

README

        

# django-async-include-example
A sample django site for the packages
[django-async-include](https://github.com/diegojromerolopez/django-async-include/) and
[django-ws-include](https://github.com/diegojromerolopez/django-ws-include/).

# Instructions
* Clone repository and cd to repository directory.
* Create virtual environment `python3 -m venv .venv`
* Activate venv `source .venv/bin/activate`
* Install dependencies `pip install -r requirements.txt`
* Migrate db `python manage.py migrate`
* Load data from fixtures `python manage.py loaddata shop_list/fixtures/shop_list.json`
* Start server `python manage.py runserver`
* Go to shoplist view `http://127.0.0.1:8000/shop_list/`
* Modify URL GET "size" parameter to get more shop list items, e.g. `http://127.0.0.1:8000/shop_list/?size=20`
* Modify URL GET "use_ws" parameter (1 or 0) to load the websocket example, e.g. `http://127.0.0.1:8000/shop_list/?use_ws=1&size=20`