Welcome to Drafter’s documentation.¶
Drafter is a classroom tool that allows you to create full stack websites as you learn to code in Python.
Contents:
- How to Install Drafter
- Drafter Quick Start Guide
- Workbook
- Longer Examples
- Drafter Documentation for Students
- HTML
- Styling
- Reference Lists
- More Help
- Deployment- Step 1: Create the Repository
- Step 2: Enable GitHub Pages
- Step 3: Edit Your Main.py File
- Step 4: Upload Additional Files (If Needed)
- Step 5: Upload Your Planning Document
- Step 6: Update set_site_information with Your Details
- Step 7: Record a Video
- Step 8: Deploy Your Website
- Step 9: Get Your Deployed URL and Submit
- Checking Your Site Information
- Deployment Dashboard
- Common Issues and Tips
 
- Full API Documentation- Server
- SiteInformation
- bundle_files_into_js()
- get_all_routes()
- get_main_server()
- get_server_setting()
- protect_script_tags()
- set_main_server()
- start_server()
- BakeryTestCase
- assert_equal()
- diff_tests()
- route()
- Page
- ConversionRecord
- UnchangedRecord
- VisitedPage
- add_website_css()
- add_website_header()
- default_index()
- deploy_site()
- hide_debug_information()
- set_site_information()
- set_website_framed()
- set_website_style()
- set_website_title()
- show_debug_information()
- DebugInformation
- ServerConfiguration
- ApiKeyBox
- Argument
- Box
- BulletedList
- Button
- CheckBox
- Div
- Division
- Download
- FileUpload
- Header
- HorizontalRule
- Image
- LineBreak
- Link
- LinkContent
- MatPlotLibPlot
- NumberedList
- PageContent
- Picture
- Pre
- PreformattedText
- Row
- SelectBox
- Span
- SubmitButton
- Table
- Text
- TextArea
- TextBox
- make_safe_argument()
- make_safe_json_argument()
- make_safe_name()
- validate_parameter_name()
- float_left()
- float_right()
- update_attr()
- update_style()
- LLMError
- LLMMessage
- LLMResponse
- call_gemini()
- call_gemini_structured()
- call_gpt()
- call_gpt_structured()
- clear_api_key()
- get_stored_api_key()
- save_api_key()