Name = Column(String( 50 ), nullable = False )Ĭollege_id = Column(Integer, ForeignKey( 'college.id' ), nullable= False ) #学院Ĭolumn = department_id (Integer, ForeignKey ( 'department.id' ), Nullable = False ) # Sectorĭepartment = Relationship ( "Department" ) Work_num = Column(String( 30 ), unique = True, nullable = False ) #Work number Id = Column(Integer, primary_key = True ) # First use db.create_all() to create a table based on the database model, and then add the view to the menu. # Now we are about to finish this experiment just the last step. # In the contact group view, we use related_views to associate the contact views, and FAB will automatically handle the relationship between them. Open the XFce terminal and enter the following command:įrom flask_ import SQLAInterfaceįrom. development preparation 3.1 Install Flask-AppBuilderīefore the official development, we must first install Flask-AppBuilder. This framework also integrates some CSS and JS libraries, including the following:ģ. It can be seamlessly integrated with Flask/Jinja2 custom pages and can be advanced configuration. It is mainly used to avoid some repetitive and cumbersome work when building a Web background management system, and to improve project completion time. Experimental basis 2.1 Introduction to Flask-AppBuilderįlask-AppBuilder is a simple framework for quickly building a Web background management system based on Flask. The difficulty of this course is elementary, suitable for students with a foundation in Python, Flask, and SQLAlchemy. Basic usage of Flask-AppBuilder ModelView.Basic usage of Flask-AppBuilder BaseView.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |