[PYTHON] Django2 screen addition flow

Premise

Beginners. It is an explanation that such an understanding may be good in practice.

Flow of adding screens in Django 2.x

It is good to think in two steps.

step 1

It can be thought of as two flows that proceed in parallel.

  1. Flow A
  2. Create a model
  3. Create a form
  4. Flow B
  5. Temporarily make a template
  6. Make a temporary view
  7. Register the view with the URL dispatcher

"Temporarily make" is OK if you think that it is not affected by Flow A.

画面追加フロー_01.jpg

Step 2

Incorporate the model and form into the template and view created in step 1. At this point, it is better to display the screen with runserver and develop incrementally while updating.

画面追加フロー_02.jpg

Sometimes you don't need a form, or you need a static file or template tag, I think it can be applied based on the above idea.

Recommended Posts

Django2 screen addition flow
Create a Django login screen
Django admin screen list_filter customization
Django admin screen reverse lookup memo
WEB application development using Django [Application addition]
Django desired shift batch input screen
Django
Django admin screen customization first step
Build a TOP screen for Django users
Creating a login screen with Django allauth
WEB application development using Django [Template addition]
Create an update screen with Django Updateview
Redo everything for the Django login screen