File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,8 +285,6 @@ export ADMIN_SECRET_KEY=secret_key
285285
286286
287287
288-
289-
290288
291289
292290
Original file line number Diff line number Diff line change @@ -302,10 +302,6 @@ def get_sections():
302302 "name" : "Installation" ,
303303 "url" : "#installation" ,
304304 },
305- {
306- "name" : "Quick Tutorial" ,
307- "url" : "#quick_tutorial" ,
308- },
309305 ],
310306 },
311307 {
@@ -485,99 +481,6 @@ def get_page_context(page_url):
485481""" ,
486482 },
487483 ]
488- case "#quick_tutorial" :
489- return [
490- {
491- "type" : "text-lead" ,
492- "content" : f"Set up { NAME } for your framework" ,
493- },
494- {
495- "type" : "tabs" ,
496- "id" : "setup_framework" ,
497- "content" : [
498- {
499- "name" : "FastAPI" ,
500- "id" : "fastapi" ,
501- "content" : [
502- {
503- "type" : "code-python" ,
504- "content" : read_example ("examples/fastapi_tortoiseorm/example.py" ),
505- }
506- ],
507- },
508- {
509- "name" : "Django" ,
510- "id" : "django" ,
511- "content" : [
512- {
513- "type" : "code-python" ,
514- "content" : read_example ("examples/django_djangoorm/dev/urls.py" ),
515- }
516- ],
517- },
518- {
519- "name" : "Flask" ,
520- "id" : "flask" ,
521- "content" : [
522- {
523- "type" : "code-python" ,
524- "content" : read_example ("examples/flask_sqlalchemy/example.py" ),
525- }
526- ],
527- },
528- ],
529- },
530- {
531- "type" : "text-lead" ,
532- "content" : "Register ORM models" ,
533- },
534- {
535- "type" : "tabs" ,
536- "id" : "register_orm_models" ,
537- "content" : [
538- {
539- "name" : "Tortoise ORM" ,
540- "id" : "tortoise_orm" ,
541- "content" : [
542- {
543- "type" : "code-python" ,
544- "content" : read_example ("examples/fastapi_tortoiseorm/models.py" ),
545- }
546- ],
547- },
548- {
549- "name" : "Django ORM" ,
550- "id" : "django_orm" ,
551- "content" : [
552- {
553- "type" : "code-python" ,
554- "content" : read_example ("examples/django_djangoorm/orm/models.py" ),
555- }
556- ],
557- },
558- {
559- "name" : "SQLAlchemy" ,
560- "id" : "sql_alchemy" ,
561- "content" : [
562- {
563- "type" : "code-python" ,
564- "content" : read_example ("examples/fastapi_sqlalchemy/models.py" ),
565- }
566- ],
567- },
568- {
569- "name" : "Pony ORM" ,
570- "id" : "pony_orm" ,
571- "content" : [
572- {
573- "type" : "code-python" ,
574- "content" : read_example ("examples/fastapi_ponyorm/models.py" ),
575- }
576- ],
577- },
578- ],
579- },
580- ]
581484 # settings
582485 case "#settings" :
583486 return [
You can’t perform that action at this time.
0 commit comments