https://github.com/macagua/example.django.form_inlineformset
Example for Django using the Form, ModelForm and InlineFormSet.
https://github.com/macagua/example.django.form_inlineformset
django-application django-project forms inline macagua
Last synced: 7 months ago
JSON representation
Example for Django using the Form, ModelForm and InlineFormSet.
- Host: GitHub
- URL: https://github.com/macagua/example.django.form_inlineformset
- Owner: macagua
- Created: 2020-08-25T10:38:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T02:53:27.000Z (about 5 years ago)
- Last Synced: 2025-01-09T10:49:34.097Z (9 months ago)
- Topics: django-application, django-project, forms, inline, macagua
- Language: Python
- Homepage: https://alexanderae.com/django-form-inlineformset.html
- Size: 130 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
=================================
example.django.form_inlineformset
=================================Example for Django using the `Form `_, `ModelForm `_ and `InlineFormSet `_.
Features
========* A web app example for register kitchen recipes.
* Three models like Recipes, Ingredients, Instructions included.
* A list view and a create and edit view included.
* Also you can create, search, list, update and delete Recipes, Ingredients or Instructions via the Django Admin interface.
Requirements
============* Python 3.7.
* Django 2.1.11.
Installation
============This web app example requires some Python additional dependencies, for
install it, please, execute the following command:::
pip3 install -r requirements.txt --timeout 120
Create the database, please, execute the following command:
::
cd kitchen_stuff
python3 manage.py makemigrations
python3 manage.py migrateSettings
========This Django web application needs to create a Django admin user, to access
and manage the admin interface, run the following command:**Tips**: for this local installation use user as **admin** and password as **admin**.
::
python3 manage.py createsuperuser --username admin --email admin@mail.com
Run
===You need to run Django server, run the following command:
::
python manage.py runserver
You can see the Django web application, opening your web browser with the following URL: `http://0.0.0.0:8000/ `_.
Also you can see Django admin interface, use username **admin** and password **admin**- opening your web browser with the following URL: `http://0.0.0.0:8000/admin/ `_.
References
==========- `Django 2.1 Project tutorial `_.
- `Django: Ejemplo de Form + InlineFormset `_.
- `Django class-based views with multiple inline formsets `_.