Slide 1

Slide 1 text

Marcel Neidinger API & Programmability Lead, Cisco EMEAR Systems Engineering 28.01.2021 A framework for prototypes with deadlines Django

Slide 2

Slide 2 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2 what is django django is an open source web framework – written in python – that follows the Model-View- Template (MVT) methodology and offers a Object-Relational Mapping (ORM) that can interact with a wide range of database systems. It pitches itself as suited for rapidly developing production-ready web applications. django

Slide 3

Slide 3 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3 what is django “web framework”

Slide 4

Slide 4 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4 what is django building a web app means database front-end admin API routing etc.

Slide 5

Slide 5 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5 insanity.

Slide 6

Slide 6 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6 Framework write it once and be done with it.

Slide 7

Slide 7 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7 what is django “Model-View-Template”

Slide 8

Slide 8 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8 what is django A wild request appears get data change data display data

Slide 9

Slide 9 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9 what is django get data change data display data model

Slide 10

Slide 10 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10 what is django get data change data display data view

Slide 11

Slide 11 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11 what is django get data change data display data template

Slide 12

Slide 12 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12 Model-View-Template Split the request into different repeatable parts

Slide 13

Slide 13 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13 what is django “Object-Relational Mapping”

Slide 14

Slide 14 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14 what is django SELECT * FROM User WHERE id=42

Slide 15

Slide 15 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15 insanity.

Slide 16

Slide 16 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16 what is django We all prefere objects ORM User +id:str +name:str +email:str CREATE TABLE User()

Slide 17

Slide 17 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17 what is django We all prefere objects ORM User +id:str +name:str +email:str SELECT * FROM User()

Slide 18

Slide 18 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18 Object-Relational-Mapping Writing SQL is overated. OOP is where it’s at.

Slide 19

Slide 19 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19 what is django “rapidly developing”

Slide 20

Slide 20 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20 what is django A (very) simple guestbook save entries display entries delete entries

Slide 21

Slide 21 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21 guestbook.ai The multi-billion dollar IPO is coming in 2024

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23 • Writing your first django app - part 1 https://docs.djangoproject.com/en/3.1/intro/tutorial01/ Where to go now

Slide 24

Slide 24 text

© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24 • Cover image: Photo by Stephan Seeber from Pexels Image Credit