37 lines
466 B
Markdown
37 lines
466 B
Markdown
# Django-htmx demo
|
|
|
|
## Run demo
|
|
|
|
### As docker container
|
|
|
|
```
|
|
make docker-build
|
|
make docker-run
|
|
```
|
|
|
|
Browse to [localhost:8000](http://localhost:8000).
|
|
|
|
Later, start and stop docker container using:
|
|
|
|
```
|
|
docker start django-htmx
|
|
```
|
|
|
|
and
|
|
|
|
```
|
|
docker stop django-htmx
|
|
```
|
|
|
|
### As standard local Django app
|
|
|
|
- requirements: Python 3.10 or 3.11
|
|
- [poetry](https://python-poetry.org)
|
|
|
|
```
|
|
poetry install
|
|
make run
|
|
```
|
|
|
|
Browse to [localhost:8000](http://localhost:8000).
|