Skip to content

Commit

Permalink
Update example app
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Dec 27, 2021
1 parent afff8c9 commit e742aef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,35 @@ The full documentation is at https://django-bootstrap5.readthedocs.io/
```jinja2
{% load django_bootstrap5 %}
{# Display a form #}
<form action="/url/to/submit/" method="post" class="form">
{% csrf_token %}
{% bootstrap_form form %}
{% bootstrap_button button_type="submit" content="OK" %}
{% bootstrap_button button_type="reset" content="Cancel" %}
</form>
```

## Example app

An example app is provided in `example`. You can run it from your virtualenv with `python manage.py runserver`.
An example app is provided in the folder `example`. You can run it with `python manage.py runserver`.

```bash
cd example
python manage.py runserver
```

## Bugs and suggestions

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.

https://github.com/zostera/django-bootstrap5/issues


## License

You can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details.


## Author

Developed and maintained by [Zostera](https://zostera.nl).
Expand Down
20 changes: 10 additions & 10 deletions example/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import url
from django.urls import path

from app.views import (
DefaultFormByFieldView,
Expand All @@ -13,13 +13,13 @@
)

urlpatterns = [
url(r"^$", HomePageView.as_view(), name="home"),
url(r"^formset$", DefaultFormsetView.as_view(), name="formset_default"),
url(r"^form$", DefaultFormView.as_view(), name="form_default"),
url(r"^form_by_field$", DefaultFormByFieldView.as_view(), name="form_by_field"),
url(r"^form_horizontal$", FormHorizontalView.as_view(), name="form_horizontal"),
url(r"^form_inline$", FormInlineView.as_view(), name="form_inline"),
url(r"^form_with_files$", FormWithFilesView.as_view(), name="form_with_files"),
url(r"^pagination$", PaginationView.as_view(), name="pagination"),
url(r"^misc$", MiscView.as_view(), name="misc"),
path("", HomePageView.as_view(), name="home"),
path("formset", DefaultFormsetView.as_view(), name="formset_default"),
path("form", DefaultFormView.as_view(), name="form_default"),
path("form_by_field", DefaultFormByFieldView.as_view(), name="form_by_field"),
path("form_horizontal", FormHorizontalView.as_view(), name="form_horizontal"),
path("form_inline", FormInlineView.as_view(), name="form_inline"),
path("form_with_files", FormWithFilesView.as_view(), name="form_with_files"),
path("pagination", PaginationView.as_view(), name="pagination"),
path("misc", MiscView.as_view(), name="misc"),
]

0 comments on commit e742aef

Please sign in to comment.