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
- Host: GitHub
- URL: https://github.com/diegojromerolopez/django-async-include-example
- Owner: diegojromerolopez
- License: mit
- Created: 2021-08-21T23:23:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T23:06:23.000Z (over 2 years ago)
- Last Synced: 2023-05-11T04:01:16.038Z (about 2 years ago)
- Topics: async, django, example, python, template-tags
- Language: Python
- Homepage:
- Size: 870 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`