Python Django scaffolding fu-admin tutorial: code generator usage example (front-end and back-end code generation)

final effect

Insert image description here

Insert image description here
Insert image description here
Insert image description here

Code generator

#need _

  • Use the code generator to create a project with the project name Template Test;
  • Fields include: name, coding, sorting and chart;
  • Function: Includes add, delete, modify, check, import, export and permission control of project management.

# 1. Create template

# 1.1. Open the code template and click the Add button

1

# 1.2. Enter basic information

2

# 1.3. Design the form and modify the names and codes of each field

3

# 1.4. Set the query field and list field, and submit after the settings are completed.

4

# 2. Automatically generate front-end and back-end code

# 2.1. Click the green button to generate templates to automatically generate front-end and back-end codes and menus.

8

# 2.2. View the backend code, the path is /generator/test

10

# 2.3. View the front-end code, the path is /views/generator/test

11

# 3. Automatically generate tables in the database

# 3.1. Click the yellow button on the right side of the template to automatically generate the table structure

16

# 3.2. View the generated table

12

# 4. The project has been built

# 4.1. Access the project just generated and add a new piece of data

13

# 4.2. Data added successfully

14

# 4.3. Other functions

That’s it for the documentation. You can slowly test and explore other functions by yourself.

Guess you like

Origin blog.csdn.net/a772304419/article/details/133558066
Recommended