[{"data":1,"prerenderedAt":8972},["ShallowReactive",2],{"navigation":3,"/forms-and-user-input":1016,"/forms-and-user-input-surround":8967},[4,54,89,123,165,211,253,331,389,439,462,488,514,540,578,624,650,672,702,736,774,800,850,856,862,868,874,928],{"title":5,"path":6,"stem":7,"children":8},"Introduction and Foundations","/introduction-and-foundations","01.introduction-and-foundations/01.index",[9,10,14,18,22,26,30,34,38,42,46,50],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"What is Django","/introduction-and-foundations/what-is-django","01.introduction-and-foundations/02.what-is-django",{"title":15,"path":16,"stem":17},"Key Concepts and Philosophy","/introduction-and-foundations/key-concepts-and-philosophy","01.introduction-and-foundations/03.key-concepts-and-philosophy",{"title":19,"path":20,"stem":21},"MVC vs MVT: Understanding Django's Architecture","/introduction-and-foundations/mvc-vs-mvt","01.introduction-and-foundations/04.mvc-vs-mvt",{"title":23,"path":24,"stem":25},"Project Structure Overview","/introduction-and-foundations/project-structure-overview","01.introduction-and-foundations/05.project-structure-overview",{"title":27,"path":28,"stem":29},"Installing Django","/introduction-and-foundations/installing-django","01.introduction-and-foundations/06.installing-django",{"title":31,"path":32,"stem":33},"Creating Your First Django Project","/introduction-and-foundations/creating-first-project","01.introduction-and-foundations/07.creating-first-project",{"title":35,"path":36,"stem":37},"Creating Your First Django App","/introduction-and-foundations/creating-first-app","01.introduction-and-foundations/08.creating-first-app",{"title":39,"path":40,"stem":41},"Your First Django \"Hello World\"","/introduction-and-foundations/hello-world","01.introduction-and-foundations/09.hello-world",{"title":43,"path":44,"stem":45},"Django Quick Start Guide","/introduction-and-foundations/quick-start-guide","01.introduction-and-foundations/10.quick-start-guide",{"title":47,"path":48,"stem":49},"How Django Handles Requests","/introduction-and-foundations/how-django-handles-requests","01.introduction-and-foundations/11.how-django-handles-requests",{"title":51,"path":52,"stem":53},"Django Settings","/introduction-and-foundations/django-settings","01.introduction-and-foundations/12.django-settings",{"title":55,"path":56,"stem":57,"children":58},"The Development Environment","/development-environment","02.development-environment/1.index",[59,61,65,69,73,77,81,85],{"title":60,"path":56,"stem":57},"Development Environment",{"title":62,"path":63,"stem":64},"Recommended Tooling for Django Development","/development-environment/recommended-tooling","02.development-environment/2.recommended-tooling",{"title":66,"path":67,"stem":68},"Virtual Environments","/development-environment/virtual-environments","02.development-environment/3.virtual-environments",{"title":70,"path":71,"stem":72},"Django Admin and Management Commands","/development-environment/admin-and-management-commands","02.development-environment/4.admin-and-management-commands",{"title":74,"path":75,"stem":76},"Django Project Settings","/development-environment/project-settings","02.development-environment/5.project-settings",{"title":78,"path":79,"stem":80},"Managing Django Environments: Local, Staging, and Production","/development-environment/environments-local-staging-production","02.development-environment/6.environments-local-staging-production",{"title":82,"path":83,"stem":84},"Running Django Development Server","/development-environment/running-development-server","02.development-environment/7.running-development-server",{"title":86,"path":87,"stem":88},"Working with Django Shell","/development-environment/working-with-shell","02.development-environment/8.working-with-shell",{"title":90,"path":91,"stem":92,"children":93},"Templates and Presentation Layer","/templates-and-presentation","03.templates-and-presentation/1.index",[94,95,99,103,107,111,115,119],{"title":90,"path":91,"stem":92},{"title":96,"path":97,"stem":98},"Introduction to Django Templates","/templates-and-presentation/introduction-to-templates","03.templates-and-presentation/2.introduction-to-templates",{"title":100,"path":101,"stem":102},"The Django Template Language","/templates-and-presentation/django-template-language","03.templates-and-presentation/3.django-template-language",{"title":104,"path":105,"stem":106},"Template Inheritance","/templates-and-presentation/template-inheritance","03.templates-and-presentation/4.template-inheritance",{"title":108,"path":109,"stem":110},"Built-in Template Tags and Filters","/templates-and-presentation/built-in-template-tags-and-filters","03.templates-and-presentation/5.built-in-template-tags-and-filters",{"title":112,"path":113,"stem":114},"Including Static Files","/templates-and-presentation/including-static-files","03.templates-and-presentation/6.including-static-files",{"title":116,"path":117,"stem":118},"Working with Media Files","/templates-and-presentation/working-with-media-files","03.templates-and-presentation/7.working-with-media-files",{"title":120,"path":121,"stem":122},"Using Alternative Template Engines","/templates-and-presentation/using-alternative-template-engines","03.templates-and-presentation/8.using-alternative-template-engines",{"title":124,"path":125,"stem":126,"children":127},"URLs and Views","/urls-and-views","04.urls-and-views/01.index",[128,129,133,137,141,145,149,153,157,161],{"title":124,"path":125,"stem":126},{"title":130,"path":131,"stem":132},"The URL Dispatcher","/urls-and-views/the-url-dispatcher","04.urls-and-views/02.the-url-dispatcher",{"title":134,"path":135,"stem":136},"Writing Function-Based Views","/urls-and-views/writing-function-based-views","04.urls-and-views/03.writing-function-based-views",{"title":138,"path":139,"stem":140},"View Decorators","/urls-and-views/view-decorators","04.urls-and-views/04.view-decorators",{"title":142,"path":143,"stem":144},"Rendering Responses","/urls-and-views/rendering-responses","04.urls-and-views/05.rendering-responses",{"title":146,"path":147,"stem":148},"Redirects","/urls-and-views/redirects","04.urls-and-views/06.redirects",{"title":150,"path":151,"stem":152},"Handling HTTP Methods","/urls-and-views/handling-http-methods","04.urls-and-views/07.handling-http-methods",{"title":154,"path":155,"stem":156},"Conditional View Processing","/urls-and-views/conditional-view-processing","04.urls-and-views/08.conditional-view-processing",{"title":158,"path":159,"stem":160},"File Uploads","/urls-and-views/file-uploads","04.urls-and-views/09.file-uploads",{"title":162,"path":163,"stem":164},"Using Django Shortcut Functions","/urls-and-views/using-django-shortcut-functions","04.urls-and-views/10.using-django-shortcut-functions",{"title":166,"path":167,"stem":168,"children":169},"Class Based Views","/class-based-views","05.class-based-views/01.index",[170,171,175,179,183,187,191,195,199,203,207],{"title":166,"path":167,"stem":168},{"title":172,"path":173,"stem":174},"Introduction to Class-Based Views","/class-based-views/introduction-to-class-based-views","05.class-based-views/02.introduction-to-class-based-views",{"title":176,"path":177,"stem":178},"Common Base Classes","/class-based-views/common-base-classes","05.class-based-views/03.common-base-classes",{"title":180,"path":181,"stem":182},"Built-in Generic Views","/class-based-views/built-in-generic-views","05.class-based-views/04.built-in-generic-views",{"title":184,"path":185,"stem":186},"Views for CRUD Operations","/class-based-views/views-for-crud-operations","05.class-based-views/05.views-for-crud-operations",{"title":188,"path":189,"stem":190},"Handling Forms with Class-Based Views","/class-based-views/handling-forms-with-class-based-views","05.class-based-views/06.handling-forms-with-class-based-views",{"title":192,"path":193,"stem":194},"Using Mixins","/class-based-views/using-mixins","05.class-based-views/07.using-mixins",{"title":196,"path":197,"stem":198},"URL Configuration with Class-Based Views","/class-based-views/url-configuration-with-class-based-views","05.class-based-views/08.url-configuration-with-class-based-views",{"title":200,"path":201,"stem":202},"Subclassing Generic Views","/class-based-views/subclassing-generic-views","05.class-based-views/09.subclassing-generic-views",{"title":204,"path":205,"stem":206},"Asynchronous Class-Based Views","/class-based-views/asynchronous-class-based-views","05.class-based-views/10.asynchronous-class-based-views",{"title":208,"path":209,"stem":210},"Pagination","/class-based-views/pagination","05.class-based-views/11.pagination",{"title":212,"path":213,"stem":214,"children":215},"Forms and User Input","/forms-and-user-input","06.forms-and-user-input/01.index",[216,217,221,225,229,233,237,241,245,249],{"title":212,"path":213,"stem":214},{"title":218,"path":219,"stem":220},"Understanding HTML Forms","/forms-and-user-input/understanding-html-forms","06.forms-and-user-input/02.understanding-html-forms",{"title":222,"path":223,"stem":224},"Django's Role in Form Handling","/forms-and-user-input/djangos-role-in-form-handling","06.forms-and-user-input/03.djangos-role-in-form-handling",{"title":226,"path":227,"stem":228},"Creating Forms with Forms API","/forms-and-user-input/creating-forms-with-forms-api","06.forms-and-user-input/04.creating-forms-with-forms-api",{"title":230,"path":231,"stem":232},"Form Validation","/forms-and-user-input/form-validation","06.forms-and-user-input/05.form-validation",{"title":234,"path":235,"stem":236},"Built-in Fields and Widgets","/forms-and-user-input/built-in-fields-and-widgets","06.forms-and-user-input/06.built-in-fields-and-widgets",{"title":238,"path":239,"stem":240},"Form Rendering in Templates","/forms-and-user-input/form-rendering-in-templates","06.forms-and-user-input/07.form-rendering-in-templates",{"title":242,"path":243,"stem":244},"Model Forms","/forms-and-user-input/model-forms","06.forms-and-user-input/08.model-forms",{"title":246,"path":247,"stem":248},"Advanced Form Techniques","/forms-and-user-input/advanced-form-techniques","06.forms-and-user-input/09.advanced-form-techniques",{"title":250,"path":251,"stem":252},"Security Considerations for Forms","/forms-and-user-input/security-considerations-for-forms","06.forms-and-user-input/10.security-considerations-for-forms",{"title":254,"path":255,"stem":256,"children":257},"Models and Databases","/models-and-databases","07.models-and-databases/01.index",[258,259,263,267,271,275,279,283,287,291,295,299,303,307,311,315,319,323,327],{"title":254,"path":255,"stem":256},{"title":260,"path":261,"stem":262},"Understanding Django Models","/models-and-databases/understanding-django-models","07.models-and-databases/02.understanding-django-models",{"title":264,"path":265,"stem":266},"Defining Fields","/models-and-databases/defining-fields","07.models-and-databases/03.defining-fields",{"title":268,"path":269,"stem":270},"Relationships and Foreign Keys","/models-and-databases/relationships-and-foreign-keys","07.models-and-databases/04.relationships-and-foreign-keys",{"title":272,"path":273,"stem":274},"Examples of Relationship Patterns","/models-and-databases/examples-of-relationship-patterns","07.models-and-databases/05.examples-of-relationship-patterns",{"title":276,"path":277,"stem":278},"Making Queries","/models-and-databases/making-queries","07.models-and-databases/06.making-queries",{"title":280,"path":281,"stem":282},"Filtering, Ordering, and Slicing","/models-and-databases/filtering-ordering-slicing","07.models-and-databases/07.filtering-ordering-slicing",{"title":284,"path":285,"stem":286},"Managers and QuerySets","/models-and-databases/managers-and-querysets","07.models-and-databases/08.managers-and-querysets",{"title":288,"path":289,"stem":290},"Aggregation","/models-and-databases/aggregation","07.models-and-databases/09.aggregation",{"title":292,"path":293,"stem":294},"Search","/models-and-databases/search","07.models-and-databases/10.search",{"title":296,"path":297,"stem":298},"Raw SQL Queries","/models-and-databases/raw-sql-queries","07.models-and-databases/11.raw-sql-queries",{"title":300,"path":301,"stem":302},"Transactions","/models-and-databases/transactions","07.models-and-databases/12.transactions",{"title":304,"path":305,"stem":306},"Multiple Databases","/models-and-databases/multiple-databases","07.models-and-databases/13.multiple-databases",{"title":308,"path":309,"stem":310},"Tablespaces","/models-and-databases/tablespaces","07.models-and-databases/14.tablespaces",{"title":312,"path":313,"stem":314},"Composite Primary Keys","/models-and-databases/composite-primary-keys","07.models-and-databases/15.composite-primary-keys",{"title":316,"path":317,"stem":318},"Database Instrumentation","/models-and-databases/database-instrumentation","07.models-and-databases/16.database-instrumentation",{"title":320,"path":321,"stem":322},"Database Optimization","/models-and-databases/database-optimization","07.models-and-databases/17.database-optimization",{"title":324,"path":325,"stem":326},"Fixtures","/models-and-databases/fixtures","07.models-and-databases/18.fixtures",{"title":328,"path":329,"stem":330},"Signals","/models-and-databases/signals","07.models-and-databases/19.signals",{"title":332,"path":333,"stem":334,"children":335},"Migrations","/migrations","08.migrations/01.index",[336,337,341,345,349,353,357,361,365,369,373,377,381,385],{"title":332,"path":333,"stem":334},{"title":338,"path":339,"stem":340},"How Migrations Work","/migrations/how-migrations-work","08.migrations/02.how-migrations-work",{"title":342,"path":343,"stem":344},"Management Commands","/migrations/management-commands","08.migrations/03.management-commands",{"title":346,"path":347,"stem":348},"Dependencies and Workflow","/migrations/dependencies-and-workflow","08.migrations/04.dependencies-and-workflow",{"title":350,"path":351,"stem":352},"Transaction Handling","/migrations/transaction-handling","08.migrations/05.transaction-handling",{"title":354,"path":355,"stem":356},"Adding Migrations to Apps","/migrations/adding-migrations-to-apps","08.migrations/06.adding-migrations-to-apps",{"title":358,"path":359,"stem":360},"Reversing Migrations","/migrations/reversing-migrations","08.migrations/07.reversing-migrations",{"title":362,"path":363,"stem":364},"Historical Models","/migrations/historical-models","08.migrations/08.historical-models",{"title":366,"path":367,"stem":368},"Considerations When Removing Fields","/migrations/considerations-when-removing-fields","08.migrations/09.considerations-when-removing-fields",{"title":370,"path":371,"stem":372},"Data Migrations","/migrations/data-migrations","08.migrations/10.data-migrations",{"title":374,"path":375,"stem":376},"Squashing Migrations","/migrations/squashing-migrations","08.migrations/11.squashing-migrations",{"title":378,"path":379,"stem":380},"Serializing Values","/migrations/serializing-values","08.migrations/12.serializing-values",{"title":382,"path":383,"stem":384},"Supporting Multiple Django Versions","/migrations/supporting-multiple-django-versions","08.migrations/13.supporting-multiple-django-versions",{"title":386,"path":387,"stem":388},"Django Serialization Framework","/migrations/django-serialization-framework","08.migrations/14.django-serialization-framework",{"title":390,"path":391,"stem":392,"children":393},"Authentication and Authorization","/authentication-and-authorization","09.authentication-and-authorization/01.index",[394,395,399,403,407,411,415,419,423,427,431,435],{"title":390,"path":391,"stem":392},{"title":396,"path":397,"stem":398},"Overview of Django's Authentication System","/authentication-and-authorization/overview-of-django-authentication-system","09.authentication-and-authorization/02.overview-of-django-authentication-system",{"title":400,"path":401,"stem":402},"Users and Groups","/authentication-and-authorization/users-and-groups","09.authentication-and-authorization/03.users-and-groups",{"title":404,"path":405,"stem":406},"Permissions","/authentication-and-authorization/permissions","09.authentication-and-authorization/04.permissions",{"title":408,"path":409,"stem":410},"Password Management","/authentication-and-authorization/password-management","09.authentication-and-authorization/05.password-management",{"title":412,"path":413,"stem":414},"Authentication Views","/authentication-and-authorization/authentication-views","09.authentication-and-authorization/06.authentication-views",{"title":416,"path":417,"stem":418},"Login and Logout","/authentication-and-authorization/login-and-logout","09.authentication-and-authorization/07.login-and-logout",{"title":420,"path":421,"stem":422},"Custom User Models","/authentication-and-authorization/custom-user-models","09.authentication-and-authorization/08.custom-user-models",{"title":424,"path":425,"stem":426},"Middleware for Authentication","/authentication-and-authorization/middleware-for-authentication","09.authentication-and-authorization/09.middleware-for-authentication",{"title":428,"path":429,"stem":430},"Authorization in Views and Templates","/authentication-and-authorization/authorization-in-views-and-templates","09.authentication-and-authorization/10.authorization-in-views-and-templates",{"title":432,"path":433,"stem":434},"Integrating Social Authentication","/authentication-and-authorization/integrating-social-authentication","09.authentication-and-authorization/11.integrating-social-authentication",{"title":436,"path":437,"stem":438},"Security Best Practices","/authentication-and-authorization/security-best-practices","09.authentication-and-authorization/12.security-best-practices",{"title":440,"path":441,"stem":442,"children":443},"Sessions, Cookies, and State","/sessions-cookies-state","10.sessions-cookies-state/01.index",[444,446,450,454,458],{"title":445,"path":441,"stem":442},"Sessions, Cookies, and State Management",{"title":447,"path":448,"stem":449},"Introduction to Sessions","/sessions-cookies-state/introduction-to-sessions","10.sessions-cookies-state/02.introduction-to-sessions",{"title":451,"path":452,"stem":453},"Working with Cookies","/sessions-cookies-state/working-with-cookies","10.sessions-cookies-state/03.working-with-cookies",{"title":455,"path":456,"stem":457},"Server-Side Session Storage Options","/sessions-cookies-state/server-side-session-storage-options","10.sessions-cookies-state/04.server-side-session-storage-options",{"title":459,"path":460,"stem":461},"Session Security","/sessions-cookies-state/session-security","10.sessions-cookies-state/05.session-security",{"title":463,"path":464,"stem":465,"children":466},"Working with Files","/working-with-files","11.working-with-files/01.index",[467,468,472,476,480,484],{"title":463,"path":464,"stem":465},{"title":469,"path":470,"stem":471},"Files in Models","/working-with-files/files-in-models","11.working-with-files/02.files-in-models",{"title":473,"path":474,"stem":475},"The File Object","/working-with-files/the-file-object","11.working-with-files/03.the-file-object",{"title":477,"path":478,"stem":479},"Storage Backends","/working-with-files/storage-backends","11.working-with-files/04.storage-backends",{"title":481,"path":482,"stem":483},"Using Cloud Storage Providers","/working-with-files/using-cloud-storage-providers","11.working-with-files/05.using-cloud-storage-providers",{"title":485,"path":486,"stem":487},"Managing Media in Production","/working-with-files/managing-media-in-production","11.working-with-files/06.managing-media-in-production",{"title":489,"path":490,"stem":491,"children":492},"Admin Site","/admin-site","12.admin-site/01.index",[493,494,498,502,506,510],{"title":489,"path":490,"stem":491},{"title":495,"path":496,"stem":497},"Enabling the Admin","/admin-site/enabling-the-admin","12.admin-site/02.enabling-the-admin",{"title":499,"path":500,"stem":501},"Registering Models","/admin-site/registering-models","12.admin-site/03.registering-models",{"title":503,"path":504,"stem":505},"Customizing Admin Display","/admin-site/customizing-admin-display","12.admin-site/04.customizing-admin-display",{"title":507,"path":508,"stem":509},"Admin Actions","/admin-site/admin-actions","12.admin-site/05.admin-actions",{"title":511,"path":512,"stem":513},"Admin Security Best Practices","/admin-site/admin-security-best-practices","12.admin-site/06.admin-security-best-practices",{"title":515,"path":516,"stem":517,"children":518},"Middleware","/middleware","13.middleware/01.index",[519,520,524,528,532,536],{"title":515,"path":516,"stem":517},{"title":521,"path":522,"stem":523},"Middleware Overview","/middleware/middleware-overview","13.middleware/02.middleware-overview",{"title":525,"path":526,"stem":527},"Built-in Middleware","/middleware/built-in-middleware","13.middleware/03.built-in-middleware",{"title":529,"path":530,"stem":531},"Creating Custom Middleware","/middleware/creating-custom-middleware","13.middleware/04.creating-custom-middleware",{"title":533,"path":534,"stem":535},"Middleware Ordering","/middleware/middleware-ordering","13.middleware/05.middleware-ordering",{"title":537,"path":538,"stem":539},"Performance and Debugging","/middleware/performance-and-debugging","13.middleware/06.performance-and-debugging",{"title":541,"path":542,"stem":543,"children":544},"Security","/security","14.security/01.index",[545,546,550,554,558,562,566,570,574],{"title":541,"path":542,"stem":543},{"title":547,"path":548,"stem":549},"Django Security Philosophy","/security/django-security-philosophy","14.security/02.django-security-philosophy",{"title":551,"path":552,"stem":553},"Cross Site Request Forgery","/security/cross-site-request-forgery","14.security/03.cross-site-request-forgery",{"title":555,"path":556,"stem":557},"Cross Site Scripting","/security/cross-site-scripting","14.security/04.cross-site-scripting",{"title":559,"path":560,"stem":561},"SQL Injection Protection","/security/sql-injection-protection","14.security/05.sql-injection-protection",{"title":563,"path":564,"stem":565},"Clickjacking Protection","/security/clickjacking-protection","14.security/06.clickjacking-protection",{"title":567,"path":568,"stem":569},"HTTPS Setup and HSTS","/security/https-setup-and-hsts","14.security/07.https-setup-and-hsts",{"title":571,"path":572,"stem":573},"Password Storage and Cryptography","/security/password-storage-and-cryptography","14.security/08.password-storage-and-cryptography",{"title":575,"path":576,"stem":577},"Secure Deployment Checklist","/security/secure-deployment-checklist","14.security/09.secure-deployment-checklist",{"title":579,"path":580,"stem":581,"children":582},"Testing","/testing","15.testing/01.index",[583,584,588,592,596,600,604,608,612,616,620],{"title":579,"path":580,"stem":581},{"title":585,"path":586,"stem":587},"Introduction to Django Testing","/testing/introduction-to-django-testing","15.testing/02.introduction-to-django-testing",{"title":589,"path":590,"stem":591},"Writing and Running Tests","/testing/writing-and-running-tests","15.testing/03.writing-and-running-tests",{"title":593,"path":594,"stem":595},"Test Tools","/testing/test-tools","15.testing/04.test-tools",{"title":597,"path":598,"stem":599},"Testing Models","/testing/testing-models","15.testing/05.testing-models",{"title":601,"path":602,"stem":603},"Testing Views","/testing/testing-views","15.testing/06.testing-views",{"title":605,"path":606,"stem":607},"Testing Forms","/testing/testing-forms","15.testing/07.testing-forms",{"title":609,"path":610,"stem":611},"Testing Templates","/testing/testing-templates","15.testing/08.testing-templates",{"title":613,"path":614,"stem":615},"Testing Authentication","/testing/testing-authentication","15.testing/09.testing-authentication",{"title":617,"path":618,"stem":619},"Advanced Testing Topics","/testing/advanced-testing-topics","15.testing/10.advanced-testing-topics",{"title":621,"path":622,"stem":623},"Performance Testing","/testing/performance-testing","15.testing/11.performance-testing",{"title":625,"path":626,"stem":627,"children":628},"Static Assets and Frontend Integration","/static-assets-and-frontend-integration","16.static-assets-and-frontend-integration/01.index",[629,630,634,638,642,646],{"title":625,"path":626,"stem":627},{"title":631,"path":632,"stem":633},"Working with Static Files","/static-assets-and-frontend-integration/working-with-static-files","16.static-assets-and-frontend-integration/02.working-with-static-files",{"title":635,"path":636,"stem":637},"Integrating CSS and JavaScript","/static-assets-and-frontend-integration/integrating-css-and-javascript","16.static-assets-and-frontend-integration/03.integrating-css-and-javascript",{"title":639,"path":640,"stem":641},"Using Build Tools like Vite or Webpack","/static-assets-and-frontend-integration/using-build-tools-like-vite-or-webpack","16.static-assets-and-frontend-integration/04.using-build-tools-like-vite-or-webpack",{"title":643,"path":644,"stem":645},"Using React or Vue with Django","/static-assets-and-frontend-integration/using-react-or-vue-with-django","16.static-assets-and-frontend-integration/05.using-react-or-vue-with-django",{"title":647,"path":648,"stem":649},"Managing CORS","/static-assets-and-frontend-integration/managing-cors","16.static-assets-and-frontend-integration/06.managing-cors",{"title":651,"path":652,"stem":653,"children":654},"Internationalization and Localization","/internationalization-and-localization","17.internationalization-and-localization/01.index",[655,656,660,664,668],{"title":651,"path":652,"stem":653},{"title":657,"path":658,"stem":659},"Enabling Translation","/internationalization-and-localization/enabling-translation","17.internationalization-and-localization/02.enabling-translation",{"title":661,"path":662,"stem":663},"Translating Text in Code and Templates","/internationalization-and-localization/translating-text-in-code-and-templates","17.internationalization-and-localization/03.translating-text-in-code-and-templates",{"title":665,"path":666,"stem":667},"Timezone Support","/internationalization-and-localization/timezone-support","17.internationalization-and-localization/04.timezone-support",{"title":669,"path":670,"stem":671},"Locale Middleware","/internationalization-and-localization/locale-middleware","17.internationalization-and-localization/05.locale-middleware",{"title":673,"path":674,"stem":675,"children":676},"Caching","/caching","18.caching/01.index",[677,678,682,686,690,694,698],{"title":673,"path":674,"stem":675},{"title":679,"path":680,"stem":681},"Introduction to Caching","/caching/introduction-to-caching","18.caching/02.introduction-to-caching",{"title":683,"path":684,"stem":685},"Cache Backends","/caching/cache-backends","18.caching/03.cache-backends",{"title":687,"path":688,"stem":689},"Per View Caching","/caching/per-view-caching","18.caching/04.per-view-caching",{"title":691,"path":692,"stem":693},"Low Level Cache API","/caching/low-level-cache-api","18.caching/05.low-level-cache-api",{"title":695,"path":696,"stem":697},"Template Fragment Caching","/caching/template-fragment-caching","18.caching/06.template-fragment-caching",{"title":699,"path":700,"stem":701},"Deployment Level Caching Patterns","/caching/deployment-level-caching-patterns","18.caching/07.deployment-level-caching-patterns",{"title":703,"path":704,"stem":705,"children":706},"Asynchronous Django","/asynchronous-django","19.asynchronous-django/01.index",[707,708,712,716,720,724,728,732],{"title":703,"path":704,"stem":705},{"title":709,"path":710,"stem":711},"Introduction to ASGI","/asynchronous-django/introduction-to-asgi","19.asynchronous-django/02.introduction-to-asgi",{"title":713,"path":714,"stem":715},"Async Views","/asynchronous-django/async-views","19.asynchronous-django/03.async-views",{"title":717,"path":718,"stem":719},"Async ORM Status","/asynchronous-django/async-orm-status","19.asynchronous-django/04.async-orm-status",{"title":721,"path":722,"stem":723},"WebSockets with Channels","/asynchronous-django/websockets-with-channels","19.asynchronous-django/05.websockets-with-channels",{"title":725,"path":726,"stem":727},"Background Tasks with Celery or RQ","/asynchronous-django/background-tasks-with-celery-or-rq","19.asynchronous-django/06.background-tasks-with-celery-or-rq",{"title":729,"path":730,"stem":731},"Asynchronous Support","/asynchronous-django/asynchronous-support","19.asynchronous-django/07.asynchronous-support",{"title":733,"path":734,"stem":735},"Django's Tasks Framework","/asynchronous-django/django-tasks-framework","19.asynchronous-django/08.django-tasks-framework",{"title":737,"path":738,"stem":739,"children":740},"Deployment","/deployment","20.deployment/01.index",[741,742,746,750,754,758,762,766,770],{"title":737,"path":738,"stem":739},{"title":743,"path":744,"stem":745},"Preparing for Production","/deployment/preparing-for-production","20.deployment/02.preparing-for-production",{"title":747,"path":748,"stem":749},"Using WSGI and ASGI Servers","/deployment/using-wsgi-and-asgi-servers","20.deployment/03.using-wsgi-and-asgi-servers",{"title":751,"path":752,"stem":753},"Deploying on Linux Servers","/deployment/deploying-on-linux-servers","20.deployment/04.deploying-on-linux-servers",{"title":755,"path":756,"stem":757},"Using Docker","/deployment/using-docker","20.deployment/05.using-docker",{"title":759,"path":760,"stem":761},"Cloud Deployment Guides","/deployment/cloud-deployment-guides","20.deployment/06.cloud-deployment-guides",{"title":763,"path":764,"stem":765},"Scaling and Load Balancing","/deployment/scaling-and-load-balancing","20.deployment/07.scaling-and-load-balancing",{"title":767,"path":768,"stem":769},"Monitoring and Logging","/deployment/monitoring-and-logging","20.deployment/08.monitoring-and-logging",{"title":771,"path":772,"stem":773},"Backup Strategies","/deployment/backup-strategies","20.deployment/09.backup-strategies",{"title":775,"path":776,"stem":777,"children":778},"Performance and Optimization","/performance-and-optimization","21.performance-and-optimization/01.index",[779,780,784,788,792,796],{"title":775,"path":776,"stem":777},{"title":781,"path":782,"stem":783},"Query Optimization","/performance-and-optimization/query-optimization","21.performance-and-optimization/02.query-optimization",{"title":785,"path":786,"stem":787},"Template Rendering Optimization","/performance-and-optimization/template-rendering-optimization","21.performance-and-optimization/03.template-rendering-optimization",{"title":789,"path":790,"stem":791},"Using Select Related and Prefetch Related","/performance-and-optimization/using-select-related-and-prefetch-related","21.performance-and-optimization/04.using-select-related-and-prefetch-related",{"title":793,"path":794,"stem":795},"Caching Strategies","/performance-and-optimization/caching-strategies","21.performance-and-optimization/05.caching-strategies",{"title":797,"path":798,"stem":799},"Profiling Django Apps","/performance-and-optimization/profiling-django-apps","21.performance-and-optimization/06.profiling-django-apps",{"title":801,"path":802,"stem":803,"children":804},"Advanced and Expert Topics","/advanced-and-expert-topics","22.advanced-and-expert-topics/01.index",[805,806,810,814,818,822,826,830,834,838,842,846],{"title":801,"path":802,"stem":803},{"title":807,"path":808,"stem":809},"System Architecture Patterns","/advanced-and-expert-topics/system-architecture-patterns","22.advanced-and-expert-topics/02.system-architecture-patterns",{"title":811,"path":812,"stem":813},"Domain Driven Design with Django","/advanced-and-expert-topics/domain-driven-design-with-django","22.advanced-and-expert-topics/03.domain-driven-design-with-django",{"title":815,"path":816,"stem":817},"Building Large Scale Django Projects","/advanced-and-expert-topics/building-large-scale-django-projects","22.advanced-and-expert-topics/04.building-large-scale-django-projects",{"title":819,"path":820,"stem":821},"Plugin Architectures for Django Apps","/advanced-and-expert-topics/plugin-architectures-for-django-apps","22.advanced-and-expert-topics/05.plugin-architectures-for-django-apps",{"title":823,"path":824,"stem":825},"Extending Django's Core","/advanced-and-expert-topics/extending-djangos-core","22.advanced-and-expert-topics/06.extending-djangos-core",{"title":827,"path":828,"stem":829},"Custom ORM Expressions","/advanced-and-expert-topics/custom-orm-expressions","22.advanced-and-expert-topics/07.custom-orm-expressions",{"title":831,"path":832,"stem":833},"Custom Management Commands","/advanced-and-expert-topics/custom-management-commands","22.advanced-and-expert-topics/08.custom-management-commands",{"title":835,"path":836,"stem":837},"Working with Signals","/advanced-and-expert-topics/working-with-signals","22.advanced-and-expert-topics/09.working-with-signals",{"title":839,"path":840,"stem":841},"Building Reusable Django Packages","/advanced-and-expert-topics/building-reusable-django-packages","22.advanced-and-expert-topics/10.building-reusable-django-packages",{"title":843,"path":844,"stem":845},"Integrating Microservices","/advanced-and-expert-topics/integrating-microservices","22.advanced-and-expert-topics/11.integrating-microservices",{"title":847,"path":848,"stem":849},"Advanced Security Hardening","/advanced-and-expert-topics/advanced-security-hardening","22.advanced-and-expert-topics/12.advanced-security-hardening",{"title":851,"path":852,"stem":853,"children":854},"Logging in Django","/logging-in-django","23.logging-in-django/01.index",[855],{"title":851,"path":852,"stem":853},{"title":857,"path":858,"stem":859,"children":860},"FAQ and Troubleshooting","/faq-and-troubleshooting","24.faq-and-troubleshooting/01.index",[861],{"title":857,"path":858,"stem":859},{"title":863,"path":864,"stem":865,"children":866},"External Packages and Ecosystem","/external-packages-and-ecosystem","25.external-packages-and-ecosystem/01.index",[867],{"title":863,"path":864,"stem":865},{"title":869,"path":870,"stem":871,"children":872},"Django Internals and Contributing","/django-internals-and-contributing","26.django-internals-and-contributing/01.index",[873],{"title":869,"path":870,"stem":871},{"title":875,"path":876,"stem":877,"children":878},"Microservices with Django","/microservices-with-django","27.microservices-with-django/01.index",[879,880,884,888,892,896,900,904,908,912,916,920,924],{"title":875,"path":876,"stem":877},{"title":881,"path":882,"stem":883},"What Is a Microservice?","/microservices-with-django/what-is-a-microservice","27.microservices-with-django/02.what-is-a-microservice",{"title":885,"path":886,"stem":887},"Introducing the Django Microservices Architecture","/microservices-with-django/django-microservices-architecture","27.microservices-with-django/03.django-microservices-architecture",{"title":889,"path":890,"stem":891},"Setting Up the Development and Runtime Environment","/microservices-with-django/development-environment","27.microservices-with-django/04.development-environment",{"title":893,"path":894,"stem":895},"Cloud-native Data Processing with MongoDB","/microservices-with-django/cloud-native-data-processing","27.microservices-with-django/05.cloud-native-data-processing",{"title":897,"path":898,"stem":899},"Creating RESTful APIs for Microservices","/microservices-with-django/restful-apis","27.microservices-with-django/06.restful-apis",{"title":901,"path":902,"stem":903},"Orchestrating Microservices with Celery and RabbitMQ","/microservices-with-django/orchestrating-celery-rabbitmq","27.microservices-with-django/07.orchestrating-celery-rabbitmq",{"title":905,"path":906,"stem":907},"Testing Microservices","/microservices-with-django/testing-microservices","27.microservices-with-django/08.testing-microservices",{"title":909,"path":910,"stem":911},"Deploying Microservices","/microservices-with-django/deploying-microservices","27.microservices-with-django/09.deploying-microservices",{"title":913,"path":914,"stem":915},"Securing Microservices","/microservices-with-django/securing-microservices","27.microservices-with-django/10.securing-microservices",{"title":917,"path":918,"stem":919},"Improving Microservices Performance with Caching","/microservices-with-django/performance-caching","27.microservices-with-django/11.performance-caching",{"title":921,"path":922,"stem":923},"Best Practices","/microservices-with-django/best-practices","27.microservices-with-django/12.best-practices",{"title":925,"path":926,"stem":927},"Transforming a Monolithic Web App into a Microservice version","/microservices-with-django/monolith-to-microservices","27.microservices-with-django/13.monolith-to-microservices",{"title":929,"path":930,"stem":931,"children":932},"Releases","/releases","releases",[933,936,940,944,948,952,956,960,964,968,972,976,980,984,988,992,996,1000,1004,1008,1012],{"title":934,"path":930,"stem":935},"Django Releases","releases/index",{"title":937,"path":938,"stem":939},"Django 5.1.10 release notes","/releases/5.1.10","releases/5.1.10",{"title":941,"path":942,"stem":943},"Django 5.1.11 release notes","/releases/5.1.11","releases/5.1.11",{"title":945,"path":946,"stem":947},"Django 5.1.12 release notes","/releases/5.1.12","releases/5.1.12",{"title":949,"path":950,"stem":951},"Django 5.1.13 release notes","/releases/5.1.13","releases/5.1.13",{"title":953,"path":954,"stem":955},"Django 5.1.14 release notes","/releases/5.1.14","releases/5.1.14",{"title":957,"path":958,"stem":959},"Django 5.1.15 release notes","/releases/5.1.15","releases/5.1.15",{"title":961,"path":962,"stem":963},"Django 5.2 release notes","/releases/5.2","releases/5.2",{"title":965,"path":966,"stem":967},"Django 5.2.1 release notes","/releases/5.2.1","releases/5.2.1",{"title":969,"path":970,"stem":971},"Django 5.2.10 release notes","/releases/5.2.10","releases/5.2.10",{"title":973,"path":974,"stem":975},"Django 5.2.2 release notes","/releases/5.2.2","releases/5.2.2",{"title":977,"path":978,"stem":979},"Django 5.2.3 release notes","/releases/5.2.3","releases/5.2.3",{"title":981,"path":982,"stem":983},"Django 5.2.4 release notes","/releases/5.2.4","releases/5.2.4",{"title":985,"path":986,"stem":987},"Django 5.2.5 release notes","/releases/5.2.5","releases/5.2.5",{"title":989,"path":990,"stem":991},"Django 5.2.6 release notes","/releases/5.2.6","releases/5.2.6",{"title":993,"path":994,"stem":995},"Django 5.2.7 release notes","/releases/5.2.7","releases/5.2.7",{"title":997,"path":998,"stem":999},"Django 5.2.8 release notes","/releases/5.2.8","releases/5.2.8",{"title":1001,"path":1002,"stem":1003},"Django 5.2.9 release notes","/releases/5.2.9","releases/5.2.9",{"title":1005,"path":1006,"stem":1007},"Django 6.0 release notes","/releases/6.0","releases/6.0",{"title":1009,"path":1010,"stem":1011},"Django 6.0.1 release notes","/releases/6.0.1","releases/6.0.1",{"title":1013,"path":1014,"stem":1015},"Django 6.1 release notes - UNDER DEVELOPMENT","/releases/6.1","releases/6.1",{"id":1017,"title":212,"body":1018,"description":1028,"extension":8962,"links":8963,"meta":8964,"navigation":1116,"path":213,"seo":8965,"stem":214,"__hash__":8966},"docs/06.forms-and-user-input/01.index.md",{"type":1019,"value":1020,"toc":8937},"minimark",[1021,1025,1029,1034,1037,1042,1067,1071,1075,1786,1790,2188,2192,2196,3693,3697,3701,4708,4712,5489,5493,5497,6550,6554,6558,7610,7614,7618,8930,8933],[1022,1023,212],"h1",{"id":1024},"forms-and-user-input",[1026,1027,1028],"p",{},"Django's form handling system provides a comprehensive framework for processing user input, validating data, and rendering HTML forms. This chapter covers everything from basic form creation to advanced techniques for handling complex user interactions.",[1030,1031,1033],"h2",{"id":1032},"what-are-django-forms","What Are Django Forms?",[1026,1035,1036],{},"Django forms are Python classes that define the structure, validation rules, and rendering behavior of HTML forms. They provide a bridge between HTML form elements and Python data types, handling the conversion, validation, and security aspects automatically.",[1038,1039,1041],"h3",{"id":1040},"key-benefits-of-django-forms","Key Benefits of Django Forms",[1026,1043,1044,1048,1049,1051,1052,1055,1058,1059,1062,1063,1066],{},[1045,1046,1047],"strong",{},"Data Validation",": Automatic validation of user input with built-in and custom validators\n",[1045,1050,541],{},": Built-in protection against CSRF attacks and XSS vulnerabilities",[1053,1054],"br",{},[1045,1056,1057],{},"Rendering",": Automatic HTML generation with customizable widgets\n",[1045,1060,1061],{},"Error Handling",": Comprehensive error collection and display\n",[1045,1064,1065],{},"Data Conversion",": Automatic conversion between HTML strings and Python data types",[1030,1068,1070],{"id":1069},"basic-form-structure","Basic Form Structure",[1038,1072,1074],{"id":1073},"simple-contact-form","Simple Contact Form",[1076,1077,1082],"pre",{"className":1078,"code":1079,"language":1080,"meta":1081,"style":1081},"language-python shiki shiki-themes material-theme-lighter vitesse-light vitesse-dark","# forms.py\nfrom django import forms\n\nclass ContactForm(forms.Form):\n    name = forms.CharField(max_length=100)\n    email = forms.EmailField()\n    subject = forms.CharField(max_length=200)\n    message = forms.CharField(widget=forms.Textarea)\n    \n    def clean_email(self):\n        email = self.cleaned_data['email']\n        if not email.endswith('@company.com'):\n            raise forms.ValidationError('Please use your company email address.')\n        return email\n\n# views.py\nfrom django.shortcuts import render, redirect\nfrom django.contrib import messages\nfrom .forms import ContactForm\n\ndef contact_view(request):\n    if request.method == 'POST':\n        form = ContactForm(request.POST)\n        if form.is_valid():\n            # Process the form data\n            name = form.cleaned_data['name']\n            email = form.cleaned_data['email']\n            subject = form.cleaned_data['subject']\n            message = form.cleaned_data['message']\n            \n            # Send email or save to database\n            send_contact_email(name, email, subject, message)\n            \n            messages.success(request, 'Your message has been sent successfully!')\n            return redirect('contact')\n    else:\n        form = ContactForm()\n    \n    return render(request, 'contact.html', {'form': form})\n","python","",[1083,1084,1085,1094,1111,1118,1146,1179,1197,1222,1253,1259,1277,1310,1339,1363,1372,1377,1383,1407,1424,1440,1445,1462,1490,1511,1527,1533,1558,1582,1607,1632,1638,1644,1670,1675,1701,1721,1729,1740,1745],"code",{"__ignoreMap":1081},[1086,1087,1090],"span",{"class":1088,"line":1089},"line",1,[1086,1091,1093],{"class":1092},"s9Tkl","# forms.py\n",[1086,1095,1097,1101,1105,1108],{"class":1088,"line":1096},2,[1086,1098,1100],{"class":1099},"siDh9","from",[1086,1102,1104],{"class":1103},"sftqT"," django ",[1086,1106,1107],{"class":1099},"import",[1086,1109,1110],{"class":1103}," forms\n",[1086,1112,1114],{"class":1088,"line":1113},3,[1086,1115,1117],{"emptyLinePlaceholder":1116},true,"\n",[1086,1119,1121,1125,1129,1133,1137,1140,1143],{"class":1088,"line":1120},4,[1086,1122,1124],{"class":1123},"s5Kfy","class",[1086,1126,1128],{"class":1127},"sD-vU"," ContactForm",[1086,1130,1132],{"class":1131},"soVBu","(",[1086,1134,1136],{"class":1135},"sYn-s","forms",[1086,1138,1139],{"class":1131},".",[1086,1141,1142],{"class":1135},"Form",[1086,1144,1145],{"class":1131},"):\n",[1086,1147,1149,1152,1155,1158,1160,1164,1166,1170,1172,1176],{"class":1088,"line":1148},5,[1086,1150,1151],{"class":1103},"    name ",[1086,1153,1154],{"class":1131},"=",[1086,1156,1157],{"class":1103}," forms",[1086,1159,1139],{"class":1131},[1086,1161,1163],{"class":1162},"siWMO","CharField",[1086,1165,1132],{"class":1131},[1086,1167,1169],{"class":1168},"sqOPj","max_length",[1086,1171,1154],{"class":1131},[1086,1173,1175],{"class":1174},"s7CZa","100",[1086,1177,1178],{"class":1131},")\n",[1086,1180,1182,1185,1187,1189,1191,1194],{"class":1088,"line":1181},6,[1086,1183,1184],{"class":1103},"    email ",[1086,1186,1154],{"class":1131},[1086,1188,1157],{"class":1103},[1086,1190,1139],{"class":1131},[1086,1192,1193],{"class":1162},"EmailField",[1086,1195,1196],{"class":1131},"()\n",[1086,1198,1200,1203,1205,1207,1209,1211,1213,1215,1217,1220],{"class":1088,"line":1199},7,[1086,1201,1202],{"class":1103},"    subject ",[1086,1204,1154],{"class":1131},[1086,1206,1157],{"class":1103},[1086,1208,1139],{"class":1131},[1086,1210,1163],{"class":1162},[1086,1212,1132],{"class":1131},[1086,1214,1169],{"class":1168},[1086,1216,1154],{"class":1131},[1086,1218,1219],{"class":1174},"200",[1086,1221,1178],{"class":1131},[1086,1223,1225,1228,1230,1232,1234,1236,1238,1241,1243,1245,1247,1251],{"class":1088,"line":1224},8,[1086,1226,1227],{"class":1103},"    message ",[1086,1229,1154],{"class":1131},[1086,1231,1157],{"class":1103},[1086,1233,1139],{"class":1131},[1086,1235,1163],{"class":1162},[1086,1237,1132],{"class":1131},[1086,1239,1240],{"class":1168},"widget",[1086,1242,1154],{"class":1131},[1086,1244,1136],{"class":1162},[1086,1246,1139],{"class":1131},[1086,1248,1250],{"class":1249},"sBPpx","Textarea",[1086,1252,1178],{"class":1131},[1086,1254,1256],{"class":1088,"line":1255},9,[1086,1257,1258],{"class":1103},"    \n",[1086,1260,1262,1265,1269,1271,1275],{"class":1088,"line":1261},10,[1086,1263,1264],{"class":1123},"    def",[1086,1266,1268],{"class":1267},"sljsM"," clean_email",[1086,1270,1132],{"class":1131},[1086,1272,1274],{"class":1273},"sRjD_","self",[1086,1276,1145],{"class":1131},[1086,1278,1280,1283,1285,1289,1291,1294,1297,1301,1305,1307],{"class":1088,"line":1279},11,[1086,1281,1282],{"class":1103},"        email ",[1086,1284,1154],{"class":1131},[1086,1286,1288],{"class":1287},"se3Ec"," self",[1086,1290,1139],{"class":1131},[1086,1292,1293],{"class":1249},"cleaned_data",[1086,1295,1296],{"class":1131},"[",[1086,1298,1300],{"class":1299},"sbYkP","'",[1086,1302,1304],{"class":1303},"sTbE_","email",[1086,1306,1300],{"class":1299},[1086,1308,1309],{"class":1131},"]\n",[1086,1311,1313,1316,1320,1323,1325,1328,1330,1332,1335,1337],{"class":1088,"line":1312},12,[1086,1314,1315],{"class":1099},"        if",[1086,1317,1319],{"class":1318},"sVsLi"," not",[1086,1321,1322],{"class":1103}," email",[1086,1324,1139],{"class":1131},[1086,1326,1327],{"class":1162},"endswith",[1086,1329,1132],{"class":1131},[1086,1331,1300],{"class":1299},[1086,1333,1334],{"class":1303},"@company.com",[1086,1336,1300],{"class":1299},[1086,1338,1145],{"class":1131},[1086,1340,1342,1345,1347,1349,1352,1354,1356,1359,1361],{"class":1088,"line":1341},13,[1086,1343,1344],{"class":1099},"            raise",[1086,1346,1157],{"class":1103},[1086,1348,1139],{"class":1131},[1086,1350,1351],{"class":1162},"ValidationError",[1086,1353,1132],{"class":1131},[1086,1355,1300],{"class":1299},[1086,1357,1358],{"class":1303},"Please use your company email address.",[1086,1360,1300],{"class":1299},[1086,1362,1178],{"class":1131},[1086,1364,1366,1369],{"class":1088,"line":1365},14,[1086,1367,1368],{"class":1099},"        return",[1086,1370,1371],{"class":1103}," email\n",[1086,1373,1375],{"class":1088,"line":1374},15,[1086,1376,1117],{"emptyLinePlaceholder":1116},[1086,1378,1380],{"class":1088,"line":1379},16,[1086,1381,1382],{"class":1092},"# views.py\n",[1086,1384,1386,1388,1391,1393,1396,1398,1401,1404],{"class":1088,"line":1385},17,[1086,1387,1100],{"class":1099},[1086,1389,1390],{"class":1103}," django",[1086,1392,1139],{"class":1131},[1086,1394,1395],{"class":1103},"shortcuts ",[1086,1397,1107],{"class":1099},[1086,1399,1400],{"class":1103}," render",[1086,1402,1403],{"class":1131},",",[1086,1405,1406],{"class":1103}," redirect\n",[1086,1408,1410,1412,1414,1416,1419,1421],{"class":1088,"line":1409},18,[1086,1411,1100],{"class":1099},[1086,1413,1390],{"class":1103},[1086,1415,1139],{"class":1131},[1086,1417,1418],{"class":1103},"contrib ",[1086,1420,1107],{"class":1099},[1086,1422,1423],{"class":1103}," messages\n",[1086,1425,1427,1429,1432,1435,1437],{"class":1088,"line":1426},19,[1086,1428,1100],{"class":1099},[1086,1430,1431],{"class":1131}," .",[1086,1433,1434],{"class":1103},"forms ",[1086,1436,1107],{"class":1099},[1086,1438,1439],{"class":1103}," ContactForm\n",[1086,1441,1443],{"class":1088,"line":1442},20,[1086,1444,1117],{"emptyLinePlaceholder":1116},[1086,1446,1448,1451,1454,1456,1460],{"class":1088,"line":1447},21,[1086,1449,1450],{"class":1123},"def",[1086,1452,1453],{"class":1267}," contact_view",[1086,1455,1132],{"class":1131},[1086,1457,1459],{"class":1458},"sCyAa","request",[1086,1461,1145],{"class":1131},[1086,1463,1465,1468,1471,1473,1476,1479,1482,1485,1487],{"class":1088,"line":1464},22,[1086,1466,1467],{"class":1099},"    if",[1086,1469,1470],{"class":1103}," request",[1086,1472,1139],{"class":1131},[1086,1474,1475],{"class":1249},"method",[1086,1477,1478],{"class":1318}," ==",[1086,1480,1481],{"class":1299}," '",[1086,1483,1484],{"class":1303},"POST",[1086,1486,1300],{"class":1299},[1086,1488,1489],{"class":1131},":\n",[1086,1491,1493,1496,1498,1500,1502,1504,1506,1509],{"class":1088,"line":1492},23,[1086,1494,1495],{"class":1103},"        form ",[1086,1497,1154],{"class":1131},[1086,1499,1128],{"class":1162},[1086,1501,1132],{"class":1131},[1086,1503,1459],{"class":1162},[1086,1505,1139],{"class":1131},[1086,1507,1484],{"class":1508},"sFGJz",[1086,1510,1178],{"class":1131},[1086,1512,1514,1516,1519,1521,1524],{"class":1088,"line":1513},24,[1086,1515,1315],{"class":1099},[1086,1517,1518],{"class":1103}," form",[1086,1520,1139],{"class":1131},[1086,1522,1523],{"class":1162},"is_valid",[1086,1525,1526],{"class":1131},"():\n",[1086,1528,1530],{"class":1088,"line":1529},25,[1086,1531,1532],{"class":1092},"            # Process the form data\n",[1086,1534,1536,1539,1541,1543,1545,1547,1549,1551,1554,1556],{"class":1088,"line":1535},26,[1086,1537,1538],{"class":1103},"            name ",[1086,1540,1154],{"class":1131},[1086,1542,1518],{"class":1103},[1086,1544,1139],{"class":1131},[1086,1546,1293],{"class":1249},[1086,1548,1296],{"class":1131},[1086,1550,1300],{"class":1299},[1086,1552,1553],{"class":1303},"name",[1086,1555,1300],{"class":1299},[1086,1557,1309],{"class":1131},[1086,1559,1561,1564,1566,1568,1570,1572,1574,1576,1578,1580],{"class":1088,"line":1560},27,[1086,1562,1563],{"class":1103},"            email ",[1086,1565,1154],{"class":1131},[1086,1567,1518],{"class":1103},[1086,1569,1139],{"class":1131},[1086,1571,1293],{"class":1249},[1086,1573,1296],{"class":1131},[1086,1575,1300],{"class":1299},[1086,1577,1304],{"class":1303},[1086,1579,1300],{"class":1299},[1086,1581,1309],{"class":1131},[1086,1583,1585,1588,1590,1592,1594,1596,1598,1600,1603,1605],{"class":1088,"line":1584},28,[1086,1586,1587],{"class":1103},"            subject ",[1086,1589,1154],{"class":1131},[1086,1591,1518],{"class":1103},[1086,1593,1139],{"class":1131},[1086,1595,1293],{"class":1249},[1086,1597,1296],{"class":1131},[1086,1599,1300],{"class":1299},[1086,1601,1602],{"class":1303},"subject",[1086,1604,1300],{"class":1299},[1086,1606,1309],{"class":1131},[1086,1608,1610,1613,1615,1617,1619,1621,1623,1625,1628,1630],{"class":1088,"line":1609},29,[1086,1611,1612],{"class":1103},"            message ",[1086,1614,1154],{"class":1131},[1086,1616,1518],{"class":1103},[1086,1618,1139],{"class":1131},[1086,1620,1293],{"class":1249},[1086,1622,1296],{"class":1131},[1086,1624,1300],{"class":1299},[1086,1626,1627],{"class":1303},"message",[1086,1629,1300],{"class":1299},[1086,1631,1309],{"class":1131},[1086,1633,1635],{"class":1088,"line":1634},30,[1086,1636,1637],{"class":1103},"            \n",[1086,1639,1641],{"class":1088,"line":1640},31,[1086,1642,1643],{"class":1092},"            # Send email or save to database\n",[1086,1645,1647,1650,1652,1654,1656,1658,1660,1663,1665,1668],{"class":1088,"line":1646},32,[1086,1648,1649],{"class":1162},"            send_contact_email",[1086,1651,1132],{"class":1131},[1086,1653,1553],{"class":1162},[1086,1655,1403],{"class":1131},[1086,1657,1322],{"class":1162},[1086,1659,1403],{"class":1131},[1086,1661,1662],{"class":1162}," subject",[1086,1664,1403],{"class":1131},[1086,1666,1667],{"class":1162}," message",[1086,1669,1178],{"class":1131},[1086,1671,1673],{"class":1088,"line":1672},33,[1086,1674,1637],{"class":1103},[1086,1676,1678,1681,1683,1686,1688,1690,1692,1694,1697,1699],{"class":1088,"line":1677},34,[1086,1679,1680],{"class":1103},"            messages",[1086,1682,1139],{"class":1131},[1086,1684,1685],{"class":1162},"success",[1086,1687,1132],{"class":1131},[1086,1689,1459],{"class":1162},[1086,1691,1403],{"class":1131},[1086,1693,1481],{"class":1299},[1086,1695,1696],{"class":1303},"Your message has been sent successfully!",[1086,1698,1300],{"class":1299},[1086,1700,1178],{"class":1131},[1086,1702,1704,1707,1710,1712,1714,1717,1719],{"class":1088,"line":1703},35,[1086,1705,1706],{"class":1099},"            return",[1086,1708,1709],{"class":1162}," redirect",[1086,1711,1132],{"class":1131},[1086,1713,1300],{"class":1299},[1086,1715,1716],{"class":1303},"contact",[1086,1718,1300],{"class":1299},[1086,1720,1178],{"class":1131},[1086,1722,1724,1727],{"class":1088,"line":1723},36,[1086,1725,1726],{"class":1099},"    else",[1086,1728,1489],{"class":1131},[1086,1730,1732,1734,1736,1738],{"class":1088,"line":1731},37,[1086,1733,1495],{"class":1103},[1086,1735,1154],{"class":1131},[1086,1737,1128],{"class":1162},[1086,1739,1196],{"class":1131},[1086,1741,1743],{"class":1088,"line":1742},38,[1086,1744,1258],{"class":1103},[1086,1746,1748,1751,1753,1755,1757,1759,1761,1764,1766,1768,1771,1773,1776,1778,1781,1783],{"class":1088,"line":1747},39,[1086,1749,1750],{"class":1099},"    return",[1086,1752,1400],{"class":1162},[1086,1754,1132],{"class":1131},[1086,1756,1459],{"class":1162},[1086,1758,1403],{"class":1131},[1086,1760,1481],{"class":1299},[1086,1762,1763],{"class":1303},"contact.html",[1086,1765,1300],{"class":1299},[1086,1767,1403],{"class":1131},[1086,1769,1770],{"class":1131}," {",[1086,1772,1300],{"class":1299},[1086,1774,1775],{"class":1303},"form",[1086,1777,1300],{"class":1299},[1086,1779,1780],{"class":1131},":",[1086,1782,1518],{"class":1162},[1086,1784,1785],{"class":1131},"})\n",[1038,1787,1789],{"id":1788},"template-integration","Template Integration",[1076,1791,1795],{"className":1792,"code":1793,"language":1794,"meta":1081,"style":1081},"language-html shiki shiki-themes material-theme-lighter vitesse-light vitesse-dark","\u003C!-- contact.html -->\n\u003Cform method=\"post\">\n    {% csrf_token %}\n    \n    \u003Cdiv class=\"form-group\">\n        {{ form.name.label_tag }}\n        {{ form.name }}\n        {% if form.name.errors %}\n            \u003Cdiv class=\"error\">{{ form.name.errors }}\u003C/div>\n        {% endif %}\n    \u003C/div>\n    \n    \u003Cdiv class=\"form-group\">\n        {{ form.email.label_tag }}\n        {{ form.email }}\n        {% if form.email.errors %}\n            \u003Cdiv class=\"error\">{{ form.email.errors }}\u003C/div>\n        {% endif %}\n    \u003C/div>\n    \n    \u003Cdiv class=\"form-group\">\n        {{ form.subject.label_tag }}\n        {{ form.subject }}\n        {% if form.subject.errors %}\n            \u003Cdiv class=\"error\">{{ form.subject.errors }}\u003C/div>\n        {% endif %}\n    \u003C/div>\n    \n    \u003Cdiv class=\"form-group\">\n        {{ form.message.label_tag }}\n        {{ form.message }}\n        {% if form.message.errors %}\n            \u003Cdiv class=\"error\">{{ form.message.errors }}\u003C/div>\n        {% endif %}\n    \u003C/div>\n    \n    \u003Cbutton type=\"submit\">Send Message\u003C/button>\n\u003C/form>\n","html",[1083,1796,1797,1802,1827,1832,1836,1858,1863,1868,1873,1904,1909,1918,1922,1940,1945,1950,1955,1982,1986,1994,1998,2016,2021,2026,2031,2058,2062,2070,2074,2092,2097,2102,2107,2134,2138,2146,2150,2180],{"__ignoreMap":1081},[1086,1798,1799],{"class":1088,"line":1089},[1086,1800,1801],{"class":1092},"\u003C!-- contact.html -->\n",[1086,1803,1804,1807,1810,1814,1816,1819,1822,1824],{"class":1088,"line":1096},[1086,1805,1806],{"class":1131},"\u003C",[1086,1808,1775],{"class":1809},"sJFLg",[1086,1811,1813],{"class":1812},"s5q8q"," method",[1086,1815,1154],{"class":1131},[1086,1817,1818],{"class":1299},"\"",[1086,1820,1821],{"class":1303},"post",[1086,1823,1818],{"class":1299},[1086,1825,1826],{"class":1131},">\n",[1086,1828,1829],{"class":1088,"line":1113},[1086,1830,1831],{"class":1103},"    {% csrf_token %}\n",[1086,1833,1834],{"class":1088,"line":1120},[1086,1835,1258],{"class":1103},[1086,1837,1838,1841,1844,1847,1849,1851,1854,1856],{"class":1088,"line":1148},[1086,1839,1840],{"class":1131},"    \u003C",[1086,1842,1843],{"class":1809},"div",[1086,1845,1846],{"class":1812}," class",[1086,1848,1154],{"class":1131},[1086,1850,1818],{"class":1299},[1086,1852,1853],{"class":1303},"form-group",[1086,1855,1818],{"class":1299},[1086,1857,1826],{"class":1131},[1086,1859,1860],{"class":1088,"line":1181},[1086,1861,1862],{"class":1103},"        {{ form.name.label_tag }}\n",[1086,1864,1865],{"class":1088,"line":1199},[1086,1866,1867],{"class":1103},"        {{ form.name }}\n",[1086,1869,1870],{"class":1088,"line":1224},[1086,1871,1872],{"class":1103},"        {% if form.name.errors %}\n",[1086,1874,1875,1878,1880,1882,1884,1886,1889,1891,1894,1897,1900,1902],{"class":1088,"line":1255},[1086,1876,1877],{"class":1131},"            \u003C",[1086,1879,1843],{"class":1809},[1086,1881,1846],{"class":1812},[1086,1883,1154],{"class":1131},[1086,1885,1818],{"class":1299},[1086,1887,1888],{"class":1303},"error",[1086,1890,1818],{"class":1299},[1086,1892,1893],{"class":1131},">",[1086,1895,1896],{"class":1103},"{{ form.name.errors }}",[1086,1898,1899],{"class":1131},"\u003C/",[1086,1901,1843],{"class":1809},[1086,1903,1826],{"class":1131},[1086,1905,1906],{"class":1088,"line":1261},[1086,1907,1908],{"class":1103},"        {% endif %}\n",[1086,1910,1911,1914,1916],{"class":1088,"line":1279},[1086,1912,1913],{"class":1131},"    \u003C/",[1086,1915,1843],{"class":1809},[1086,1917,1826],{"class":1131},[1086,1919,1920],{"class":1088,"line":1312},[1086,1921,1258],{"class":1103},[1086,1923,1924,1926,1928,1930,1932,1934,1936,1938],{"class":1088,"line":1341},[1086,1925,1840],{"class":1131},[1086,1927,1843],{"class":1809},[1086,1929,1846],{"class":1812},[1086,1931,1154],{"class":1131},[1086,1933,1818],{"class":1299},[1086,1935,1853],{"class":1303},[1086,1937,1818],{"class":1299},[1086,1939,1826],{"class":1131},[1086,1941,1942],{"class":1088,"line":1365},[1086,1943,1944],{"class":1103},"        {{ form.email.label_tag }}\n",[1086,1946,1947],{"class":1088,"line":1374},[1086,1948,1949],{"class":1103},"        {{ form.email }}\n",[1086,1951,1952],{"class":1088,"line":1379},[1086,1953,1954],{"class":1103},"        {% if form.email.errors %}\n",[1086,1956,1957,1959,1961,1963,1965,1967,1969,1971,1973,1976,1978,1980],{"class":1088,"line":1385},[1086,1958,1877],{"class":1131},[1086,1960,1843],{"class":1809},[1086,1962,1846],{"class":1812},[1086,1964,1154],{"class":1131},[1086,1966,1818],{"class":1299},[1086,1968,1888],{"class":1303},[1086,1970,1818],{"class":1299},[1086,1972,1893],{"class":1131},[1086,1974,1975],{"class":1103},"{{ form.email.errors }}",[1086,1977,1899],{"class":1131},[1086,1979,1843],{"class":1809},[1086,1981,1826],{"class":1131},[1086,1983,1984],{"class":1088,"line":1409},[1086,1985,1908],{"class":1103},[1086,1987,1988,1990,1992],{"class":1088,"line":1426},[1086,1989,1913],{"class":1131},[1086,1991,1843],{"class":1809},[1086,1993,1826],{"class":1131},[1086,1995,1996],{"class":1088,"line":1442},[1086,1997,1258],{"class":1103},[1086,1999,2000,2002,2004,2006,2008,2010,2012,2014],{"class":1088,"line":1447},[1086,2001,1840],{"class":1131},[1086,2003,1843],{"class":1809},[1086,2005,1846],{"class":1812},[1086,2007,1154],{"class":1131},[1086,2009,1818],{"class":1299},[1086,2011,1853],{"class":1303},[1086,2013,1818],{"class":1299},[1086,2015,1826],{"class":1131},[1086,2017,2018],{"class":1088,"line":1464},[1086,2019,2020],{"class":1103},"        {{ form.subject.label_tag }}\n",[1086,2022,2023],{"class":1088,"line":1492},[1086,2024,2025],{"class":1103},"        {{ form.subject }}\n",[1086,2027,2028],{"class":1088,"line":1513},[1086,2029,2030],{"class":1103},"        {% if form.subject.errors %}\n",[1086,2032,2033,2035,2037,2039,2041,2043,2045,2047,2049,2052,2054,2056],{"class":1088,"line":1529},[1086,2034,1877],{"class":1131},[1086,2036,1843],{"class":1809},[1086,2038,1846],{"class":1812},[1086,2040,1154],{"class":1131},[1086,2042,1818],{"class":1299},[1086,2044,1888],{"class":1303},[1086,2046,1818],{"class":1299},[1086,2048,1893],{"class":1131},[1086,2050,2051],{"class":1103},"{{ form.subject.errors }}",[1086,2053,1899],{"class":1131},[1086,2055,1843],{"class":1809},[1086,2057,1826],{"class":1131},[1086,2059,2060],{"class":1088,"line":1535},[1086,2061,1908],{"class":1103},[1086,2063,2064,2066,2068],{"class":1088,"line":1560},[1086,2065,1913],{"class":1131},[1086,2067,1843],{"class":1809},[1086,2069,1826],{"class":1131},[1086,2071,2072],{"class":1088,"line":1584},[1086,2073,1258],{"class":1103},[1086,2075,2076,2078,2080,2082,2084,2086,2088,2090],{"class":1088,"line":1609},[1086,2077,1840],{"class":1131},[1086,2079,1843],{"class":1809},[1086,2081,1846],{"class":1812},[1086,2083,1154],{"class":1131},[1086,2085,1818],{"class":1299},[1086,2087,1853],{"class":1303},[1086,2089,1818],{"class":1299},[1086,2091,1826],{"class":1131},[1086,2093,2094],{"class":1088,"line":1634},[1086,2095,2096],{"class":1103},"        {{ form.message.label_tag }}\n",[1086,2098,2099],{"class":1088,"line":1640},[1086,2100,2101],{"class":1103},"        {{ form.message }}\n",[1086,2103,2104],{"class":1088,"line":1646},[1086,2105,2106],{"class":1103},"        {% if form.message.errors %}\n",[1086,2108,2109,2111,2113,2115,2117,2119,2121,2123,2125,2128,2130,2132],{"class":1088,"line":1672},[1086,2110,1877],{"class":1131},[1086,2112,1843],{"class":1809},[1086,2114,1846],{"class":1812},[1086,2116,1154],{"class":1131},[1086,2118,1818],{"class":1299},[1086,2120,1888],{"class":1303},[1086,2122,1818],{"class":1299},[1086,2124,1893],{"class":1131},[1086,2126,2127],{"class":1103},"{{ form.message.errors }}",[1086,2129,1899],{"class":1131},[1086,2131,1843],{"class":1809},[1086,2133,1826],{"class":1131},[1086,2135,2136],{"class":1088,"line":1677},[1086,2137,1908],{"class":1103},[1086,2139,2140,2142,2144],{"class":1088,"line":1703},[1086,2141,1913],{"class":1131},[1086,2143,1843],{"class":1809},[1086,2145,1826],{"class":1131},[1086,2147,2148],{"class":1088,"line":1723},[1086,2149,1258],{"class":1103},[1086,2151,2152,2154,2157,2160,2162,2164,2167,2169,2171,2174,2176,2178],{"class":1088,"line":1731},[1086,2153,1840],{"class":1131},[1086,2155,2156],{"class":1809},"button",[1086,2158,2159],{"class":1812}," type",[1086,2161,1154],{"class":1131},[1086,2163,1818],{"class":1299},[1086,2165,2166],{"class":1303},"submit",[1086,2168,1818],{"class":1299},[1086,2170,1893],{"class":1131},[1086,2172,2173],{"class":1103},"Send Message",[1086,2175,1899],{"class":1131},[1086,2177,2156],{"class":1809},[1086,2179,1826],{"class":1131},[1086,2181,2182,2184,2186],{"class":1088,"line":1742},[1086,2183,1899],{"class":1131},[1086,2185,1775],{"class":1809},[1086,2187,1826],{"class":1131},[1030,2189,2191],{"id":2190},"form-processing-workflow","Form Processing Workflow",[1038,2193,2195],{"id":2194},"complete-form-handling-pattern","Complete Form Handling Pattern",[1076,2197,2199],{"className":1078,"code":2198,"language":1080,"meta":1081,"style":1081},"# forms.py\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nimport re\n\nclass UserRegistrationForm(forms.Form):\n    username = forms.CharField(\n        max_length=30,\n        help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.'\n    )\n    email = forms.EmailField(\n        help_text='We\\'ll never share your email with anyone else.'\n    )\n    password1 = forms.CharField(\n        label='Password',\n        widget=forms.PasswordInput,\n        help_text='Your password must contain at least 8 characters.'\n    )\n    password2 = forms.CharField(\n        label='Password confirmation',\n        widget=forms.PasswordInput,\n        help_text='Enter the same password as before, for verification.'\n    )\n    age = forms.IntegerField(\n        min_value=13,\n        max_value=120,\n        help_text='You must be at least 13 years old to register.'\n    )\n    terms = forms.BooleanField(\n        required=True,\n        help_text='You must accept the terms and conditions.'\n    )\n    \n    def clean_username(self):\n        username = self.cleaned_data['username']\n        \n        # Check if username already exists\n        from django.contrib.auth.models import User\n        if User.objects.filter(username=username).exists():\n            raise ValidationError('This username is already taken.')\n        \n        # Check username format\n        if not re.match(r'^[\\w.@+-]+$', username):\n            raise ValidationError('Username contains invalid characters.')\n        \n        return username\n    \n    def clean_password1(self):\n        password1 = self.cleaned_data['password1']\n        \n        # Password strength validation\n        if len(password1) \u003C 8:\n            raise ValidationError('Password must be at least 8 characters long.')\n        \n        if password1.isdigit():\n            raise ValidationError('Password cannot be entirely numeric.')\n        \n        if password1.lower() in ['password', '12345678', 'qwerty']:\n            raise ValidationError('Password is too common.')\n        \n        return password1\n    \n    def clean(self):\n        cleaned_data = super().clean()\n        password1 = cleaned_data.get('password1')\n        password2 = cleaned_data.get('password2')\n        \n        if password1 and password2 and password1 != password2:\n            raise ValidationError('Passwords do not match.')\n        \n        return cleaned_data\n\n# views.py\nfrom django.shortcuts import render, redirect\nfrom django.contrib.auth.models import User\nfrom django.contrib.auth import login\nfrom django.contrib import messages\nfrom .forms import UserRegistrationForm\n\ndef register_view(request):\n    if request.method == 'POST':\n        form = UserRegistrationForm(request.POST)\n        if form.is_valid():\n            # Create user account\n            user = User.objects.create_user(\n                username=form.cleaned_data['username'],\n                email=form.cleaned_data['email'],\n                password=form.cleaned_data['password1']\n            )\n            \n            # Create user profile\n            UserProfile.objects.create(\n                user=user,\n                age=form.cleaned_data['age']\n            )\n            \n            # Log the user in\n            login(request, user)\n            \n            messages.success(request, 'Registration successful! Welcome to our site.')\n            return redirect('dashboard')\n        else:\n            messages.error(request, 'Please correct the errors below.')\n    else:\n        form = UserRegistrationForm()\n    \n    return render(request, 'registration/register.html', {'form': form})\n",[1083,2200,2201,2205,2215,2236,2243,2247,2264,2280,2293,2308,2313,2327,2346,2350,2365,2381,2397,2410,2414,2429,2444,2458,2471,2475,2491,2503,2515,2528,2532,2548,2561,2574,2578,2582,2595,2619,2624,2629,2656,2689,2708,2713,2719,2774,2792,2797,2805,2810,2824,2849,2854,2860,2884,2902,2907,2922,2940,2945,2994,3012,3017,3025,3030,3044,3064,3089,3114,3119,3145,3163,3168,3176,3181,3186,3205,3228,3249,3264,3278,3283,3297,3318,3337,3350,3356,3377,3402,3426,3450,3456,3461,3467,3484,3497,3522,3527,3532,3538,3555,3560,3584,3602,3610,3634,3641,3652,3657],{"__ignoreMap":1081},[1086,2202,2203],{"class":1088,"line":1089},[1086,2204,1093],{"class":1092},[1086,2206,2207,2209,2211,2213],{"class":1088,"line":1096},[1086,2208,1100],{"class":1099},[1086,2210,1104],{"class":1103},[1086,2212,1107],{"class":1099},[1086,2214,1110],{"class":1103},[1086,2216,2217,2219,2221,2223,2226,2228,2231,2233],{"class":1088,"line":1113},[1086,2218,1100],{"class":1099},[1086,2220,1390],{"class":1103},[1086,2222,1139],{"class":1131},[1086,2224,2225],{"class":1103},"core",[1086,2227,1139],{"class":1131},[1086,2229,2230],{"class":1103},"exceptions ",[1086,2232,1107],{"class":1099},[1086,2234,2235],{"class":1103}," ValidationError\n",[1086,2237,2238,2240],{"class":1088,"line":1120},[1086,2239,1107],{"class":1099},[1086,2241,2242],{"class":1103}," re\n",[1086,2244,2245],{"class":1088,"line":1148},[1086,2246,1117],{"emptyLinePlaceholder":1116},[1086,2248,2249,2251,2254,2256,2258,2260,2262],{"class":1088,"line":1181},[1086,2250,1124],{"class":1123},[1086,2252,2253],{"class":1127}," UserRegistrationForm",[1086,2255,1132],{"class":1131},[1086,2257,1136],{"class":1135},[1086,2259,1139],{"class":1131},[1086,2261,1142],{"class":1135},[1086,2263,1145],{"class":1131},[1086,2265,2266,2269,2271,2273,2275,2277],{"class":1088,"line":1199},[1086,2267,2268],{"class":1103},"    username ",[1086,2270,1154],{"class":1131},[1086,2272,1157],{"class":1103},[1086,2274,1139],{"class":1131},[1086,2276,1163],{"class":1162},[1086,2278,2279],{"class":1131},"(\n",[1086,2281,2282,2285,2287,2290],{"class":1088,"line":1224},[1086,2283,2284],{"class":1168},"        max_length",[1086,2286,1154],{"class":1131},[1086,2288,2289],{"class":1174},"30",[1086,2291,2292],{"class":1131},",\n",[1086,2294,2295,2298,2300,2302,2305],{"class":1088,"line":1255},[1086,2296,2297],{"class":1168},"        help_text",[1086,2299,1154],{"class":1131},[1086,2301,1300],{"class":1299},[1086,2303,2304],{"class":1303},"Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.",[1086,2306,2307],{"class":1299},"'\n",[1086,2309,2310],{"class":1088,"line":1261},[1086,2311,2312],{"class":1131},"    )\n",[1086,2314,2315,2317,2319,2321,2323,2325],{"class":1088,"line":1279},[1086,2316,1184],{"class":1103},[1086,2318,1154],{"class":1131},[1086,2320,1157],{"class":1103},[1086,2322,1139],{"class":1131},[1086,2324,1193],{"class":1162},[1086,2326,2279],{"class":1131},[1086,2328,2329,2331,2333,2335,2338,2341,2344],{"class":1088,"line":1312},[1086,2330,2297],{"class":1168},[1086,2332,1154],{"class":1131},[1086,2334,1300],{"class":1299},[1086,2336,2337],{"class":1303},"We",[1086,2339,2340],{"class":1287},"\\'",[1086,2342,2343],{"class":1303},"ll never share your email with anyone else.",[1086,2345,2307],{"class":1299},[1086,2347,2348],{"class":1088,"line":1341},[1086,2349,2312],{"class":1131},[1086,2351,2352,2355,2357,2359,2361,2363],{"class":1088,"line":1365},[1086,2353,2354],{"class":1103},"    password1 ",[1086,2356,1154],{"class":1131},[1086,2358,1157],{"class":1103},[1086,2360,1139],{"class":1131},[1086,2362,1163],{"class":1162},[1086,2364,2279],{"class":1131},[1086,2366,2367,2370,2372,2374,2377,2379],{"class":1088,"line":1374},[1086,2368,2369],{"class":1168},"        label",[1086,2371,1154],{"class":1131},[1086,2373,1300],{"class":1299},[1086,2375,2376],{"class":1303},"Password",[1086,2378,1300],{"class":1299},[1086,2380,2292],{"class":1131},[1086,2382,2383,2386,2388,2390,2392,2395],{"class":1088,"line":1379},[1086,2384,2385],{"class":1168},"        widget",[1086,2387,1154],{"class":1131},[1086,2389,1136],{"class":1162},[1086,2391,1139],{"class":1131},[1086,2393,2394],{"class":1249},"PasswordInput",[1086,2396,2292],{"class":1131},[1086,2398,2399,2401,2403,2405,2408],{"class":1088,"line":1385},[1086,2400,2297],{"class":1168},[1086,2402,1154],{"class":1131},[1086,2404,1300],{"class":1299},[1086,2406,2407],{"class":1303},"Your password must contain at least 8 characters.",[1086,2409,2307],{"class":1299},[1086,2411,2412],{"class":1088,"line":1409},[1086,2413,2312],{"class":1131},[1086,2415,2416,2419,2421,2423,2425,2427],{"class":1088,"line":1426},[1086,2417,2418],{"class":1103},"    password2 ",[1086,2420,1154],{"class":1131},[1086,2422,1157],{"class":1103},[1086,2424,1139],{"class":1131},[1086,2426,1163],{"class":1162},[1086,2428,2279],{"class":1131},[1086,2430,2431,2433,2435,2437,2440,2442],{"class":1088,"line":1442},[1086,2432,2369],{"class":1168},[1086,2434,1154],{"class":1131},[1086,2436,1300],{"class":1299},[1086,2438,2439],{"class":1303},"Password confirmation",[1086,2441,1300],{"class":1299},[1086,2443,2292],{"class":1131},[1086,2445,2446,2448,2450,2452,2454,2456],{"class":1088,"line":1447},[1086,2447,2385],{"class":1168},[1086,2449,1154],{"class":1131},[1086,2451,1136],{"class":1162},[1086,2453,1139],{"class":1131},[1086,2455,2394],{"class":1249},[1086,2457,2292],{"class":1131},[1086,2459,2460,2462,2464,2466,2469],{"class":1088,"line":1464},[1086,2461,2297],{"class":1168},[1086,2463,1154],{"class":1131},[1086,2465,1300],{"class":1299},[1086,2467,2468],{"class":1303},"Enter the same password as before, for verification.",[1086,2470,2307],{"class":1299},[1086,2472,2473],{"class":1088,"line":1492},[1086,2474,2312],{"class":1131},[1086,2476,2477,2480,2482,2484,2486,2489],{"class":1088,"line":1513},[1086,2478,2479],{"class":1103},"    age ",[1086,2481,1154],{"class":1131},[1086,2483,1157],{"class":1103},[1086,2485,1139],{"class":1131},[1086,2487,2488],{"class":1162},"IntegerField",[1086,2490,2279],{"class":1131},[1086,2492,2493,2496,2498,2501],{"class":1088,"line":1529},[1086,2494,2495],{"class":1168},"        min_value",[1086,2497,1154],{"class":1131},[1086,2499,2500],{"class":1174},"13",[1086,2502,2292],{"class":1131},[1086,2504,2505,2508,2510,2513],{"class":1088,"line":1535},[1086,2506,2507],{"class":1168},"        max_value",[1086,2509,1154],{"class":1131},[1086,2511,2512],{"class":1174},"120",[1086,2514,2292],{"class":1131},[1086,2516,2517,2519,2521,2523,2526],{"class":1088,"line":1560},[1086,2518,2297],{"class":1168},[1086,2520,1154],{"class":1131},[1086,2522,1300],{"class":1299},[1086,2524,2525],{"class":1303},"You must be at least 13 years old to register.",[1086,2527,2307],{"class":1299},[1086,2529,2530],{"class":1088,"line":1584},[1086,2531,2312],{"class":1131},[1086,2533,2534,2537,2539,2541,2543,2546],{"class":1088,"line":1609},[1086,2535,2536],{"class":1103},"    terms ",[1086,2538,1154],{"class":1131},[1086,2540,1157],{"class":1103},[1086,2542,1139],{"class":1131},[1086,2544,2545],{"class":1162},"BooleanField",[1086,2547,2279],{"class":1131},[1086,2549,2550,2553,2555,2559],{"class":1088,"line":1634},[1086,2551,2552],{"class":1168},"        required",[1086,2554,1154],{"class":1131},[1086,2556,2558],{"class":2557},"s8XtY","True",[1086,2560,2292],{"class":1131},[1086,2562,2563,2565,2567,2569,2572],{"class":1088,"line":1640},[1086,2564,2297],{"class":1168},[1086,2566,1154],{"class":1131},[1086,2568,1300],{"class":1299},[1086,2570,2571],{"class":1303},"You must accept the terms and conditions.",[1086,2573,2307],{"class":1299},[1086,2575,2576],{"class":1088,"line":1646},[1086,2577,2312],{"class":1131},[1086,2579,2580],{"class":1088,"line":1672},[1086,2581,1258],{"class":1103},[1086,2583,2584,2586,2589,2591,2593],{"class":1088,"line":1677},[1086,2585,1264],{"class":1123},[1086,2587,2588],{"class":1267}," clean_username",[1086,2590,1132],{"class":1131},[1086,2592,1274],{"class":1273},[1086,2594,1145],{"class":1131},[1086,2596,2597,2600,2602,2604,2606,2608,2610,2612,2615,2617],{"class":1088,"line":1703},[1086,2598,2599],{"class":1103},"        username ",[1086,2601,1154],{"class":1131},[1086,2603,1288],{"class":1287},[1086,2605,1139],{"class":1131},[1086,2607,1293],{"class":1249},[1086,2609,1296],{"class":1131},[1086,2611,1300],{"class":1299},[1086,2613,2614],{"class":1303},"username",[1086,2616,1300],{"class":1299},[1086,2618,1309],{"class":1131},[1086,2620,2621],{"class":1088,"line":1723},[1086,2622,2623],{"class":1103},"        \n",[1086,2625,2626],{"class":1088,"line":1731},[1086,2627,2628],{"class":1092},"        # Check if username already exists\n",[1086,2630,2631,2634,2636,2638,2641,2643,2646,2648,2651,2653],{"class":1088,"line":1742},[1086,2632,2633],{"class":1099},"        from",[1086,2635,1390],{"class":1103},[1086,2637,1139],{"class":1131},[1086,2639,2640],{"class":1103},"contrib",[1086,2642,1139],{"class":1131},[1086,2644,2645],{"class":1103},"auth",[1086,2647,1139],{"class":1131},[1086,2649,2650],{"class":1103},"models ",[1086,2652,1107],{"class":1099},[1086,2654,2655],{"class":1103}," User\n",[1086,2657,2658,2660,2663,2665,2668,2670,2673,2675,2677,2679,2681,2684,2687],{"class":1088,"line":1747},[1086,2659,1315],{"class":1099},[1086,2661,2662],{"class":1103}," User",[1086,2664,1139],{"class":1131},[1086,2666,2667],{"class":1249},"objects",[1086,2669,1139],{"class":1131},[1086,2671,2672],{"class":1162},"filter",[1086,2674,1132],{"class":1131},[1086,2676,2614],{"class":1168},[1086,2678,1154],{"class":1131},[1086,2680,2614],{"class":1162},[1086,2682,2683],{"class":1131},").",[1086,2685,2686],{"class":1162},"exists",[1086,2688,1526],{"class":1131},[1086,2690,2692,2694,2697,2699,2701,2704,2706],{"class":1088,"line":2691},40,[1086,2693,1344],{"class":1099},[1086,2695,2696],{"class":1162}," ValidationError",[1086,2698,1132],{"class":1131},[1086,2700,1300],{"class":1299},[1086,2702,2703],{"class":1303},"This username is already taken.",[1086,2705,1300],{"class":1299},[1086,2707,1178],{"class":1131},[1086,2709,2711],{"class":1088,"line":2710},41,[1086,2712,2623],{"class":1103},[1086,2714,2716],{"class":1088,"line":2715},42,[1086,2717,2718],{"class":1092},"        # Check username format\n",[1086,2720,2722,2724,2726,2729,2731,2734,2736,2739,2741,2745,2748,2751,2755,2758,2762,2765,2767,2769,2772],{"class":1088,"line":2721},43,[1086,2723,1315],{"class":1099},[1086,2725,1319],{"class":1318},[1086,2727,2728],{"class":1103}," re",[1086,2730,1139],{"class":1131},[1086,2732,2733],{"class":1162},"match",[1086,2735,1132],{"class":1131},[1086,2737,2738],{"class":1123},"r",[1086,2740,1300],{"class":1299},[1086,2742,2744],{"class":2743},"sRJPX","^",[1086,2746,1296],{"class":2747},"sETVe",[1086,2749,2750],{"class":2743},"\\w",[1086,2752,2754],{"class":2753},"sz9Cv",".@+-",[1086,2756,2757],{"class":2747},"]",[1086,2759,2761],{"class":2760},"sGuSu","+",[1086,2763,2764],{"class":2743},"$",[1086,2766,1300],{"class":1299},[1086,2768,1403],{"class":1131},[1086,2770,2771],{"class":1162}," username",[1086,2773,1145],{"class":1131},[1086,2775,2777,2779,2781,2783,2785,2788,2790],{"class":1088,"line":2776},44,[1086,2778,1344],{"class":1099},[1086,2780,2696],{"class":1162},[1086,2782,1132],{"class":1131},[1086,2784,1300],{"class":1299},[1086,2786,2787],{"class":1303},"Username contains invalid characters.",[1086,2789,1300],{"class":1299},[1086,2791,1178],{"class":1131},[1086,2793,2795],{"class":1088,"line":2794},45,[1086,2796,2623],{"class":1103},[1086,2798,2800,2802],{"class":1088,"line":2799},46,[1086,2801,1368],{"class":1099},[1086,2803,2804],{"class":1103}," username\n",[1086,2806,2808],{"class":1088,"line":2807},47,[1086,2809,1258],{"class":1103},[1086,2811,2813,2815,2818,2820,2822],{"class":1088,"line":2812},48,[1086,2814,1264],{"class":1123},[1086,2816,2817],{"class":1267}," clean_password1",[1086,2819,1132],{"class":1131},[1086,2821,1274],{"class":1273},[1086,2823,1145],{"class":1131},[1086,2825,2827,2830,2832,2834,2836,2838,2840,2842,2845,2847],{"class":1088,"line":2826},49,[1086,2828,2829],{"class":1103},"        password1 ",[1086,2831,1154],{"class":1131},[1086,2833,1288],{"class":1287},[1086,2835,1139],{"class":1131},[1086,2837,1293],{"class":1249},[1086,2839,1296],{"class":1131},[1086,2841,1300],{"class":1299},[1086,2843,2844],{"class":1303},"password1",[1086,2846,1300],{"class":1299},[1086,2848,1309],{"class":1131},[1086,2850,2852],{"class":1088,"line":2851},50,[1086,2853,2623],{"class":1103},[1086,2855,2857],{"class":1088,"line":2856},51,[1086,2858,2859],{"class":1092},"        # Password strength validation\n",[1086,2861,2863,2865,2869,2871,2873,2876,2879,2882],{"class":1088,"line":2862},52,[1086,2864,1315],{"class":1099},[1086,2866,2868],{"class":2867},"sJdAF"," len",[1086,2870,1132],{"class":1131},[1086,2872,2844],{"class":1162},[1086,2874,2875],{"class":1131},")",[1086,2877,2878],{"class":1318}," \u003C",[1086,2880,2881],{"class":1174}," 8",[1086,2883,1489],{"class":1131},[1086,2885,2887,2889,2891,2893,2895,2898,2900],{"class":1088,"line":2886},53,[1086,2888,1344],{"class":1099},[1086,2890,2696],{"class":1162},[1086,2892,1132],{"class":1131},[1086,2894,1300],{"class":1299},[1086,2896,2897],{"class":1303},"Password must be at least 8 characters long.",[1086,2899,1300],{"class":1299},[1086,2901,1178],{"class":1131},[1086,2903,2905],{"class":1088,"line":2904},54,[1086,2906,2623],{"class":1103},[1086,2908,2910,2912,2915,2917,2920],{"class":1088,"line":2909},55,[1086,2911,1315],{"class":1099},[1086,2913,2914],{"class":1103}," password1",[1086,2916,1139],{"class":1131},[1086,2918,2919],{"class":1162},"isdigit",[1086,2921,1526],{"class":1131},[1086,2923,2925,2927,2929,2931,2933,2936,2938],{"class":1088,"line":2924},56,[1086,2926,1344],{"class":1099},[1086,2928,2696],{"class":1162},[1086,2930,1132],{"class":1131},[1086,2932,1300],{"class":1299},[1086,2934,2935],{"class":1303},"Password cannot be entirely numeric.",[1086,2937,1300],{"class":1299},[1086,2939,1178],{"class":1131},[1086,2941,2943],{"class":1088,"line":2942},57,[1086,2944,2623],{"class":1103},[1086,2946,2948,2950,2952,2954,2957,2960,2963,2966,2968,2971,2973,2975,2977,2980,2982,2984,2986,2989,2991],{"class":1088,"line":2947},58,[1086,2949,1315],{"class":1099},[1086,2951,2914],{"class":1103},[1086,2953,1139],{"class":1131},[1086,2955,2956],{"class":1162},"lower",[1086,2958,2959],{"class":1131},"()",[1086,2961,2962],{"class":1318}," in",[1086,2964,2965],{"class":1131}," [",[1086,2967,1300],{"class":1299},[1086,2969,2970],{"class":1303},"password",[1086,2972,1300],{"class":1299},[1086,2974,1403],{"class":1131},[1086,2976,1481],{"class":1299},[1086,2978,2979],{"class":1303},"12345678",[1086,2981,1300],{"class":1299},[1086,2983,1403],{"class":1131},[1086,2985,1481],{"class":1299},[1086,2987,2988],{"class":1303},"qwerty",[1086,2990,1300],{"class":1299},[1086,2992,2993],{"class":1131},"]:\n",[1086,2995,2997,2999,3001,3003,3005,3008,3010],{"class":1088,"line":2996},59,[1086,2998,1344],{"class":1099},[1086,3000,2696],{"class":1162},[1086,3002,1132],{"class":1131},[1086,3004,1300],{"class":1299},[1086,3006,3007],{"class":1303},"Password is too common.",[1086,3009,1300],{"class":1299},[1086,3011,1178],{"class":1131},[1086,3013,3015],{"class":1088,"line":3014},60,[1086,3016,2623],{"class":1103},[1086,3018,3020,3022],{"class":1088,"line":3019},61,[1086,3021,1368],{"class":1099},[1086,3023,3024],{"class":1103}," password1\n",[1086,3026,3028],{"class":1088,"line":3027},62,[1086,3029,1258],{"class":1103},[1086,3031,3033,3035,3038,3040,3042],{"class":1088,"line":3032},63,[1086,3034,1264],{"class":1123},[1086,3036,3037],{"class":1267}," clean",[1086,3039,1132],{"class":1131},[1086,3041,1274],{"class":1273},[1086,3043,1145],{"class":1131},[1086,3045,3047,3050,3052,3056,3059,3062],{"class":1088,"line":3046},64,[1086,3048,3049],{"class":1103},"        cleaned_data ",[1086,3051,1154],{"class":1131},[1086,3053,3055],{"class":3054},"sa2tF"," super",[1086,3057,3058],{"class":1131},"().",[1086,3060,3061],{"class":1162},"clean",[1086,3063,1196],{"class":1131},[1086,3065,3067,3069,3071,3074,3076,3079,3081,3083,3085,3087],{"class":1088,"line":3066},65,[1086,3068,2829],{"class":1103},[1086,3070,1154],{"class":1131},[1086,3072,3073],{"class":1103}," cleaned_data",[1086,3075,1139],{"class":1131},[1086,3077,3078],{"class":1162},"get",[1086,3080,1132],{"class":1131},[1086,3082,1300],{"class":1299},[1086,3084,2844],{"class":1303},[1086,3086,1300],{"class":1299},[1086,3088,1178],{"class":1131},[1086,3090,3092,3095,3097,3099,3101,3103,3105,3107,3110,3112],{"class":1088,"line":3091},66,[1086,3093,3094],{"class":1103},"        password2 ",[1086,3096,1154],{"class":1131},[1086,3098,3073],{"class":1103},[1086,3100,1139],{"class":1131},[1086,3102,3078],{"class":1162},[1086,3104,1132],{"class":1131},[1086,3106,1300],{"class":1299},[1086,3108,3109],{"class":1303},"password2",[1086,3111,1300],{"class":1299},[1086,3113,1178],{"class":1131},[1086,3115,3117],{"class":1088,"line":3116},67,[1086,3118,2623],{"class":1103},[1086,3120,3122,3124,3127,3130,3133,3135,3137,3140,3143],{"class":1088,"line":3121},68,[1086,3123,1315],{"class":1099},[1086,3125,3126],{"class":1103}," password1 ",[1086,3128,3129],{"class":1318},"and",[1086,3131,3132],{"class":1103}," password2 ",[1086,3134,3129],{"class":1318},[1086,3136,3126],{"class":1103},[1086,3138,3139],{"class":1318},"!=",[1086,3141,3142],{"class":1103}," password2",[1086,3144,1489],{"class":1131},[1086,3146,3148,3150,3152,3154,3156,3159,3161],{"class":1088,"line":3147},69,[1086,3149,1344],{"class":1099},[1086,3151,2696],{"class":1162},[1086,3153,1132],{"class":1131},[1086,3155,1300],{"class":1299},[1086,3157,3158],{"class":1303},"Passwords do not match.",[1086,3160,1300],{"class":1299},[1086,3162,1178],{"class":1131},[1086,3164,3166],{"class":1088,"line":3165},70,[1086,3167,2623],{"class":1103},[1086,3169,3171,3173],{"class":1088,"line":3170},71,[1086,3172,1368],{"class":1099},[1086,3174,3175],{"class":1103}," cleaned_data\n",[1086,3177,3179],{"class":1088,"line":3178},72,[1086,3180,1117],{"emptyLinePlaceholder":1116},[1086,3182,3184],{"class":1088,"line":3183},73,[1086,3185,1382],{"class":1092},[1086,3187,3189,3191,3193,3195,3197,3199,3201,3203],{"class":1088,"line":3188},74,[1086,3190,1100],{"class":1099},[1086,3192,1390],{"class":1103},[1086,3194,1139],{"class":1131},[1086,3196,1395],{"class":1103},[1086,3198,1107],{"class":1099},[1086,3200,1400],{"class":1103},[1086,3202,1403],{"class":1131},[1086,3204,1406],{"class":1103},[1086,3206,3208,3210,3212,3214,3216,3218,3220,3222,3224,3226],{"class":1088,"line":3207},75,[1086,3209,1100],{"class":1099},[1086,3211,1390],{"class":1103},[1086,3213,1139],{"class":1131},[1086,3215,2640],{"class":1103},[1086,3217,1139],{"class":1131},[1086,3219,2645],{"class":1103},[1086,3221,1139],{"class":1131},[1086,3223,2650],{"class":1103},[1086,3225,1107],{"class":1099},[1086,3227,2655],{"class":1103},[1086,3229,3231,3233,3235,3237,3239,3241,3244,3246],{"class":1088,"line":3230},76,[1086,3232,1100],{"class":1099},[1086,3234,1390],{"class":1103},[1086,3236,1139],{"class":1131},[1086,3238,2640],{"class":1103},[1086,3240,1139],{"class":1131},[1086,3242,3243],{"class":1103},"auth ",[1086,3245,1107],{"class":1099},[1086,3247,3248],{"class":1103}," login\n",[1086,3250,3252,3254,3256,3258,3260,3262],{"class":1088,"line":3251},77,[1086,3253,1100],{"class":1099},[1086,3255,1390],{"class":1103},[1086,3257,1139],{"class":1131},[1086,3259,1418],{"class":1103},[1086,3261,1107],{"class":1099},[1086,3263,1423],{"class":1103},[1086,3265,3267,3269,3271,3273,3275],{"class":1088,"line":3266},78,[1086,3268,1100],{"class":1099},[1086,3270,1431],{"class":1131},[1086,3272,1434],{"class":1103},[1086,3274,1107],{"class":1099},[1086,3276,3277],{"class":1103}," UserRegistrationForm\n",[1086,3279,3281],{"class":1088,"line":3280},79,[1086,3282,1117],{"emptyLinePlaceholder":1116},[1086,3284,3286,3288,3291,3293,3295],{"class":1088,"line":3285},80,[1086,3287,1450],{"class":1123},[1086,3289,3290],{"class":1267}," register_view",[1086,3292,1132],{"class":1131},[1086,3294,1459],{"class":1458},[1086,3296,1145],{"class":1131},[1086,3298,3300,3302,3304,3306,3308,3310,3312,3314,3316],{"class":1088,"line":3299},81,[1086,3301,1467],{"class":1099},[1086,3303,1470],{"class":1103},[1086,3305,1139],{"class":1131},[1086,3307,1475],{"class":1249},[1086,3309,1478],{"class":1318},[1086,3311,1481],{"class":1299},[1086,3313,1484],{"class":1303},[1086,3315,1300],{"class":1299},[1086,3317,1489],{"class":1131},[1086,3319,3321,3323,3325,3327,3329,3331,3333,3335],{"class":1088,"line":3320},82,[1086,3322,1495],{"class":1103},[1086,3324,1154],{"class":1131},[1086,3326,2253],{"class":1162},[1086,3328,1132],{"class":1131},[1086,3330,1459],{"class":1162},[1086,3332,1139],{"class":1131},[1086,3334,1484],{"class":1508},[1086,3336,1178],{"class":1131},[1086,3338,3340,3342,3344,3346,3348],{"class":1088,"line":3339},83,[1086,3341,1315],{"class":1099},[1086,3343,1518],{"class":1103},[1086,3345,1139],{"class":1131},[1086,3347,1523],{"class":1162},[1086,3349,1526],{"class":1131},[1086,3351,3353],{"class":1088,"line":3352},84,[1086,3354,3355],{"class":1092},"            # Create user account\n",[1086,3357,3359,3362,3364,3366,3368,3370,3372,3375],{"class":1088,"line":3358},85,[1086,3360,3361],{"class":1103},"            user ",[1086,3363,1154],{"class":1131},[1086,3365,2662],{"class":1103},[1086,3367,1139],{"class":1131},[1086,3369,2667],{"class":1249},[1086,3371,1139],{"class":1131},[1086,3373,3374],{"class":1162},"create_user",[1086,3376,2279],{"class":1131},[1086,3378,3380,3383,3385,3387,3389,3391,3393,3395,3397,3399],{"class":1088,"line":3379},86,[1086,3381,3382],{"class":1168},"                username",[1086,3384,1154],{"class":1131},[1086,3386,1775],{"class":1162},[1086,3388,1139],{"class":1131},[1086,3390,1293],{"class":1249},[1086,3392,1296],{"class":1131},[1086,3394,1300],{"class":1299},[1086,3396,2614],{"class":1303},[1086,3398,1300],{"class":1299},[1086,3400,3401],{"class":1131},"],\n",[1086,3403,3405,3408,3410,3412,3414,3416,3418,3420,3422,3424],{"class":1088,"line":3404},87,[1086,3406,3407],{"class":1168},"                email",[1086,3409,1154],{"class":1131},[1086,3411,1775],{"class":1162},[1086,3413,1139],{"class":1131},[1086,3415,1293],{"class":1249},[1086,3417,1296],{"class":1131},[1086,3419,1300],{"class":1299},[1086,3421,1304],{"class":1303},[1086,3423,1300],{"class":1299},[1086,3425,3401],{"class":1131},[1086,3427,3429,3432,3434,3436,3438,3440,3442,3444,3446,3448],{"class":1088,"line":3428},88,[1086,3430,3431],{"class":1168},"                password",[1086,3433,1154],{"class":1131},[1086,3435,1775],{"class":1162},[1086,3437,1139],{"class":1131},[1086,3439,1293],{"class":1249},[1086,3441,1296],{"class":1131},[1086,3443,1300],{"class":1299},[1086,3445,2844],{"class":1303},[1086,3447,1300],{"class":1299},[1086,3449,1309],{"class":1131},[1086,3451,3453],{"class":1088,"line":3452},89,[1086,3454,3455],{"class":1131},"            )\n",[1086,3457,3459],{"class":1088,"line":3458},90,[1086,3460,1637],{"class":1103},[1086,3462,3464],{"class":1088,"line":3463},91,[1086,3465,3466],{"class":1092},"            # Create user profile\n",[1086,3468,3470,3473,3475,3477,3479,3482],{"class":1088,"line":3469},92,[1086,3471,3472],{"class":1103},"            UserProfile",[1086,3474,1139],{"class":1131},[1086,3476,2667],{"class":1249},[1086,3478,1139],{"class":1131},[1086,3480,3481],{"class":1162},"create",[1086,3483,2279],{"class":1131},[1086,3485,3487,3490,3492,3495],{"class":1088,"line":3486},93,[1086,3488,3489],{"class":1168},"                user",[1086,3491,1154],{"class":1131},[1086,3493,3494],{"class":1162},"user",[1086,3496,2292],{"class":1131},[1086,3498,3500,3503,3505,3507,3509,3511,3513,3515,3518,3520],{"class":1088,"line":3499},94,[1086,3501,3502],{"class":1168},"                age",[1086,3504,1154],{"class":1131},[1086,3506,1775],{"class":1162},[1086,3508,1139],{"class":1131},[1086,3510,1293],{"class":1249},[1086,3512,1296],{"class":1131},[1086,3514,1300],{"class":1299},[1086,3516,3517],{"class":1303},"age",[1086,3519,1300],{"class":1299},[1086,3521,1309],{"class":1131},[1086,3523,3525],{"class":1088,"line":3524},95,[1086,3526,3455],{"class":1131},[1086,3528,3530],{"class":1088,"line":3529},96,[1086,3531,1637],{"class":1103},[1086,3533,3535],{"class":1088,"line":3534},97,[1086,3536,3537],{"class":1092},"            # Log the user in\n",[1086,3539,3541,3544,3546,3548,3550,3553],{"class":1088,"line":3540},98,[1086,3542,3543],{"class":1162},"            login",[1086,3545,1132],{"class":1131},[1086,3547,1459],{"class":1162},[1086,3549,1403],{"class":1131},[1086,3551,3552],{"class":1162}," user",[1086,3554,1178],{"class":1131},[1086,3556,3558],{"class":1088,"line":3557},99,[1086,3559,1637],{"class":1103},[1086,3561,3563,3565,3567,3569,3571,3573,3575,3577,3580,3582],{"class":1088,"line":3562},100,[1086,3564,1680],{"class":1103},[1086,3566,1139],{"class":1131},[1086,3568,1685],{"class":1162},[1086,3570,1132],{"class":1131},[1086,3572,1459],{"class":1162},[1086,3574,1403],{"class":1131},[1086,3576,1481],{"class":1299},[1086,3578,3579],{"class":1303},"Registration successful! Welcome to our site.",[1086,3581,1300],{"class":1299},[1086,3583,1178],{"class":1131},[1086,3585,3587,3589,3591,3593,3595,3598,3600],{"class":1088,"line":3586},101,[1086,3588,1706],{"class":1099},[1086,3590,1709],{"class":1162},[1086,3592,1132],{"class":1131},[1086,3594,1300],{"class":1299},[1086,3596,3597],{"class":1303},"dashboard",[1086,3599,1300],{"class":1299},[1086,3601,1178],{"class":1131},[1086,3603,3605,3608],{"class":1088,"line":3604},102,[1086,3606,3607],{"class":1099},"        else",[1086,3609,1489],{"class":1131},[1086,3611,3613,3615,3617,3619,3621,3623,3625,3627,3630,3632],{"class":1088,"line":3612},103,[1086,3614,1680],{"class":1103},[1086,3616,1139],{"class":1131},[1086,3618,1888],{"class":1162},[1086,3620,1132],{"class":1131},[1086,3622,1459],{"class":1162},[1086,3624,1403],{"class":1131},[1086,3626,1481],{"class":1299},[1086,3628,3629],{"class":1303},"Please correct the errors below.",[1086,3631,1300],{"class":1299},[1086,3633,1178],{"class":1131},[1086,3635,3637,3639],{"class":1088,"line":3636},104,[1086,3638,1726],{"class":1099},[1086,3640,1489],{"class":1131},[1086,3642,3644,3646,3648,3650],{"class":1088,"line":3643},105,[1086,3645,1495],{"class":1103},[1086,3647,1154],{"class":1131},[1086,3649,2253],{"class":1162},[1086,3651,1196],{"class":1131},[1086,3653,3655],{"class":1088,"line":3654},106,[1086,3656,1258],{"class":1103},[1086,3658,3660,3662,3664,3666,3668,3670,3672,3675,3677,3679,3681,3683,3685,3687,3689,3691],{"class":1088,"line":3659},107,[1086,3661,1750],{"class":1099},[1086,3663,1400],{"class":1162},[1086,3665,1132],{"class":1131},[1086,3667,1459],{"class":1162},[1086,3669,1403],{"class":1131},[1086,3671,1481],{"class":1299},[1086,3673,3674],{"class":1303},"registration/register.html",[1086,3676,1300],{"class":1299},[1086,3678,1403],{"class":1131},[1086,3680,1770],{"class":1131},[1086,3682,1300],{"class":1299},[1086,3684,1775],{"class":1303},[1086,3686,1300],{"class":1299},[1086,3688,1780],{"class":1131},[1086,3690,1518],{"class":1162},[1086,3692,1785],{"class":1131},[1030,3694,3696],{"id":3695},"form-field-types-and-widgets","Form Field Types and Widgets",[1038,3698,3700],{"id":3699},"common-field-types","Common Field Types",[1076,3702,3704],{"className":1078,"code":3703,"language":1080,"meta":1081,"style":1081},"# forms.py\nfrom django import forms\nfrom django.core.validators import RegexValidator\n\nclass ComprehensiveForm(forms.Form):\n    # Text fields\n    name = forms.CharField(max_length=100)\n    description = forms.CharField(widget=forms.Textarea(attrs={'rows': 4}))\n    \n    # Email and URL\n    email = forms.EmailField()\n    website = forms.URLField(required=False)\n    \n    # Numbers\n    age = forms.IntegerField(min_value=0, max_value=150)\n    price = forms.DecimalField(max_digits=10, decimal_places=2)\n    rating = forms.FloatField(min_value=0.0, max_value=5.0)\n    \n    # Dates and times\n    birth_date = forms.DateField(widget=forms.DateInput(attrs={'type': 'date'}))\n    appointment_time = forms.DateTimeField(\n        widget=forms.DateTimeInput(attrs={'type': 'datetime-local'})\n    )\n    \n    # Choices\n    CATEGORY_CHOICES = [\n        ('tech', 'Technology'),\n        ('health', 'Health'),\n        ('education', 'Education'),\n        ('entertainment', 'Entertainment'),\n    ]\n    category = forms.ChoiceField(choices=CATEGORY_CHOICES)\n    \n    # Multiple choices\n    SKILL_CHOICES = [\n        ('python', 'Python'),\n        ('javascript', 'JavaScript'),\n        ('java', 'Java'),\n        ('csharp', 'C#'),\n    ]\n    skills = forms.MultipleChoiceField(\n        choices=SKILL_CHOICES,\n        widget=forms.CheckboxSelectMultiple\n    )\n    \n    # Boolean fields\n    is_active = forms.BooleanField(required=False)\n    newsletter = forms.BooleanField(\n        required=False,\n        help_text='Subscribe to our newsletter'\n    )\n    \n    # File uploads\n    avatar = forms.ImageField(required=False)\n    resume = forms.FileField(required=False)\n    \n    # Custom validation\n    phone = forms.CharField(\n        max_length=15,\n        validators=[\n            RegexValidator(\n                regex=r'^\\+?1?\\d{9,15}$',\n                message='Phone number must be entered in the format: \"+999999999\". Up to 15 digits allowed.'\n            )\n        ]\n    )\n    \n    # Hidden field\n    source = forms.CharField(widget=forms.HiddenInput(), initial='web')\n",[1083,3705,3706,3710,3720,3740,3744,3761,3766,3788,3836,3840,3845,3859,3885,3889,3894,3928,3964,3998,4002,4007,4058,4074,4110,4114,4118,4123,4134,4158,4180,4202,4224,4229,4256,4260,4265,4274,4295,4317,4339,4361,4365,4381,4393,4406,4410,4414,4419,4442,4457,4467,4480,4484,4488,4493,4517,4541,4545,4550,4565,4576,4584,4591,4629,4643,4647,4652,4656,4660,4665],{"__ignoreMap":1081},[1086,3707,3708],{"class":1088,"line":1089},[1086,3709,1093],{"class":1092},[1086,3711,3712,3714,3716,3718],{"class":1088,"line":1096},[1086,3713,1100],{"class":1099},[1086,3715,1104],{"class":1103},[1086,3717,1107],{"class":1099},[1086,3719,1110],{"class":1103},[1086,3721,3722,3724,3726,3728,3730,3732,3735,3737],{"class":1088,"line":1113},[1086,3723,1100],{"class":1099},[1086,3725,1390],{"class":1103},[1086,3727,1139],{"class":1131},[1086,3729,2225],{"class":1103},[1086,3731,1139],{"class":1131},[1086,3733,3734],{"class":1103},"validators ",[1086,3736,1107],{"class":1099},[1086,3738,3739],{"class":1103}," RegexValidator\n",[1086,3741,3742],{"class":1088,"line":1120},[1086,3743,1117],{"emptyLinePlaceholder":1116},[1086,3745,3746,3748,3751,3753,3755,3757,3759],{"class":1088,"line":1148},[1086,3747,1124],{"class":1123},[1086,3749,3750],{"class":1127}," ComprehensiveForm",[1086,3752,1132],{"class":1131},[1086,3754,1136],{"class":1135},[1086,3756,1139],{"class":1131},[1086,3758,1142],{"class":1135},[1086,3760,1145],{"class":1131},[1086,3762,3763],{"class":1088,"line":1181},[1086,3764,3765],{"class":1092},"    # Text fields\n",[1086,3767,3768,3770,3772,3774,3776,3778,3780,3782,3784,3786],{"class":1088,"line":1199},[1086,3769,1151],{"class":1103},[1086,3771,1154],{"class":1131},[1086,3773,1157],{"class":1103},[1086,3775,1139],{"class":1131},[1086,3777,1163],{"class":1162},[1086,3779,1132],{"class":1131},[1086,3781,1169],{"class":1168},[1086,3783,1154],{"class":1131},[1086,3785,1175],{"class":1174},[1086,3787,1178],{"class":1131},[1086,3789,3790,3793,3795,3797,3799,3801,3803,3805,3807,3809,3811,3813,3815,3818,3821,3823,3826,3828,3830,3833],{"class":1088,"line":1224},[1086,3791,3792],{"class":1103},"    description ",[1086,3794,1154],{"class":1131},[1086,3796,1157],{"class":1103},[1086,3798,1139],{"class":1131},[1086,3800,1163],{"class":1162},[1086,3802,1132],{"class":1131},[1086,3804,1240],{"class":1168},[1086,3806,1154],{"class":1131},[1086,3808,1136],{"class":1162},[1086,3810,1139],{"class":1131},[1086,3812,1250],{"class":1162},[1086,3814,1132],{"class":1131},[1086,3816,3817],{"class":1168},"attrs",[1086,3819,3820],{"class":1131},"={",[1086,3822,1300],{"class":1299},[1086,3824,3825],{"class":1303},"rows",[1086,3827,1300],{"class":1299},[1086,3829,1780],{"class":1131},[1086,3831,3832],{"class":1174}," 4",[1086,3834,3835],{"class":1131},"}))\n",[1086,3837,3838],{"class":1088,"line":1255},[1086,3839,1258],{"class":1103},[1086,3841,3842],{"class":1088,"line":1261},[1086,3843,3844],{"class":1092},"    # Email and URL\n",[1086,3846,3847,3849,3851,3853,3855,3857],{"class":1088,"line":1279},[1086,3848,1184],{"class":1103},[1086,3850,1154],{"class":1131},[1086,3852,1157],{"class":1103},[1086,3854,1139],{"class":1131},[1086,3856,1193],{"class":1162},[1086,3858,1196],{"class":1131},[1086,3860,3861,3864,3866,3868,3870,3873,3875,3878,3880,3883],{"class":1088,"line":1312},[1086,3862,3863],{"class":1103},"    website ",[1086,3865,1154],{"class":1131},[1086,3867,1157],{"class":1103},[1086,3869,1139],{"class":1131},[1086,3871,3872],{"class":1162},"URLField",[1086,3874,1132],{"class":1131},[1086,3876,3877],{"class":1168},"required",[1086,3879,1154],{"class":1131},[1086,3881,3882],{"class":2557},"False",[1086,3884,1178],{"class":1131},[1086,3886,3887],{"class":1088,"line":1341},[1086,3888,1258],{"class":1103},[1086,3890,3891],{"class":1088,"line":1365},[1086,3892,3893],{"class":1092},"    # Numbers\n",[1086,3895,3896,3898,3900,3902,3904,3906,3908,3911,3913,3916,3918,3921,3923,3926],{"class":1088,"line":1374},[1086,3897,2479],{"class":1103},[1086,3899,1154],{"class":1131},[1086,3901,1157],{"class":1103},[1086,3903,1139],{"class":1131},[1086,3905,2488],{"class":1162},[1086,3907,1132],{"class":1131},[1086,3909,3910],{"class":1168},"min_value",[1086,3912,1154],{"class":1131},[1086,3914,3915],{"class":1174},"0",[1086,3917,1403],{"class":1131},[1086,3919,3920],{"class":1168}," max_value",[1086,3922,1154],{"class":1131},[1086,3924,3925],{"class":1174},"150",[1086,3927,1178],{"class":1131},[1086,3929,3930,3933,3935,3937,3939,3942,3944,3947,3949,3952,3954,3957,3959,3962],{"class":1088,"line":1379},[1086,3931,3932],{"class":1103},"    price ",[1086,3934,1154],{"class":1131},[1086,3936,1157],{"class":1103},[1086,3938,1139],{"class":1131},[1086,3940,3941],{"class":1162},"DecimalField",[1086,3943,1132],{"class":1131},[1086,3945,3946],{"class":1168},"max_digits",[1086,3948,1154],{"class":1131},[1086,3950,3951],{"class":1174},"10",[1086,3953,1403],{"class":1131},[1086,3955,3956],{"class":1168}," decimal_places",[1086,3958,1154],{"class":1131},[1086,3960,3961],{"class":1174},"2",[1086,3963,1178],{"class":1131},[1086,3965,3966,3969,3971,3973,3975,3978,3980,3982,3984,3987,3989,3991,3993,3996],{"class":1088,"line":1385},[1086,3967,3968],{"class":1103},"    rating ",[1086,3970,1154],{"class":1131},[1086,3972,1157],{"class":1103},[1086,3974,1139],{"class":1131},[1086,3976,3977],{"class":1162},"FloatField",[1086,3979,1132],{"class":1131},[1086,3981,3910],{"class":1168},[1086,3983,1154],{"class":1131},[1086,3985,3986],{"class":1174},"0.0",[1086,3988,1403],{"class":1131},[1086,3990,3920],{"class":1168},[1086,3992,1154],{"class":1131},[1086,3994,3995],{"class":1174},"5.0",[1086,3997,1178],{"class":1131},[1086,3999,4000],{"class":1088,"line":1409},[1086,4001,1258],{"class":1103},[1086,4003,4004],{"class":1088,"line":1426},[1086,4005,4006],{"class":1092},"    # Dates and times\n",[1086,4008,4009,4012,4014,4016,4018,4021,4023,4025,4027,4029,4031,4034,4036,4038,4040,4042,4045,4047,4049,4051,4054,4056],{"class":1088,"line":1442},[1086,4010,4011],{"class":1103},"    birth_date ",[1086,4013,1154],{"class":1131},[1086,4015,1157],{"class":1103},[1086,4017,1139],{"class":1131},[1086,4019,4020],{"class":1162},"DateField",[1086,4022,1132],{"class":1131},[1086,4024,1240],{"class":1168},[1086,4026,1154],{"class":1131},[1086,4028,1136],{"class":1162},[1086,4030,1139],{"class":1131},[1086,4032,4033],{"class":1162},"DateInput",[1086,4035,1132],{"class":1131},[1086,4037,3817],{"class":1168},[1086,4039,3820],{"class":1131},[1086,4041,1300],{"class":1299},[1086,4043,4044],{"class":1303},"type",[1086,4046,1300],{"class":1299},[1086,4048,1780],{"class":1131},[1086,4050,1481],{"class":1299},[1086,4052,4053],{"class":1303},"date",[1086,4055,1300],{"class":1299},[1086,4057,3835],{"class":1131},[1086,4059,4060,4063,4065,4067,4069,4072],{"class":1088,"line":1447},[1086,4061,4062],{"class":1103},"    appointment_time ",[1086,4064,1154],{"class":1131},[1086,4066,1157],{"class":1103},[1086,4068,1139],{"class":1131},[1086,4070,4071],{"class":1162},"DateTimeField",[1086,4073,2279],{"class":1131},[1086,4075,4076,4078,4080,4082,4084,4087,4089,4091,4093,4095,4097,4099,4101,4103,4106,4108],{"class":1088,"line":1464},[1086,4077,2385],{"class":1168},[1086,4079,1154],{"class":1131},[1086,4081,1136],{"class":1162},[1086,4083,1139],{"class":1131},[1086,4085,4086],{"class":1162},"DateTimeInput",[1086,4088,1132],{"class":1131},[1086,4090,3817],{"class":1168},[1086,4092,3820],{"class":1131},[1086,4094,1300],{"class":1299},[1086,4096,4044],{"class":1303},[1086,4098,1300],{"class":1299},[1086,4100,1780],{"class":1131},[1086,4102,1481],{"class":1299},[1086,4104,4105],{"class":1303},"datetime-local",[1086,4107,1300],{"class":1299},[1086,4109,1785],{"class":1131},[1086,4111,4112],{"class":1088,"line":1492},[1086,4113,2312],{"class":1131},[1086,4115,4116],{"class":1088,"line":1513},[1086,4117,1258],{"class":1103},[1086,4119,4120],{"class":1088,"line":1529},[1086,4121,4122],{"class":1092},"    # Choices\n",[1086,4124,4125,4128,4131],{"class":1088,"line":1535},[1086,4126,4127],{"class":1287},"    CATEGORY_CHOICES",[1086,4129,4130],{"class":1131}," =",[1086,4132,4133],{"class":1131}," [\n",[1086,4135,4136,4139,4141,4144,4146,4148,4150,4153,4155],{"class":1088,"line":1560},[1086,4137,4138],{"class":1131},"        (",[1086,4140,1300],{"class":1299},[1086,4142,4143],{"class":1303},"tech",[1086,4145,1300],{"class":1299},[1086,4147,1403],{"class":1131},[1086,4149,1481],{"class":1299},[1086,4151,4152],{"class":1303},"Technology",[1086,4154,1300],{"class":1299},[1086,4156,4157],{"class":1131},"),\n",[1086,4159,4160,4162,4164,4167,4169,4171,4173,4176,4178],{"class":1088,"line":1584},[1086,4161,4138],{"class":1131},[1086,4163,1300],{"class":1299},[1086,4165,4166],{"class":1303},"health",[1086,4168,1300],{"class":1299},[1086,4170,1403],{"class":1131},[1086,4172,1481],{"class":1299},[1086,4174,4175],{"class":1303},"Health",[1086,4177,1300],{"class":1299},[1086,4179,4157],{"class":1131},[1086,4181,4182,4184,4186,4189,4191,4193,4195,4198,4200],{"class":1088,"line":1609},[1086,4183,4138],{"class":1131},[1086,4185,1300],{"class":1299},[1086,4187,4188],{"class":1303},"education",[1086,4190,1300],{"class":1299},[1086,4192,1403],{"class":1131},[1086,4194,1481],{"class":1299},[1086,4196,4197],{"class":1303},"Education",[1086,4199,1300],{"class":1299},[1086,4201,4157],{"class":1131},[1086,4203,4204,4206,4208,4211,4213,4215,4217,4220,4222],{"class":1088,"line":1634},[1086,4205,4138],{"class":1131},[1086,4207,1300],{"class":1299},[1086,4209,4210],{"class":1303},"entertainment",[1086,4212,1300],{"class":1299},[1086,4214,1403],{"class":1131},[1086,4216,1481],{"class":1299},[1086,4218,4219],{"class":1303},"Entertainment",[1086,4221,1300],{"class":1299},[1086,4223,4157],{"class":1131},[1086,4225,4226],{"class":1088,"line":1640},[1086,4227,4228],{"class":1131},"    ]\n",[1086,4230,4231,4234,4236,4238,4240,4243,4245,4248,4250,4254],{"class":1088,"line":1646},[1086,4232,4233],{"class":1103},"    category ",[1086,4235,1154],{"class":1131},[1086,4237,1157],{"class":1103},[1086,4239,1139],{"class":1131},[1086,4241,4242],{"class":1162},"ChoiceField",[1086,4244,1132],{"class":1131},[1086,4246,4247],{"class":1168},"choices",[1086,4249,1154],{"class":1131},[1086,4251,4253],{"class":4252},"s6DHA","CATEGORY_CHOICES",[1086,4255,1178],{"class":1131},[1086,4257,4258],{"class":1088,"line":1672},[1086,4259,1258],{"class":1103},[1086,4261,4262],{"class":1088,"line":1677},[1086,4263,4264],{"class":1092},"    # Multiple choices\n",[1086,4266,4267,4270,4272],{"class":1088,"line":1703},[1086,4268,4269],{"class":1287},"    SKILL_CHOICES",[1086,4271,4130],{"class":1131},[1086,4273,4133],{"class":1131},[1086,4275,4276,4278,4280,4282,4284,4286,4288,4291,4293],{"class":1088,"line":1723},[1086,4277,4138],{"class":1131},[1086,4279,1300],{"class":1299},[1086,4281,1080],{"class":1303},[1086,4283,1300],{"class":1299},[1086,4285,1403],{"class":1131},[1086,4287,1481],{"class":1299},[1086,4289,4290],{"class":1303},"Python",[1086,4292,1300],{"class":1299},[1086,4294,4157],{"class":1131},[1086,4296,4297,4299,4301,4304,4306,4308,4310,4313,4315],{"class":1088,"line":1731},[1086,4298,4138],{"class":1131},[1086,4300,1300],{"class":1299},[1086,4302,4303],{"class":1303},"javascript",[1086,4305,1300],{"class":1299},[1086,4307,1403],{"class":1131},[1086,4309,1481],{"class":1299},[1086,4311,4312],{"class":1303},"JavaScript",[1086,4314,1300],{"class":1299},[1086,4316,4157],{"class":1131},[1086,4318,4319,4321,4323,4326,4328,4330,4332,4335,4337],{"class":1088,"line":1742},[1086,4320,4138],{"class":1131},[1086,4322,1300],{"class":1299},[1086,4324,4325],{"class":1303},"java",[1086,4327,1300],{"class":1299},[1086,4329,1403],{"class":1131},[1086,4331,1481],{"class":1299},[1086,4333,4334],{"class":1303},"Java",[1086,4336,1300],{"class":1299},[1086,4338,4157],{"class":1131},[1086,4340,4341,4343,4345,4348,4350,4352,4354,4357,4359],{"class":1088,"line":1747},[1086,4342,4138],{"class":1131},[1086,4344,1300],{"class":1299},[1086,4346,4347],{"class":1303},"csharp",[1086,4349,1300],{"class":1299},[1086,4351,1403],{"class":1131},[1086,4353,1481],{"class":1299},[1086,4355,4356],{"class":1303},"C#",[1086,4358,1300],{"class":1299},[1086,4360,4157],{"class":1131},[1086,4362,4363],{"class":1088,"line":2691},[1086,4364,4228],{"class":1131},[1086,4366,4367,4370,4372,4374,4376,4379],{"class":1088,"line":2710},[1086,4368,4369],{"class":1103},"    skills ",[1086,4371,1154],{"class":1131},[1086,4373,1157],{"class":1103},[1086,4375,1139],{"class":1131},[1086,4377,4378],{"class":1162},"MultipleChoiceField",[1086,4380,2279],{"class":1131},[1086,4382,4383,4386,4388,4391],{"class":1088,"line":2715},[1086,4384,4385],{"class":1168},"        choices",[1086,4387,1154],{"class":1131},[1086,4389,4390],{"class":4252},"SKILL_CHOICES",[1086,4392,2292],{"class":1131},[1086,4394,4395,4397,4399,4401,4403],{"class":1088,"line":2721},[1086,4396,2385],{"class":1168},[1086,4398,1154],{"class":1131},[1086,4400,1136],{"class":1162},[1086,4402,1139],{"class":1131},[1086,4404,4405],{"class":1249},"CheckboxSelectMultiple\n",[1086,4407,4408],{"class":1088,"line":2776},[1086,4409,2312],{"class":1131},[1086,4411,4412],{"class":1088,"line":2794},[1086,4413,1258],{"class":1103},[1086,4415,4416],{"class":1088,"line":2799},[1086,4417,4418],{"class":1092},"    # Boolean fields\n",[1086,4420,4421,4424,4426,4428,4430,4432,4434,4436,4438,4440],{"class":1088,"line":2807},[1086,4422,4423],{"class":1103},"    is_active ",[1086,4425,1154],{"class":1131},[1086,4427,1157],{"class":1103},[1086,4429,1139],{"class":1131},[1086,4431,2545],{"class":1162},[1086,4433,1132],{"class":1131},[1086,4435,3877],{"class":1168},[1086,4437,1154],{"class":1131},[1086,4439,3882],{"class":2557},[1086,4441,1178],{"class":1131},[1086,4443,4444,4447,4449,4451,4453,4455],{"class":1088,"line":2812},[1086,4445,4446],{"class":1103},"    newsletter ",[1086,4448,1154],{"class":1131},[1086,4450,1157],{"class":1103},[1086,4452,1139],{"class":1131},[1086,4454,2545],{"class":1162},[1086,4456,2279],{"class":1131},[1086,4458,4459,4461,4463,4465],{"class":1088,"line":2826},[1086,4460,2552],{"class":1168},[1086,4462,1154],{"class":1131},[1086,4464,3882],{"class":2557},[1086,4466,2292],{"class":1131},[1086,4468,4469,4471,4473,4475,4478],{"class":1088,"line":2851},[1086,4470,2297],{"class":1168},[1086,4472,1154],{"class":1131},[1086,4474,1300],{"class":1299},[1086,4476,4477],{"class":1303},"Subscribe to our newsletter",[1086,4479,2307],{"class":1299},[1086,4481,4482],{"class":1088,"line":2856},[1086,4483,2312],{"class":1131},[1086,4485,4486],{"class":1088,"line":2862},[1086,4487,1258],{"class":1103},[1086,4489,4490],{"class":1088,"line":2886},[1086,4491,4492],{"class":1092},"    # File uploads\n",[1086,4494,4495,4498,4500,4502,4504,4507,4509,4511,4513,4515],{"class":1088,"line":2904},[1086,4496,4497],{"class":1103},"    avatar ",[1086,4499,1154],{"class":1131},[1086,4501,1157],{"class":1103},[1086,4503,1139],{"class":1131},[1086,4505,4506],{"class":1162},"ImageField",[1086,4508,1132],{"class":1131},[1086,4510,3877],{"class":1168},[1086,4512,1154],{"class":1131},[1086,4514,3882],{"class":2557},[1086,4516,1178],{"class":1131},[1086,4518,4519,4522,4524,4526,4528,4531,4533,4535,4537,4539],{"class":1088,"line":2909},[1086,4520,4521],{"class":1103},"    resume ",[1086,4523,1154],{"class":1131},[1086,4525,1157],{"class":1103},[1086,4527,1139],{"class":1131},[1086,4529,4530],{"class":1162},"FileField",[1086,4532,1132],{"class":1131},[1086,4534,3877],{"class":1168},[1086,4536,1154],{"class":1131},[1086,4538,3882],{"class":2557},[1086,4540,1178],{"class":1131},[1086,4542,4543],{"class":1088,"line":2924},[1086,4544,1258],{"class":1103},[1086,4546,4547],{"class":1088,"line":2942},[1086,4548,4549],{"class":1092},"    # Custom validation\n",[1086,4551,4552,4555,4557,4559,4561,4563],{"class":1088,"line":2947},[1086,4553,4554],{"class":1103},"    phone ",[1086,4556,1154],{"class":1131},[1086,4558,1157],{"class":1103},[1086,4560,1139],{"class":1131},[1086,4562,1163],{"class":1162},[1086,4564,2279],{"class":1131},[1086,4566,4567,4569,4571,4574],{"class":1088,"line":2996},[1086,4568,2284],{"class":1168},[1086,4570,1154],{"class":1131},[1086,4572,4573],{"class":1174},"15",[1086,4575,2292],{"class":1131},[1086,4577,4578,4581],{"class":1088,"line":3014},[1086,4579,4580],{"class":1168},"        validators",[1086,4582,4583],{"class":1131},"=[\n",[1086,4585,4586,4589],{"class":1088,"line":3019},[1086,4587,4588],{"class":1162},"            RegexValidator",[1086,4590,2279],{"class":1131},[1086,4592,4593,4596,4598,4600,4602,4604,4608,4611,4615,4617,4620,4623,4625,4627],{"class":1088,"line":3027},[1086,4594,4595],{"class":1168},"                regex",[1086,4597,1154],{"class":1131},[1086,4599,2738],{"class":1123},[1086,4601,1300],{"class":1299},[1086,4603,2744],{"class":2743},[1086,4605,4607],{"class":4606},"sk0MF","\\+",[1086,4609,4610],{"class":2760},"?",[1086,4612,4614],{"class":4613},"s27EL","1",[1086,4616,4610],{"class":2760},[1086,4618,4619],{"class":2743},"\\d",[1086,4621,4622],{"class":2760},"{9,15}",[1086,4624,2764],{"class":2743},[1086,4626,1300],{"class":1299},[1086,4628,2292],{"class":1131},[1086,4630,4631,4634,4636,4638,4641],{"class":1088,"line":3032},[1086,4632,4633],{"class":1168},"                message",[1086,4635,1154],{"class":1131},[1086,4637,1300],{"class":1299},[1086,4639,4640],{"class":1303},"Phone number must be entered in the format: \"+999999999\". Up to 15 digits allowed.",[1086,4642,2307],{"class":1299},[1086,4644,4645],{"class":1088,"line":3046},[1086,4646,3455],{"class":1131},[1086,4648,4649],{"class":1088,"line":3066},[1086,4650,4651],{"class":1131},"        ]\n",[1086,4653,4654],{"class":1088,"line":3091},[1086,4655,2312],{"class":1131},[1086,4657,4658],{"class":1088,"line":3116},[1086,4659,1258],{"class":1103},[1086,4661,4662],{"class":1088,"line":3121},[1086,4663,4664],{"class":1092},"    # Hidden field\n",[1086,4666,4667,4670,4672,4674,4676,4678,4680,4682,4684,4686,4688,4691,4694,4697,4699,4701,4704,4706],{"class":1088,"line":3147},[1086,4668,4669],{"class":1103},"    source ",[1086,4671,1154],{"class":1131},[1086,4673,1157],{"class":1103},[1086,4675,1139],{"class":1131},[1086,4677,1163],{"class":1162},[1086,4679,1132],{"class":1131},[1086,4681,1240],{"class":1168},[1086,4683,1154],{"class":1131},[1086,4685,1136],{"class":1162},[1086,4687,1139],{"class":1131},[1086,4689,4690],{"class":1162},"HiddenInput",[1086,4692,4693],{"class":1131},"(),",[1086,4695,4696],{"class":1168}," initial",[1086,4698,1154],{"class":1131},[1086,4700,1300],{"class":1299},[1086,4702,4703],{"class":1303},"web",[1086,4705,1300],{"class":1299},[1086,4707,1178],{"class":1131},[1038,4709,4711],{"id":4710},"custom-widgets","Custom Widgets",[1076,4713,4715],{"className":1078,"code":4714,"language":1080,"meta":1081,"style":1081},"# widgets.py\nfrom django import forms\nfrom django.forms.widgets import Widget\nfrom django.html import format_html\n\nclass ColorPickerWidget(Widget):\n    \"\"\"Custom color picker widget\"\"\"\n    \n    def render(self, name, value, attrs=None, renderer=None):\n        if value is None:\n            value = '#000000'\n        \n        final_attrs = self.build_attrs(attrs, {'type': 'color', 'name': name})\n        if value:\n            final_attrs['value'] = value\n        \n        return format_html('\u003Cinput{} />', forms.utils.flatatt(final_attrs))\n\nclass RangeSliderWidget(Widget):\n    \"\"\"Custom range slider widget\"\"\"\n    \n    def __init__(self, attrs=None, min_value=0, max_value=100):\n        self.min_value = min_value\n        self.max_value = max_value\n        super().__init__(attrs)\n    \n    def render(self, name, value, attrs=None, renderer=None):\n        if value is None:\n            value = self.min_value\n        \n        final_attrs = self.build_attrs(attrs, {\n            'type': 'range',\n            'name': name,\n            'min': self.min_value,\n            'max': self.max_value,\n            'value': value\n        })\n        \n        return format_html(\n            '\u003Cinput{} />\u003Cspan id=\"{}_display\">{}\u003C/span>',\n            forms.utils.flatatt(final_attrs),\n            name,\n            value\n        )\n\n# forms.py using custom widgets\nclass ProductForm(forms.Form):\n    name = forms.CharField(max_length=100)\n    color = forms.CharField(widget=ColorPickerWidget())\n    priority = forms.IntegerField(\n        widget=RangeSliderWidget(min_value=1, max_value=10)\n    )\n",[1083,4716,4717,4722,4732,4752,4768,4772,4786,4799,4803,4844,4859,4873,4877,4928,4936,4957,4961,5006,5010,5023,5032,5036,5074,5088,5102,5118,5122,5158,5170,5183,5187,5208,5228,5242,5261,5280,5292,5297,5301,5309,5334,5353,5360,5365,5370,5374,5379,5396,5418,5443,5458,5485],{"__ignoreMap":1081},[1086,4718,4719],{"class":1088,"line":1089},[1086,4720,4721],{"class":1092},"# widgets.py\n",[1086,4723,4724,4726,4728,4730],{"class":1088,"line":1096},[1086,4725,1100],{"class":1099},[1086,4727,1104],{"class":1103},[1086,4729,1107],{"class":1099},[1086,4731,1110],{"class":1103},[1086,4733,4734,4736,4738,4740,4742,4744,4747,4749],{"class":1088,"line":1113},[1086,4735,1100],{"class":1099},[1086,4737,1390],{"class":1103},[1086,4739,1139],{"class":1131},[1086,4741,1136],{"class":1103},[1086,4743,1139],{"class":1131},[1086,4745,4746],{"class":1103},"widgets ",[1086,4748,1107],{"class":1099},[1086,4750,4751],{"class":1103}," Widget\n",[1086,4753,4754,4756,4758,4760,4763,4765],{"class":1088,"line":1120},[1086,4755,1100],{"class":1099},[1086,4757,1390],{"class":1103},[1086,4759,1139],{"class":1131},[1086,4761,4762],{"class":1103},"html ",[1086,4764,1107],{"class":1099},[1086,4766,4767],{"class":1103}," format_html\n",[1086,4769,4770],{"class":1088,"line":1148},[1086,4771,1117],{"emptyLinePlaceholder":1116},[1086,4773,4774,4776,4779,4781,4784],{"class":1088,"line":1181},[1086,4775,1124],{"class":1123},[1086,4777,4778],{"class":1127}," ColorPickerWidget",[1086,4780,1132],{"class":1131},[1086,4782,4783],{"class":1135},"Widget",[1086,4785,1145],{"class":1131},[1086,4787,4788,4792,4796],{"class":1088,"line":1199},[1086,4789,4791],{"class":4790},"sm7ve","    \"\"\"",[1086,4793,4795],{"class":4794},"sVyVU","Custom color picker widget",[1086,4797,4798],{"class":4790},"\"\"\"\n",[1086,4800,4801],{"class":1088,"line":1224},[1086,4802,1258],{"class":1103},[1086,4804,4805,4807,4809,4811,4813,4815,4818,4820,4823,4825,4828,4830,4833,4835,4838,4840,4842],{"class":1088,"line":1255},[1086,4806,1264],{"class":1123},[1086,4808,1400],{"class":1267},[1086,4810,1132],{"class":1131},[1086,4812,1274],{"class":1273},[1086,4814,1403],{"class":1131},[1086,4816,4817],{"class":1458}," name",[1086,4819,1403],{"class":1131},[1086,4821,4822],{"class":1458}," value",[1086,4824,1403],{"class":1131},[1086,4826,4827],{"class":1458}," attrs",[1086,4829,1154],{"class":1318},[1086,4831,4832],{"class":2557},"None",[1086,4834,1403],{"class":1131},[1086,4836,4837],{"class":1458}," renderer",[1086,4839,1154],{"class":1318},[1086,4841,4832],{"class":2557},[1086,4843,1145],{"class":1131},[1086,4845,4846,4848,4851,4854,4857],{"class":1088,"line":1261},[1086,4847,1315],{"class":1099},[1086,4849,4850],{"class":1103}," value ",[1086,4852,4853],{"class":1318},"is",[1086,4855,4856],{"class":2557}," None",[1086,4858,1489],{"class":1131},[1086,4860,4861,4864,4866,4868,4871],{"class":1088,"line":1279},[1086,4862,4863],{"class":1103},"            value ",[1086,4865,1154],{"class":1131},[1086,4867,1481],{"class":1299},[1086,4869,4870],{"class":1303},"#000000",[1086,4872,2307],{"class":1299},[1086,4874,4875],{"class":1088,"line":1312},[1086,4876,2623],{"class":1103},[1086,4878,4879,4882,4884,4886,4888,4891,4893,4895,4897,4899,4901,4903,4905,4907,4909,4912,4914,4916,4918,4920,4922,4924,4926],{"class":1088,"line":1341},[1086,4880,4881],{"class":1103},"        final_attrs ",[1086,4883,1154],{"class":1131},[1086,4885,1288],{"class":1287},[1086,4887,1139],{"class":1131},[1086,4889,4890],{"class":1162},"build_attrs",[1086,4892,1132],{"class":1131},[1086,4894,3817],{"class":1162},[1086,4896,1403],{"class":1131},[1086,4898,1770],{"class":1131},[1086,4900,1300],{"class":1299},[1086,4902,4044],{"class":1303},[1086,4904,1300],{"class":1299},[1086,4906,1780],{"class":1131},[1086,4908,1481],{"class":1299},[1086,4910,4911],{"class":1303},"color",[1086,4913,1300],{"class":1299},[1086,4915,1403],{"class":1131},[1086,4917,1481],{"class":1299},[1086,4919,1553],{"class":1303},[1086,4921,1300],{"class":1299},[1086,4923,1780],{"class":1131},[1086,4925,4817],{"class":1162},[1086,4927,1785],{"class":1131},[1086,4929,4930,4932,4934],{"class":1088,"line":1365},[1086,4931,1315],{"class":1099},[1086,4933,4822],{"class":1103},[1086,4935,1489],{"class":1131},[1086,4937,4938,4941,4943,4945,4948,4950,4952,4954],{"class":1088,"line":1374},[1086,4939,4940],{"class":1103},"            final_attrs",[1086,4942,1296],{"class":1131},[1086,4944,1300],{"class":1299},[1086,4946,4947],{"class":1303},"value",[1086,4949,1300],{"class":1299},[1086,4951,2757],{"class":1131},[1086,4953,4130],{"class":1131},[1086,4955,4956],{"class":1103}," value\n",[1086,4958,4959],{"class":1088,"line":1379},[1086,4960,2623],{"class":1103},[1086,4962,4963,4965,4968,4970,4972,4975,4979,4982,4984,4986,4988,4990,4993,4995,4998,5000,5003],{"class":1088,"line":1385},[1086,4964,1368],{"class":1099},[1086,4966,4967],{"class":1162}," format_html",[1086,4969,1132],{"class":1131},[1086,4971,1300],{"class":1299},[1086,4973,4974],{"class":1303},"\u003Cinput",[1086,4976,4978],{"class":4977},"s3h35","{}",[1086,4980,4981],{"class":1303}," />",[1086,4983,1300],{"class":1299},[1086,4985,1403],{"class":1131},[1086,4987,1157],{"class":1162},[1086,4989,1139],{"class":1131},[1086,4991,4992],{"class":1249},"utils",[1086,4994,1139],{"class":1131},[1086,4996,4997],{"class":1162},"flatatt",[1086,4999,1132],{"class":1131},[1086,5001,5002],{"class":1162},"final_attrs",[1086,5004,5005],{"class":1131},"))\n",[1086,5007,5008],{"class":1088,"line":1409},[1086,5009,1117],{"emptyLinePlaceholder":1116},[1086,5011,5012,5014,5017,5019,5021],{"class":1088,"line":1426},[1086,5013,1124],{"class":1123},[1086,5015,5016],{"class":1127}," RangeSliderWidget",[1086,5018,1132],{"class":1131},[1086,5020,4783],{"class":1135},[1086,5022,1145],{"class":1131},[1086,5024,5025,5027,5030],{"class":1088,"line":1442},[1086,5026,4791],{"class":4790},[1086,5028,5029],{"class":4794},"Custom range slider widget",[1086,5031,4798],{"class":4790},[1086,5033,5034],{"class":1088,"line":1447},[1086,5035,1258],{"class":1103},[1086,5037,5038,5040,5043,5045,5047,5049,5051,5053,5055,5057,5060,5062,5064,5066,5068,5070,5072],{"class":1088,"line":1464},[1086,5039,1264],{"class":1123},[1086,5041,5042],{"class":2867}," __init__",[1086,5044,1132],{"class":1131},[1086,5046,1274],{"class":1273},[1086,5048,1403],{"class":1131},[1086,5050,4827],{"class":1458},[1086,5052,1154],{"class":1318},[1086,5054,4832],{"class":2557},[1086,5056,1403],{"class":1131},[1086,5058,5059],{"class":1458}," min_value",[1086,5061,1154],{"class":1318},[1086,5063,3915],{"class":1174},[1086,5065,1403],{"class":1131},[1086,5067,3920],{"class":1458},[1086,5069,1154],{"class":1318},[1086,5071,1175],{"class":1174},[1086,5073,1145],{"class":1131},[1086,5075,5076,5079,5081,5083,5085],{"class":1088,"line":1492},[1086,5077,5078],{"class":1287},"        self",[1086,5080,1139],{"class":1131},[1086,5082,3910],{"class":1249},[1086,5084,4130],{"class":1131},[1086,5086,5087],{"class":1103}," min_value\n",[1086,5089,5090,5092,5094,5097,5099],{"class":1088,"line":1513},[1086,5091,5078],{"class":1287},[1086,5093,1139],{"class":1131},[1086,5095,5096],{"class":1249},"max_value",[1086,5098,4130],{"class":1131},[1086,5100,5101],{"class":1103}," max_value\n",[1086,5103,5104,5107,5109,5112,5114,5116],{"class":1088,"line":1529},[1086,5105,5106],{"class":3054},"        super",[1086,5108,3058],{"class":1131},[1086,5110,5111],{"class":2867},"__init__",[1086,5113,1132],{"class":1131},[1086,5115,3817],{"class":1162},[1086,5117,1178],{"class":1131},[1086,5119,5120],{"class":1088,"line":1535},[1086,5121,1258],{"class":1103},[1086,5123,5124,5126,5128,5130,5132,5134,5136,5138,5140,5142,5144,5146,5148,5150,5152,5154,5156],{"class":1088,"line":1560},[1086,5125,1264],{"class":1123},[1086,5127,1400],{"class":1267},[1086,5129,1132],{"class":1131},[1086,5131,1274],{"class":1273},[1086,5133,1403],{"class":1131},[1086,5135,4817],{"class":1458},[1086,5137,1403],{"class":1131},[1086,5139,4822],{"class":1458},[1086,5141,1403],{"class":1131},[1086,5143,4827],{"class":1458},[1086,5145,1154],{"class":1318},[1086,5147,4832],{"class":2557},[1086,5149,1403],{"class":1131},[1086,5151,4837],{"class":1458},[1086,5153,1154],{"class":1318},[1086,5155,4832],{"class":2557},[1086,5157,1145],{"class":1131},[1086,5159,5160,5162,5164,5166,5168],{"class":1088,"line":1584},[1086,5161,1315],{"class":1099},[1086,5163,4850],{"class":1103},[1086,5165,4853],{"class":1318},[1086,5167,4856],{"class":2557},[1086,5169,1489],{"class":1131},[1086,5171,5172,5174,5176,5178,5180],{"class":1088,"line":1609},[1086,5173,4863],{"class":1103},[1086,5175,1154],{"class":1131},[1086,5177,1288],{"class":1287},[1086,5179,1139],{"class":1131},[1086,5181,5182],{"class":1249},"min_value\n",[1086,5184,5185],{"class":1088,"line":1634},[1086,5186,2623],{"class":1103},[1086,5188,5189,5191,5193,5195,5197,5199,5201,5203,5205],{"class":1088,"line":1640},[1086,5190,4881],{"class":1103},[1086,5192,1154],{"class":1131},[1086,5194,1288],{"class":1287},[1086,5196,1139],{"class":1131},[1086,5198,4890],{"class":1162},[1086,5200,1132],{"class":1131},[1086,5202,3817],{"class":1162},[1086,5204,1403],{"class":1131},[1086,5206,5207],{"class":1131}," {\n",[1086,5209,5210,5213,5215,5217,5219,5221,5224,5226],{"class":1088,"line":1646},[1086,5211,5212],{"class":1299},"            '",[1086,5214,4044],{"class":1303},[1086,5216,1300],{"class":1299},[1086,5218,1780],{"class":1131},[1086,5220,1481],{"class":1299},[1086,5222,5223],{"class":1303},"range",[1086,5225,1300],{"class":1299},[1086,5227,2292],{"class":1131},[1086,5229,5230,5232,5234,5236,5238,5240],{"class":1088,"line":1672},[1086,5231,5212],{"class":1299},[1086,5233,1553],{"class":1303},[1086,5235,1300],{"class":1299},[1086,5237,1780],{"class":1131},[1086,5239,4817],{"class":1162},[1086,5241,2292],{"class":1131},[1086,5243,5244,5246,5249,5251,5253,5255,5257,5259],{"class":1088,"line":1677},[1086,5245,5212],{"class":1299},[1086,5247,5248],{"class":1303},"min",[1086,5250,1300],{"class":1299},[1086,5252,1780],{"class":1131},[1086,5254,1288],{"class":1287},[1086,5256,1139],{"class":1131},[1086,5258,3910],{"class":1249},[1086,5260,2292],{"class":1131},[1086,5262,5263,5265,5268,5270,5272,5274,5276,5278],{"class":1088,"line":1703},[1086,5264,5212],{"class":1299},[1086,5266,5267],{"class":1303},"max",[1086,5269,1300],{"class":1299},[1086,5271,1780],{"class":1131},[1086,5273,1288],{"class":1287},[1086,5275,1139],{"class":1131},[1086,5277,5096],{"class":1249},[1086,5279,2292],{"class":1131},[1086,5281,5282,5284,5286,5288,5290],{"class":1088,"line":1723},[1086,5283,5212],{"class":1299},[1086,5285,4947],{"class":1303},[1086,5287,1300],{"class":1299},[1086,5289,1780],{"class":1131},[1086,5291,4956],{"class":1162},[1086,5293,5294],{"class":1088,"line":1731},[1086,5295,5296],{"class":1131},"        })\n",[1086,5298,5299],{"class":1088,"line":1742},[1086,5300,2623],{"class":1103},[1086,5302,5303,5305,5307],{"class":1088,"line":1747},[1086,5304,1368],{"class":1099},[1086,5306,4967],{"class":1162},[1086,5308,2279],{"class":1131},[1086,5310,5311,5313,5315,5317,5320,5322,5325,5327,5330,5332],{"class":1088,"line":2691},[1086,5312,5212],{"class":1299},[1086,5314,4974],{"class":1303},[1086,5316,4978],{"class":4977},[1086,5318,5319],{"class":1303}," />\u003Cspan id=\"",[1086,5321,4978],{"class":4977},[1086,5323,5324],{"class":1303},"_display\">",[1086,5326,4978],{"class":4977},[1086,5328,5329],{"class":1303},"\u003C/span>",[1086,5331,1300],{"class":1299},[1086,5333,2292],{"class":1131},[1086,5335,5336,5339,5341,5343,5345,5347,5349,5351],{"class":1088,"line":2710},[1086,5337,5338],{"class":1162},"            forms",[1086,5340,1139],{"class":1131},[1086,5342,4992],{"class":1249},[1086,5344,1139],{"class":1131},[1086,5346,4997],{"class":1162},[1086,5348,1132],{"class":1131},[1086,5350,5002],{"class":1162},[1086,5352,4157],{"class":1131},[1086,5354,5355,5358],{"class":1088,"line":2715},[1086,5356,5357],{"class":1162},"            name",[1086,5359,2292],{"class":1131},[1086,5361,5362],{"class":1088,"line":2721},[1086,5363,5364],{"class":1162},"            value\n",[1086,5366,5367],{"class":1088,"line":2776},[1086,5368,5369],{"class":1131},"        )\n",[1086,5371,5372],{"class":1088,"line":2794},[1086,5373,1117],{"emptyLinePlaceholder":1116},[1086,5375,5376],{"class":1088,"line":2799},[1086,5377,5378],{"class":1092},"# forms.py using custom widgets\n",[1086,5380,5381,5383,5386,5388,5390,5392,5394],{"class":1088,"line":2807},[1086,5382,1124],{"class":1123},[1086,5384,5385],{"class":1127}," ProductForm",[1086,5387,1132],{"class":1131},[1086,5389,1136],{"class":1135},[1086,5391,1139],{"class":1131},[1086,5393,1142],{"class":1135},[1086,5395,1145],{"class":1131},[1086,5397,5398,5400,5402,5404,5406,5408,5410,5412,5414,5416],{"class":1088,"line":2812},[1086,5399,1151],{"class":1103},[1086,5401,1154],{"class":1131},[1086,5403,1157],{"class":1103},[1086,5405,1139],{"class":1131},[1086,5407,1163],{"class":1162},[1086,5409,1132],{"class":1131},[1086,5411,1169],{"class":1168},[1086,5413,1154],{"class":1131},[1086,5415,1175],{"class":1174},[1086,5417,1178],{"class":1131},[1086,5419,5420,5423,5425,5427,5429,5431,5433,5435,5437,5440],{"class":1088,"line":2826},[1086,5421,5422],{"class":1103},"    color ",[1086,5424,1154],{"class":1131},[1086,5426,1157],{"class":1103},[1086,5428,1139],{"class":1131},[1086,5430,1163],{"class":1162},[1086,5432,1132],{"class":1131},[1086,5434,1240],{"class":1168},[1086,5436,1154],{"class":1131},[1086,5438,5439],{"class":1162},"ColorPickerWidget",[1086,5441,5442],{"class":1131},"())\n",[1086,5444,5445,5448,5450,5452,5454,5456],{"class":1088,"line":2851},[1086,5446,5447],{"class":1103},"    priority ",[1086,5449,1154],{"class":1131},[1086,5451,1157],{"class":1103},[1086,5453,1139],{"class":1131},[1086,5455,2488],{"class":1162},[1086,5457,2279],{"class":1131},[1086,5459,5460,5462,5464,5467,5469,5471,5473,5475,5477,5479,5481,5483],{"class":1088,"line":2856},[1086,5461,2385],{"class":1168},[1086,5463,1154],{"class":1131},[1086,5465,5466],{"class":1162},"RangeSliderWidget",[1086,5468,1132],{"class":1131},[1086,5470,3910],{"class":1168},[1086,5472,1154],{"class":1131},[1086,5474,4614],{"class":1174},[1086,5476,1403],{"class":1131},[1086,5478,3920],{"class":1168},[1086,5480,1154],{"class":1131},[1086,5482,3951],{"class":1174},[1086,5484,1178],{"class":1131},[1086,5486,5487],{"class":1088,"line":2862},[1086,5488,2312],{"class":1131},[1030,5490,5492],{"id":5491},"form-validation-patterns","Form Validation Patterns",[1038,5494,5496],{"id":5495},"multi-level-validation","Multi-Level Validation",[1076,5498,5500],{"className":1078,"code":5499,"language":1080,"meta":1081,"style":1081},"# forms.py\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.contrib.auth.models import User\n\nclass ProfileUpdateForm(forms.Form):\n    first_name = forms.CharField(max_length=30)\n    last_name = forms.CharField(max_length=30)\n    email = forms.EmailField()\n    bio = forms.CharField(widget=forms.Textarea, required=False)\n    birth_date = forms.DateField()\n    \n    def __init__(self, *args, **kwargs):\n        self.user = kwargs.pop('user', None)\n        super().__init__(*args, **kwargs)\n    \n    def clean_email(self):\n        \"\"\"Field-level validation for email\"\"\"\n        email = self.cleaned_data['email']\n        \n        # Check if email is already taken by another user\n        if User.objects.filter(email=email).exclude(pk=self.user.pk).exists():\n            raise ValidationError('This email address is already in use.')\n        \n        # Check email domain\n        allowed_domains = ['gmail.com', 'yahoo.com', 'company.com']\n        domain = email.split('@')[1]\n        if domain not in allowed_domains:\n            raise ValidationError(f'Email domain {domain} is not allowed.')\n        \n        return email\n    \n    def clean_birth_date(self):\n        \"\"\"Field-level validation for birth date\"\"\"\n        birth_date = self.cleaned_data['birth_date']\n        \n        from datetime import date\n        today = date.today()\n        age = today.year - birth_date.year - ((today.month, today.day) \u003C (birth_date.month, birth_date.day))\n        \n        if age \u003C 13:\n            raise ValidationError('You must be at least 13 years old.')\n        \n        if age > 120:\n            raise ValidationError('Please enter a valid birth date.')\n        \n        return birth_date\n    \n    def clean(self):\n        \"\"\"Form-level validation\"\"\"\n        cleaned_data = super().clean()\n        first_name = cleaned_data.get('first_name')\n        last_name = cleaned_data.get('last_name')\n        \n        # Check if first and last name are the same\n        if first_name and last_name and first_name.lower() == last_name.lower():\n            raise ValidationError('First name and last name cannot be the same.')\n        \n        # Check for inappropriate content in bio\n        bio = cleaned_data.get('bio')\n        if bio:\n            inappropriate_words = ['spam', 'scam', 'fake']\n            if any(word in bio.lower() for word in inappropriate_words):\n                raise ValidationError('Bio contains inappropriate content.')\n        \n        return cleaned_data\n",[1083,5501,5502,5506,5516,5534,5556,5560,5577,5600,5623,5637,5673,5687,5691,5719,5751,5774,5778,5790,5800,5822,5826,5831,5881,5898,5902,5907,5943,5973,5990,6018,6022,6028,6032,6045,6054,6078,6082,6094,6111,6180,6184,6198,6215,6219,6232,6249,6253,6260,6264,6276,6285,6299,6323,6347,6351,6356,6390,6407,6411,6416,6440,6449,6485,6522,6540,6544],{"__ignoreMap":1081},[1086,5503,5504],{"class":1088,"line":1089},[1086,5505,1093],{"class":1092},[1086,5507,5508,5510,5512,5514],{"class":1088,"line":1096},[1086,5509,1100],{"class":1099},[1086,5511,1104],{"class":1103},[1086,5513,1107],{"class":1099},[1086,5515,1110],{"class":1103},[1086,5517,5518,5520,5522,5524,5526,5528,5530,5532],{"class":1088,"line":1113},[1086,5519,1100],{"class":1099},[1086,5521,1390],{"class":1103},[1086,5523,1139],{"class":1131},[1086,5525,2225],{"class":1103},[1086,5527,1139],{"class":1131},[1086,5529,2230],{"class":1103},[1086,5531,1107],{"class":1099},[1086,5533,2235],{"class":1103},[1086,5535,5536,5538,5540,5542,5544,5546,5548,5550,5552,5554],{"class":1088,"line":1120},[1086,5537,1100],{"class":1099},[1086,5539,1390],{"class":1103},[1086,5541,1139],{"class":1131},[1086,5543,2640],{"class":1103},[1086,5545,1139],{"class":1131},[1086,5547,2645],{"class":1103},[1086,5549,1139],{"class":1131},[1086,5551,2650],{"class":1103},[1086,5553,1107],{"class":1099},[1086,5555,2655],{"class":1103},[1086,5557,5558],{"class":1088,"line":1148},[1086,5559,1117],{"emptyLinePlaceholder":1116},[1086,5561,5562,5564,5567,5569,5571,5573,5575],{"class":1088,"line":1181},[1086,5563,1124],{"class":1123},[1086,5565,5566],{"class":1127}," ProfileUpdateForm",[1086,5568,1132],{"class":1131},[1086,5570,1136],{"class":1135},[1086,5572,1139],{"class":1131},[1086,5574,1142],{"class":1135},[1086,5576,1145],{"class":1131},[1086,5578,5579,5582,5584,5586,5588,5590,5592,5594,5596,5598],{"class":1088,"line":1199},[1086,5580,5581],{"class":1103},"    first_name ",[1086,5583,1154],{"class":1131},[1086,5585,1157],{"class":1103},[1086,5587,1139],{"class":1131},[1086,5589,1163],{"class":1162},[1086,5591,1132],{"class":1131},[1086,5593,1169],{"class":1168},[1086,5595,1154],{"class":1131},[1086,5597,2289],{"class":1174},[1086,5599,1178],{"class":1131},[1086,5601,5602,5605,5607,5609,5611,5613,5615,5617,5619,5621],{"class":1088,"line":1224},[1086,5603,5604],{"class":1103},"    last_name ",[1086,5606,1154],{"class":1131},[1086,5608,1157],{"class":1103},[1086,5610,1139],{"class":1131},[1086,5612,1163],{"class":1162},[1086,5614,1132],{"class":1131},[1086,5616,1169],{"class":1168},[1086,5618,1154],{"class":1131},[1086,5620,2289],{"class":1174},[1086,5622,1178],{"class":1131},[1086,5624,5625,5627,5629,5631,5633,5635],{"class":1088,"line":1255},[1086,5626,1184],{"class":1103},[1086,5628,1154],{"class":1131},[1086,5630,1157],{"class":1103},[1086,5632,1139],{"class":1131},[1086,5634,1193],{"class":1162},[1086,5636,1196],{"class":1131},[1086,5638,5639,5642,5644,5646,5648,5650,5652,5654,5656,5658,5660,5662,5664,5667,5669,5671],{"class":1088,"line":1261},[1086,5640,5641],{"class":1103},"    bio ",[1086,5643,1154],{"class":1131},[1086,5645,1157],{"class":1103},[1086,5647,1139],{"class":1131},[1086,5649,1163],{"class":1162},[1086,5651,1132],{"class":1131},[1086,5653,1240],{"class":1168},[1086,5655,1154],{"class":1131},[1086,5657,1136],{"class":1162},[1086,5659,1139],{"class":1131},[1086,5661,1250],{"class":1249},[1086,5663,1403],{"class":1131},[1086,5665,5666],{"class":1168}," required",[1086,5668,1154],{"class":1131},[1086,5670,3882],{"class":2557},[1086,5672,1178],{"class":1131},[1086,5674,5675,5677,5679,5681,5683,5685],{"class":1088,"line":1279},[1086,5676,4011],{"class":1103},[1086,5678,1154],{"class":1131},[1086,5680,1157],{"class":1103},[1086,5682,1139],{"class":1131},[1086,5684,4020],{"class":1162},[1086,5686,1196],{"class":1131},[1086,5688,5689],{"class":1088,"line":1312},[1086,5690,1258],{"class":1103},[1086,5692,5693,5695,5697,5699,5701,5703,5706,5709,5711,5714,5717],{"class":1088,"line":1341},[1086,5694,1264],{"class":1123},[1086,5696,5042],{"class":2867},[1086,5698,1132],{"class":1131},[1086,5700,1274],{"class":1273},[1086,5702,1403],{"class":1131},[1086,5704,5705],{"class":1318}," *",[1086,5707,5708],{"class":1458},"args",[1086,5710,1403],{"class":1131},[1086,5712,5713],{"class":1318}," **",[1086,5715,5716],{"class":1458},"kwargs",[1086,5718,1145],{"class":1131},[1086,5720,5721,5723,5725,5727,5729,5732,5734,5737,5739,5741,5743,5745,5747,5749],{"class":1088,"line":1365},[1086,5722,5078],{"class":1287},[1086,5724,1139],{"class":1131},[1086,5726,3494],{"class":1249},[1086,5728,4130],{"class":1131},[1086,5730,5731],{"class":1103}," kwargs",[1086,5733,1139],{"class":1131},[1086,5735,5736],{"class":1162},"pop",[1086,5738,1132],{"class":1131},[1086,5740,1300],{"class":1299},[1086,5742,3494],{"class":1303},[1086,5744,1300],{"class":1299},[1086,5746,1403],{"class":1131},[1086,5748,4856],{"class":2557},[1086,5750,1178],{"class":1131},[1086,5752,5753,5755,5757,5759,5761,5764,5766,5768,5770,5772],{"class":1088,"line":1374},[1086,5754,5106],{"class":3054},[1086,5756,3058],{"class":1131},[1086,5758,5111],{"class":2867},[1086,5760,1132],{"class":1131},[1086,5762,5763],{"class":1318},"*",[1086,5765,5708],{"class":1162},[1086,5767,1403],{"class":1131},[1086,5769,5713],{"class":1318},[1086,5771,5716],{"class":1162},[1086,5773,1178],{"class":1131},[1086,5775,5776],{"class":1088,"line":1379},[1086,5777,1258],{"class":1103},[1086,5779,5780,5782,5784,5786,5788],{"class":1088,"line":1385},[1086,5781,1264],{"class":1123},[1086,5783,1268],{"class":1267},[1086,5785,1132],{"class":1131},[1086,5787,1274],{"class":1273},[1086,5789,1145],{"class":1131},[1086,5791,5792,5795,5798],{"class":1088,"line":1409},[1086,5793,5794],{"class":4790},"        \"\"\"",[1086,5796,5797],{"class":4794},"Field-level validation for email",[1086,5799,4798],{"class":4790},[1086,5801,5802,5804,5806,5808,5810,5812,5814,5816,5818,5820],{"class":1088,"line":1426},[1086,5803,1282],{"class":1103},[1086,5805,1154],{"class":1131},[1086,5807,1288],{"class":1287},[1086,5809,1139],{"class":1131},[1086,5811,1293],{"class":1249},[1086,5813,1296],{"class":1131},[1086,5815,1300],{"class":1299},[1086,5817,1304],{"class":1303},[1086,5819,1300],{"class":1299},[1086,5821,1309],{"class":1131},[1086,5823,5824],{"class":1088,"line":1442},[1086,5825,2623],{"class":1103},[1086,5827,5828],{"class":1088,"line":1447},[1086,5829,5830],{"class":1092},"        # Check if email is already taken by another user\n",[1086,5832,5833,5835,5837,5839,5841,5843,5845,5847,5849,5851,5853,5855,5858,5860,5863,5865,5867,5869,5871,5873,5875,5877,5879],{"class":1088,"line":1464},[1086,5834,1315],{"class":1099},[1086,5836,2662],{"class":1103},[1086,5838,1139],{"class":1131},[1086,5840,2667],{"class":1249},[1086,5842,1139],{"class":1131},[1086,5844,2672],{"class":1162},[1086,5846,1132],{"class":1131},[1086,5848,1304],{"class":1168},[1086,5850,1154],{"class":1131},[1086,5852,1304],{"class":1162},[1086,5854,2683],{"class":1131},[1086,5856,5857],{"class":1162},"exclude",[1086,5859,1132],{"class":1131},[1086,5861,5862],{"class":1168},"pk",[1086,5864,1154],{"class":1131},[1086,5866,1274],{"class":1287},[1086,5868,1139],{"class":1131},[1086,5870,3494],{"class":1249},[1086,5872,1139],{"class":1131},[1086,5874,5862],{"class":1249},[1086,5876,2683],{"class":1131},[1086,5878,2686],{"class":1162},[1086,5880,1526],{"class":1131},[1086,5882,5883,5885,5887,5889,5891,5894,5896],{"class":1088,"line":1492},[1086,5884,1344],{"class":1099},[1086,5886,2696],{"class":1162},[1086,5888,1132],{"class":1131},[1086,5890,1300],{"class":1299},[1086,5892,5893],{"class":1303},"This email address is already in use.",[1086,5895,1300],{"class":1299},[1086,5897,1178],{"class":1131},[1086,5899,5900],{"class":1088,"line":1513},[1086,5901,2623],{"class":1103},[1086,5903,5904],{"class":1088,"line":1529},[1086,5905,5906],{"class":1092},"        # Check email domain\n",[1086,5908,5909,5912,5914,5916,5918,5921,5923,5925,5927,5930,5932,5934,5936,5939,5941],{"class":1088,"line":1535},[1086,5910,5911],{"class":1103},"        allowed_domains ",[1086,5913,1154],{"class":1131},[1086,5915,2965],{"class":1131},[1086,5917,1300],{"class":1299},[1086,5919,5920],{"class":1303},"gmail.com",[1086,5922,1300],{"class":1299},[1086,5924,1403],{"class":1131},[1086,5926,1481],{"class":1299},[1086,5928,5929],{"class":1303},"yahoo.com",[1086,5931,1300],{"class":1299},[1086,5933,1403],{"class":1131},[1086,5935,1481],{"class":1299},[1086,5937,5938],{"class":1303},"company.com",[1086,5940,1300],{"class":1299},[1086,5942,1309],{"class":1131},[1086,5944,5945,5948,5950,5952,5954,5957,5959,5961,5964,5966,5969,5971],{"class":1088,"line":1560},[1086,5946,5947],{"class":1103},"        domain ",[1086,5949,1154],{"class":1131},[1086,5951,1322],{"class":1103},[1086,5953,1139],{"class":1131},[1086,5955,5956],{"class":1162},"split",[1086,5958,1132],{"class":1131},[1086,5960,1300],{"class":1299},[1086,5962,5963],{"class":1303},"@",[1086,5965,1300],{"class":1299},[1086,5967,5968],{"class":1131},")[",[1086,5970,4614],{"class":1174},[1086,5972,1309],{"class":1131},[1086,5974,5975,5977,5980,5983,5985,5988],{"class":1088,"line":1584},[1086,5976,1315],{"class":1099},[1086,5978,5979],{"class":1103}," domain ",[1086,5981,5982],{"class":1318},"not",[1086,5984,2962],{"class":1318},[1086,5986,5987],{"class":1103}," allowed_domains",[1086,5989,1489],{"class":1131},[1086,5991,5992,5994,5996,5998,6001,6004,6007,6010,6013,6016],{"class":1088,"line":1609},[1086,5993,1344],{"class":1099},[1086,5995,2696],{"class":1162},[1086,5997,1132],{"class":1131},[1086,5999,6000],{"class":1123},"f",[1086,6002,6003],{"class":1303},"'Email domain ",[1086,6005,6006],{"class":4977},"{",[1086,6008,6009],{"class":1162},"domain",[1086,6011,6012],{"class":4977},"}",[1086,6014,6015],{"class":1303}," is not allowed.'",[1086,6017,1178],{"class":1131},[1086,6019,6020],{"class":1088,"line":1634},[1086,6021,2623],{"class":1103},[1086,6023,6024,6026],{"class":1088,"line":1640},[1086,6025,1368],{"class":1099},[1086,6027,1371],{"class":1103},[1086,6029,6030],{"class":1088,"line":1646},[1086,6031,1258],{"class":1103},[1086,6033,6034,6036,6039,6041,6043],{"class":1088,"line":1672},[1086,6035,1264],{"class":1123},[1086,6037,6038],{"class":1267}," clean_birth_date",[1086,6040,1132],{"class":1131},[1086,6042,1274],{"class":1273},[1086,6044,1145],{"class":1131},[1086,6046,6047,6049,6052],{"class":1088,"line":1677},[1086,6048,5794],{"class":4790},[1086,6050,6051],{"class":4794},"Field-level validation for birth date",[1086,6053,4798],{"class":4790},[1086,6055,6056,6059,6061,6063,6065,6067,6069,6071,6074,6076],{"class":1088,"line":1703},[1086,6057,6058],{"class":1103},"        birth_date ",[1086,6060,1154],{"class":1131},[1086,6062,1288],{"class":1287},[1086,6064,1139],{"class":1131},[1086,6066,1293],{"class":1249},[1086,6068,1296],{"class":1131},[1086,6070,1300],{"class":1299},[1086,6072,6073],{"class":1303},"birth_date",[1086,6075,1300],{"class":1299},[1086,6077,1309],{"class":1131},[1086,6079,6080],{"class":1088,"line":1723},[1086,6081,2623],{"class":1103},[1086,6083,6084,6086,6089,6091],{"class":1088,"line":1731},[1086,6085,2633],{"class":1099},[1086,6087,6088],{"class":1103}," datetime ",[1086,6090,1107],{"class":1099},[1086,6092,6093],{"class":1103}," date\n",[1086,6095,6096,6099,6101,6104,6106,6109],{"class":1088,"line":1742},[1086,6097,6098],{"class":1103},"        today ",[1086,6100,1154],{"class":1131},[1086,6102,6103],{"class":1103}," date",[1086,6105,1139],{"class":1131},[1086,6107,6108],{"class":1162},"today",[1086,6110,1196],{"class":1131},[1086,6112,6113,6116,6118,6121,6123,6126,6129,6132,6134,6136,6138,6141,6143,6145,6148,6150,6152,6154,6157,6159,6161,6164,6166,6168,6170,6172,6174,6176,6178],{"class":1088,"line":1747},[1086,6114,6115],{"class":1103},"        age ",[1086,6117,1154],{"class":1131},[1086,6119,6120],{"class":1103}," today",[1086,6122,1139],{"class":1131},[1086,6124,6125],{"class":1249},"year",[1086,6127,6128],{"class":1318}," -",[1086,6130,6131],{"class":1103}," birth_date",[1086,6133,1139],{"class":1131},[1086,6135,6125],{"class":1249},[1086,6137,6128],{"class":1318},[1086,6139,6140],{"class":1131}," ((",[1086,6142,6108],{"class":1103},[1086,6144,1139],{"class":1131},[1086,6146,6147],{"class":1249},"month",[1086,6149,1403],{"class":1131},[1086,6151,6120],{"class":1103},[1086,6153,1139],{"class":1131},[1086,6155,6156],{"class":1249},"day",[1086,6158,2875],{"class":1131},[1086,6160,2878],{"class":1318},[1086,6162,6163],{"class":1131}," (",[1086,6165,6073],{"class":1103},[1086,6167,1139],{"class":1131},[1086,6169,6147],{"class":1249},[1086,6171,1403],{"class":1131},[1086,6173,6131],{"class":1103},[1086,6175,1139],{"class":1131},[1086,6177,6156],{"class":1249},[1086,6179,5005],{"class":1131},[1086,6181,6182],{"class":1088,"line":2691},[1086,6183,2623],{"class":1103},[1086,6185,6186,6188,6191,6193,6196],{"class":1088,"line":2710},[1086,6187,1315],{"class":1099},[1086,6189,6190],{"class":1103}," age ",[1086,6192,1806],{"class":1318},[1086,6194,6195],{"class":1174}," 13",[1086,6197,1489],{"class":1131},[1086,6199,6200,6202,6204,6206,6208,6211,6213],{"class":1088,"line":2715},[1086,6201,1344],{"class":1099},[1086,6203,2696],{"class":1162},[1086,6205,1132],{"class":1131},[1086,6207,1300],{"class":1299},[1086,6209,6210],{"class":1303},"You must be at least 13 years old.",[1086,6212,1300],{"class":1299},[1086,6214,1178],{"class":1131},[1086,6216,6217],{"class":1088,"line":2721},[1086,6218,2623],{"class":1103},[1086,6220,6221,6223,6225,6227,6230],{"class":1088,"line":2776},[1086,6222,1315],{"class":1099},[1086,6224,6190],{"class":1103},[1086,6226,1893],{"class":1318},[1086,6228,6229],{"class":1174}," 120",[1086,6231,1489],{"class":1131},[1086,6233,6234,6236,6238,6240,6242,6245,6247],{"class":1088,"line":2794},[1086,6235,1344],{"class":1099},[1086,6237,2696],{"class":1162},[1086,6239,1132],{"class":1131},[1086,6241,1300],{"class":1299},[1086,6243,6244],{"class":1303},"Please enter a valid birth date.",[1086,6246,1300],{"class":1299},[1086,6248,1178],{"class":1131},[1086,6250,6251],{"class":1088,"line":2799},[1086,6252,2623],{"class":1103},[1086,6254,6255,6257],{"class":1088,"line":2807},[1086,6256,1368],{"class":1099},[1086,6258,6259],{"class":1103}," birth_date\n",[1086,6261,6262],{"class":1088,"line":2812},[1086,6263,1258],{"class":1103},[1086,6265,6266,6268,6270,6272,6274],{"class":1088,"line":2826},[1086,6267,1264],{"class":1123},[1086,6269,3037],{"class":1267},[1086,6271,1132],{"class":1131},[1086,6273,1274],{"class":1273},[1086,6275,1145],{"class":1131},[1086,6277,6278,6280,6283],{"class":1088,"line":2851},[1086,6279,5794],{"class":4790},[1086,6281,6282],{"class":4794},"Form-level validation",[1086,6284,4798],{"class":4790},[1086,6286,6287,6289,6291,6293,6295,6297],{"class":1088,"line":2856},[1086,6288,3049],{"class":1103},[1086,6290,1154],{"class":1131},[1086,6292,3055],{"class":3054},[1086,6294,3058],{"class":1131},[1086,6296,3061],{"class":1162},[1086,6298,1196],{"class":1131},[1086,6300,6301,6304,6306,6308,6310,6312,6314,6316,6319,6321],{"class":1088,"line":2862},[1086,6302,6303],{"class":1103},"        first_name ",[1086,6305,1154],{"class":1131},[1086,6307,3073],{"class":1103},[1086,6309,1139],{"class":1131},[1086,6311,3078],{"class":1162},[1086,6313,1132],{"class":1131},[1086,6315,1300],{"class":1299},[1086,6317,6318],{"class":1303},"first_name",[1086,6320,1300],{"class":1299},[1086,6322,1178],{"class":1131},[1086,6324,6325,6328,6330,6332,6334,6336,6338,6340,6343,6345],{"class":1088,"line":2886},[1086,6326,6327],{"class":1103},"        last_name ",[1086,6329,1154],{"class":1131},[1086,6331,3073],{"class":1103},[1086,6333,1139],{"class":1131},[1086,6335,3078],{"class":1162},[1086,6337,1132],{"class":1131},[1086,6339,1300],{"class":1299},[1086,6341,6342],{"class":1303},"last_name",[1086,6344,1300],{"class":1299},[1086,6346,1178],{"class":1131},[1086,6348,6349],{"class":1088,"line":2904},[1086,6350,2623],{"class":1103},[1086,6352,6353],{"class":1088,"line":2909},[1086,6354,6355],{"class":1092},"        # Check if first and last name are the same\n",[1086,6357,6358,6360,6363,6365,6368,6370,6373,6375,6377,6379,6381,6384,6386,6388],{"class":1088,"line":2924},[1086,6359,1315],{"class":1099},[1086,6361,6362],{"class":1103}," first_name ",[1086,6364,3129],{"class":1318},[1086,6366,6367],{"class":1103}," last_name ",[1086,6369,3129],{"class":1318},[1086,6371,6372],{"class":1103}," first_name",[1086,6374,1139],{"class":1131},[1086,6376,2956],{"class":1162},[1086,6378,2959],{"class":1131},[1086,6380,1478],{"class":1318},[1086,6382,6383],{"class":1103}," last_name",[1086,6385,1139],{"class":1131},[1086,6387,2956],{"class":1162},[1086,6389,1526],{"class":1131},[1086,6391,6392,6394,6396,6398,6400,6403,6405],{"class":1088,"line":2942},[1086,6393,1344],{"class":1099},[1086,6395,2696],{"class":1162},[1086,6397,1132],{"class":1131},[1086,6399,1300],{"class":1299},[1086,6401,6402],{"class":1303},"First name and last name cannot be the same.",[1086,6404,1300],{"class":1299},[1086,6406,1178],{"class":1131},[1086,6408,6409],{"class":1088,"line":2947},[1086,6410,2623],{"class":1103},[1086,6412,6413],{"class":1088,"line":2996},[1086,6414,6415],{"class":1092},"        # Check for inappropriate content in bio\n",[1086,6417,6418,6421,6423,6425,6427,6429,6431,6433,6436,6438],{"class":1088,"line":3014},[1086,6419,6420],{"class":1103},"        bio ",[1086,6422,1154],{"class":1131},[1086,6424,3073],{"class":1103},[1086,6426,1139],{"class":1131},[1086,6428,3078],{"class":1162},[1086,6430,1132],{"class":1131},[1086,6432,1300],{"class":1299},[1086,6434,6435],{"class":1303},"bio",[1086,6437,1300],{"class":1299},[1086,6439,1178],{"class":1131},[1086,6441,6442,6444,6447],{"class":1088,"line":3019},[1086,6443,1315],{"class":1099},[1086,6445,6446],{"class":1103}," bio",[1086,6448,1489],{"class":1131},[1086,6450,6451,6454,6456,6458,6460,6463,6465,6467,6469,6472,6474,6476,6478,6481,6483],{"class":1088,"line":3027},[1086,6452,6453],{"class":1103},"            inappropriate_words ",[1086,6455,1154],{"class":1131},[1086,6457,2965],{"class":1131},[1086,6459,1300],{"class":1299},[1086,6461,6462],{"class":1303},"spam",[1086,6464,1300],{"class":1299},[1086,6466,1403],{"class":1131},[1086,6468,1481],{"class":1299},[1086,6470,6471],{"class":1303},"scam",[1086,6473,1300],{"class":1299},[1086,6475,1403],{"class":1131},[1086,6477,1481],{"class":1299},[1086,6479,6480],{"class":1303},"fake",[1086,6482,1300],{"class":1299},[1086,6484,1309],{"class":1131},[1086,6486,6487,6490,6493,6495,6498,6501,6503,6505,6507,6509,6512,6515,6517,6520],{"class":1088,"line":3032},[1086,6488,6489],{"class":1099},"            if",[1086,6491,6492],{"class":2867}," any",[1086,6494,1132],{"class":1131},[1086,6496,6497],{"class":1162},"word ",[1086,6499,6500],{"class":1099},"in",[1086,6502,6446],{"class":1162},[1086,6504,1139],{"class":1131},[1086,6506,2956],{"class":1162},[1086,6508,2959],{"class":1131},[1086,6510,6511],{"class":1099}," for",[1086,6513,6514],{"class":1162}," word ",[1086,6516,6500],{"class":1099},[1086,6518,6519],{"class":1162}," inappropriate_words",[1086,6521,1145],{"class":1131},[1086,6523,6524,6527,6529,6531,6533,6536,6538],{"class":1088,"line":3046},[1086,6525,6526],{"class":1099},"                raise",[1086,6528,2696],{"class":1162},[1086,6530,1132],{"class":1131},[1086,6532,1300],{"class":1299},[1086,6534,6535],{"class":1303},"Bio contains inappropriate content.",[1086,6537,1300],{"class":1299},[1086,6539,1178],{"class":1131},[1086,6541,6542],{"class":1088,"line":3066},[1086,6543,2623],{"class":1103},[1086,6545,6546,6548],{"class":1088,"line":3091},[1086,6547,1368],{"class":1099},[1086,6549,3175],{"class":1103},[1030,6551,6553],{"id":6552},"dynamic-forms","Dynamic Forms",[1038,6555,6557],{"id":6556},"conditional-field-display","Conditional Field Display",[1076,6559,6561],{"className":1078,"code":6560,"language":1080,"meta":1081,"style":1081},"# forms.py\nfrom django import forms\n\nclass DynamicEventForm(forms.Form):\n    EVENT_TYPES = [\n        ('conference', 'Conference'),\n        ('workshop', 'Workshop'),\n        ('webinar', 'Webinar'),\n        ('meetup', 'Meetup'),\n    ]\n    \n    title = forms.CharField(max_length=200)\n    event_type = forms.ChoiceField(choices=EVENT_TYPES)\n    description = forms.CharField(widget=forms.Textarea)\n    start_date = forms.DateTimeField()\n    end_date = forms.DateTimeField()\n    \n    # Conditional fields\n    venue = forms.CharField(max_length=200, required=False)\n    capacity = forms.IntegerField(min_value=1, required=False)\n    webinar_link = forms.URLField(required=False)\n    registration_fee = forms.DecimalField(max_digits=8, decimal_places=2, required=False)\n    \n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        \n        # Add CSS classes for conditional display\n        self.fields['venue'].widget.attrs.update({'class': 'physical-event-field'})\n        self.fields['capacity'].widget.attrs.update({'class': 'physical-event-field'})\n        self.fields['webinar_link'].widget.attrs.update({'class': 'online-event-field'})\n    \n    def clean(self):\n        cleaned_data = super().clean()\n        event_type = cleaned_data.get('event_type')\n        venue = cleaned_data.get('venue')\n        webinar_link = cleaned_data.get('webinar_link')\n        \n        # Validate based on event type\n        if event_type in ['conference', 'workshop', 'meetup']:\n            if not venue:\n                raise ValidationError('Venue is required for physical events.')\n        \n        if event_type == 'webinar':\n            if not webinar_link:\n                raise ValidationError('Webinar link is required for online events.')\n        \n        # Validate date range\n        start_date = cleaned_data.get('start_date')\n        end_date = cleaned_data.get('end_date')\n        \n        if start_date and end_date and start_date >= end_date:\n            raise ValidationError('End date must be after start date.')\n        \n        return cleaned_data\n\n# JavaScript for dynamic field display\n\"\"\"\n\u003Cscript>\ndocument.addEventListener('DOMContentLoaded', function() {\n    const eventTypeField = document.getElementById('id_event_type');\n    const physicalFields = document.querySelectorAll('.physical-event-field');\n    const onlineFields = document.querySelectorAll('.online-event-field');\n    \n    function toggleFields() {\n        const eventType = eventTypeField.value;\n        \n        physicalFields.forEach(field => {\n            field.closest('.form-group').style.display = \n                ['conference', 'workshop', 'meetup'].includes(eventType) ? 'block' : 'none';\n        });\n        \n        onlineFields.forEach(field => {\n            field.closest('.form-group').style.display = \n                eventType === 'webinar' ? 'block' : 'none';\n        });\n    }\n    \n    eventTypeField.addEventListener('change', toggleFields);\n    toggleFields(); // Initial call\n});\n\u003C/script>\n\"\"\"\n",[1083,6562,6563,6567,6577,6581,6598,6607,6629,6651,6673,6695,6699,6703,6726,6750,6776,6791,6806,6810,6815,6846,6877,6900,6940,6944,6968,6990,6994,6999,7051,7098,7146,7150,7162,7176,7200,7223,7246,7250,7255,7290,7301,7318,7322,7339,7350,7367,7371,7376,7400,7424,7428,7452,7469,7473,7479,7483,7488,7492,7497,7502,7507,7512,7517,7521,7526,7531,7535,7540,7545,7550,7555,7559,7564,7568,7573,7577,7582,7586,7591,7596,7601,7606],{"__ignoreMap":1081},[1086,6564,6565],{"class":1088,"line":1089},[1086,6566,1093],{"class":1092},[1086,6568,6569,6571,6573,6575],{"class":1088,"line":1096},[1086,6570,1100],{"class":1099},[1086,6572,1104],{"class":1103},[1086,6574,1107],{"class":1099},[1086,6576,1110],{"class":1103},[1086,6578,6579],{"class":1088,"line":1113},[1086,6580,1117],{"emptyLinePlaceholder":1116},[1086,6582,6583,6585,6588,6590,6592,6594,6596],{"class":1088,"line":1120},[1086,6584,1124],{"class":1123},[1086,6586,6587],{"class":1127}," DynamicEventForm",[1086,6589,1132],{"class":1131},[1086,6591,1136],{"class":1135},[1086,6593,1139],{"class":1131},[1086,6595,1142],{"class":1135},[1086,6597,1145],{"class":1131},[1086,6599,6600,6603,6605],{"class":1088,"line":1148},[1086,6601,6602],{"class":1287},"    EVENT_TYPES",[1086,6604,4130],{"class":1131},[1086,6606,4133],{"class":1131},[1086,6608,6609,6611,6613,6616,6618,6620,6622,6625,6627],{"class":1088,"line":1181},[1086,6610,4138],{"class":1131},[1086,6612,1300],{"class":1299},[1086,6614,6615],{"class":1303},"conference",[1086,6617,1300],{"class":1299},[1086,6619,1403],{"class":1131},[1086,6621,1481],{"class":1299},[1086,6623,6624],{"class":1303},"Conference",[1086,6626,1300],{"class":1299},[1086,6628,4157],{"class":1131},[1086,6630,6631,6633,6635,6638,6640,6642,6644,6647,6649],{"class":1088,"line":1199},[1086,6632,4138],{"class":1131},[1086,6634,1300],{"class":1299},[1086,6636,6637],{"class":1303},"workshop",[1086,6639,1300],{"class":1299},[1086,6641,1403],{"class":1131},[1086,6643,1481],{"class":1299},[1086,6645,6646],{"class":1303},"Workshop",[1086,6648,1300],{"class":1299},[1086,6650,4157],{"class":1131},[1086,6652,6653,6655,6657,6660,6662,6664,6666,6669,6671],{"class":1088,"line":1224},[1086,6654,4138],{"class":1131},[1086,6656,1300],{"class":1299},[1086,6658,6659],{"class":1303},"webinar",[1086,6661,1300],{"class":1299},[1086,6663,1403],{"class":1131},[1086,6665,1481],{"class":1299},[1086,6667,6668],{"class":1303},"Webinar",[1086,6670,1300],{"class":1299},[1086,6672,4157],{"class":1131},[1086,6674,6675,6677,6679,6682,6684,6686,6688,6691,6693],{"class":1088,"line":1255},[1086,6676,4138],{"class":1131},[1086,6678,1300],{"class":1299},[1086,6680,6681],{"class":1303},"meetup",[1086,6683,1300],{"class":1299},[1086,6685,1403],{"class":1131},[1086,6687,1481],{"class":1299},[1086,6689,6690],{"class":1303},"Meetup",[1086,6692,1300],{"class":1299},[1086,6694,4157],{"class":1131},[1086,6696,6697],{"class":1088,"line":1261},[1086,6698,4228],{"class":1131},[1086,6700,6701],{"class":1088,"line":1279},[1086,6702,1258],{"class":1103},[1086,6704,6705,6708,6710,6712,6714,6716,6718,6720,6722,6724],{"class":1088,"line":1312},[1086,6706,6707],{"class":1103},"    title ",[1086,6709,1154],{"class":1131},[1086,6711,1157],{"class":1103},[1086,6713,1139],{"class":1131},[1086,6715,1163],{"class":1162},[1086,6717,1132],{"class":1131},[1086,6719,1169],{"class":1168},[1086,6721,1154],{"class":1131},[1086,6723,1219],{"class":1174},[1086,6725,1178],{"class":1131},[1086,6727,6728,6731,6733,6735,6737,6739,6741,6743,6745,6748],{"class":1088,"line":1341},[1086,6729,6730],{"class":1103},"    event_type ",[1086,6732,1154],{"class":1131},[1086,6734,1157],{"class":1103},[1086,6736,1139],{"class":1131},[1086,6738,4242],{"class":1162},[1086,6740,1132],{"class":1131},[1086,6742,4247],{"class":1168},[1086,6744,1154],{"class":1131},[1086,6746,6747],{"class":4252},"EVENT_TYPES",[1086,6749,1178],{"class":1131},[1086,6751,6752,6754,6756,6758,6760,6762,6764,6766,6768,6770,6772,6774],{"class":1088,"line":1365},[1086,6753,3792],{"class":1103},[1086,6755,1154],{"class":1131},[1086,6757,1157],{"class":1103},[1086,6759,1139],{"class":1131},[1086,6761,1163],{"class":1162},[1086,6763,1132],{"class":1131},[1086,6765,1240],{"class":1168},[1086,6767,1154],{"class":1131},[1086,6769,1136],{"class":1162},[1086,6771,1139],{"class":1131},[1086,6773,1250],{"class":1249},[1086,6775,1178],{"class":1131},[1086,6777,6778,6781,6783,6785,6787,6789],{"class":1088,"line":1374},[1086,6779,6780],{"class":1103},"    start_date ",[1086,6782,1154],{"class":1131},[1086,6784,1157],{"class":1103},[1086,6786,1139],{"class":1131},[1086,6788,4071],{"class":1162},[1086,6790,1196],{"class":1131},[1086,6792,6793,6796,6798,6800,6802,6804],{"class":1088,"line":1379},[1086,6794,6795],{"class":1103},"    end_date ",[1086,6797,1154],{"class":1131},[1086,6799,1157],{"class":1103},[1086,6801,1139],{"class":1131},[1086,6803,4071],{"class":1162},[1086,6805,1196],{"class":1131},[1086,6807,6808],{"class":1088,"line":1385},[1086,6809,1258],{"class":1103},[1086,6811,6812],{"class":1088,"line":1409},[1086,6813,6814],{"class":1092},"    # Conditional fields\n",[1086,6816,6817,6820,6822,6824,6826,6828,6830,6832,6834,6836,6838,6840,6842,6844],{"class":1088,"line":1426},[1086,6818,6819],{"class":1103},"    venue ",[1086,6821,1154],{"class":1131},[1086,6823,1157],{"class":1103},[1086,6825,1139],{"class":1131},[1086,6827,1163],{"class":1162},[1086,6829,1132],{"class":1131},[1086,6831,1169],{"class":1168},[1086,6833,1154],{"class":1131},[1086,6835,1219],{"class":1174},[1086,6837,1403],{"class":1131},[1086,6839,5666],{"class":1168},[1086,6841,1154],{"class":1131},[1086,6843,3882],{"class":2557},[1086,6845,1178],{"class":1131},[1086,6847,6848,6851,6853,6855,6857,6859,6861,6863,6865,6867,6869,6871,6873,6875],{"class":1088,"line":1442},[1086,6849,6850],{"class":1103},"    capacity ",[1086,6852,1154],{"class":1131},[1086,6854,1157],{"class":1103},[1086,6856,1139],{"class":1131},[1086,6858,2488],{"class":1162},[1086,6860,1132],{"class":1131},[1086,6862,3910],{"class":1168},[1086,6864,1154],{"class":1131},[1086,6866,4614],{"class":1174},[1086,6868,1403],{"class":1131},[1086,6870,5666],{"class":1168},[1086,6872,1154],{"class":1131},[1086,6874,3882],{"class":2557},[1086,6876,1178],{"class":1131},[1086,6878,6879,6882,6884,6886,6888,6890,6892,6894,6896,6898],{"class":1088,"line":1447},[1086,6880,6881],{"class":1103},"    webinar_link ",[1086,6883,1154],{"class":1131},[1086,6885,1157],{"class":1103},[1086,6887,1139],{"class":1131},[1086,6889,3872],{"class":1162},[1086,6891,1132],{"class":1131},[1086,6893,3877],{"class":1168},[1086,6895,1154],{"class":1131},[1086,6897,3882],{"class":2557},[1086,6899,1178],{"class":1131},[1086,6901,6902,6905,6907,6909,6911,6913,6915,6917,6919,6922,6924,6926,6928,6930,6932,6934,6936,6938],{"class":1088,"line":1464},[1086,6903,6904],{"class":1103},"    registration_fee ",[1086,6906,1154],{"class":1131},[1086,6908,1157],{"class":1103},[1086,6910,1139],{"class":1131},[1086,6912,3941],{"class":1162},[1086,6914,1132],{"class":1131},[1086,6916,3946],{"class":1168},[1086,6918,1154],{"class":1131},[1086,6920,6921],{"class":1174},"8",[1086,6923,1403],{"class":1131},[1086,6925,3956],{"class":1168},[1086,6927,1154],{"class":1131},[1086,6929,3961],{"class":1174},[1086,6931,1403],{"class":1131},[1086,6933,5666],{"class":1168},[1086,6935,1154],{"class":1131},[1086,6937,3882],{"class":2557},[1086,6939,1178],{"class":1131},[1086,6941,6942],{"class":1088,"line":1492},[1086,6943,1258],{"class":1103},[1086,6945,6946,6948,6950,6952,6954,6956,6958,6960,6962,6964,6966],{"class":1088,"line":1513},[1086,6947,1264],{"class":1123},[1086,6949,5042],{"class":2867},[1086,6951,1132],{"class":1131},[1086,6953,1274],{"class":1273},[1086,6955,1403],{"class":1131},[1086,6957,5705],{"class":1318},[1086,6959,5708],{"class":1458},[1086,6961,1403],{"class":1131},[1086,6963,5713],{"class":1318},[1086,6965,5716],{"class":1458},[1086,6967,1145],{"class":1131},[1086,6969,6970,6972,6974,6976,6978,6980,6982,6984,6986,6988],{"class":1088,"line":1529},[1086,6971,5106],{"class":3054},[1086,6973,3058],{"class":1131},[1086,6975,5111],{"class":2867},[1086,6977,1132],{"class":1131},[1086,6979,5763],{"class":1318},[1086,6981,5708],{"class":1162},[1086,6983,1403],{"class":1131},[1086,6985,5713],{"class":1318},[1086,6987,5716],{"class":1162},[1086,6989,1178],{"class":1131},[1086,6991,6992],{"class":1088,"line":1535},[1086,6993,2623],{"class":1103},[1086,6995,6996],{"class":1088,"line":1560},[1086,6997,6998],{"class":1092},"        # Add CSS classes for conditional display\n",[1086,7000,7001,7003,7005,7008,7010,7012,7015,7017,7020,7022,7024,7026,7028,7031,7034,7036,7038,7040,7042,7044,7047,7049],{"class":1088,"line":1584},[1086,7002,5078],{"class":1287},[1086,7004,1139],{"class":1131},[1086,7006,7007],{"class":1249},"fields",[1086,7009,1296],{"class":1131},[1086,7011,1300],{"class":1299},[1086,7013,7014],{"class":1303},"venue",[1086,7016,1300],{"class":1299},[1086,7018,7019],{"class":1131},"].",[1086,7021,1240],{"class":1249},[1086,7023,1139],{"class":1131},[1086,7025,3817],{"class":1249},[1086,7027,1139],{"class":1131},[1086,7029,7030],{"class":1162},"update",[1086,7032,7033],{"class":1131},"({",[1086,7035,1300],{"class":1299},[1086,7037,1124],{"class":1303},[1086,7039,1300],{"class":1299},[1086,7041,1780],{"class":1131},[1086,7043,1481],{"class":1299},[1086,7045,7046],{"class":1303},"physical-event-field",[1086,7048,1300],{"class":1299},[1086,7050,1785],{"class":1131},[1086,7052,7053,7055,7057,7059,7061,7063,7066,7068,7070,7072,7074,7076,7078,7080,7082,7084,7086,7088,7090,7092,7094,7096],{"class":1088,"line":1609},[1086,7054,5078],{"class":1287},[1086,7056,1139],{"class":1131},[1086,7058,7007],{"class":1249},[1086,7060,1296],{"class":1131},[1086,7062,1300],{"class":1299},[1086,7064,7065],{"class":1303},"capacity",[1086,7067,1300],{"class":1299},[1086,7069,7019],{"class":1131},[1086,7071,1240],{"class":1249},[1086,7073,1139],{"class":1131},[1086,7075,3817],{"class":1249},[1086,7077,1139],{"class":1131},[1086,7079,7030],{"class":1162},[1086,7081,7033],{"class":1131},[1086,7083,1300],{"class":1299},[1086,7085,1124],{"class":1303},[1086,7087,1300],{"class":1299},[1086,7089,1780],{"class":1131},[1086,7091,1481],{"class":1299},[1086,7093,7046],{"class":1303},[1086,7095,1300],{"class":1299},[1086,7097,1785],{"class":1131},[1086,7099,7100,7102,7104,7106,7108,7110,7113,7115,7117,7119,7121,7123,7125,7127,7129,7131,7133,7135,7137,7139,7142,7144],{"class":1088,"line":1634},[1086,7101,5078],{"class":1287},[1086,7103,1139],{"class":1131},[1086,7105,7007],{"class":1249},[1086,7107,1296],{"class":1131},[1086,7109,1300],{"class":1299},[1086,7111,7112],{"class":1303},"webinar_link",[1086,7114,1300],{"class":1299},[1086,7116,7019],{"class":1131},[1086,7118,1240],{"class":1249},[1086,7120,1139],{"class":1131},[1086,7122,3817],{"class":1249},[1086,7124,1139],{"class":1131},[1086,7126,7030],{"class":1162},[1086,7128,7033],{"class":1131},[1086,7130,1300],{"class":1299},[1086,7132,1124],{"class":1303},[1086,7134,1300],{"class":1299},[1086,7136,1780],{"class":1131},[1086,7138,1481],{"class":1299},[1086,7140,7141],{"class":1303},"online-event-field",[1086,7143,1300],{"class":1299},[1086,7145,1785],{"class":1131},[1086,7147,7148],{"class":1088,"line":1640},[1086,7149,1258],{"class":1103},[1086,7151,7152,7154,7156,7158,7160],{"class":1088,"line":1646},[1086,7153,1264],{"class":1123},[1086,7155,3037],{"class":1267},[1086,7157,1132],{"class":1131},[1086,7159,1274],{"class":1273},[1086,7161,1145],{"class":1131},[1086,7163,7164,7166,7168,7170,7172,7174],{"class":1088,"line":1672},[1086,7165,3049],{"class":1103},[1086,7167,1154],{"class":1131},[1086,7169,3055],{"class":3054},[1086,7171,3058],{"class":1131},[1086,7173,3061],{"class":1162},[1086,7175,1196],{"class":1131},[1086,7177,7178,7181,7183,7185,7187,7189,7191,7193,7196,7198],{"class":1088,"line":1677},[1086,7179,7180],{"class":1103},"        event_type ",[1086,7182,1154],{"class":1131},[1086,7184,3073],{"class":1103},[1086,7186,1139],{"class":1131},[1086,7188,3078],{"class":1162},[1086,7190,1132],{"class":1131},[1086,7192,1300],{"class":1299},[1086,7194,7195],{"class":1303},"event_type",[1086,7197,1300],{"class":1299},[1086,7199,1178],{"class":1131},[1086,7201,7202,7205,7207,7209,7211,7213,7215,7217,7219,7221],{"class":1088,"line":1703},[1086,7203,7204],{"class":1103},"        venue ",[1086,7206,1154],{"class":1131},[1086,7208,3073],{"class":1103},[1086,7210,1139],{"class":1131},[1086,7212,3078],{"class":1162},[1086,7214,1132],{"class":1131},[1086,7216,1300],{"class":1299},[1086,7218,7014],{"class":1303},[1086,7220,1300],{"class":1299},[1086,7222,1178],{"class":1131},[1086,7224,7225,7228,7230,7232,7234,7236,7238,7240,7242,7244],{"class":1088,"line":1723},[1086,7226,7227],{"class":1103},"        webinar_link ",[1086,7229,1154],{"class":1131},[1086,7231,3073],{"class":1103},[1086,7233,1139],{"class":1131},[1086,7235,3078],{"class":1162},[1086,7237,1132],{"class":1131},[1086,7239,1300],{"class":1299},[1086,7241,7112],{"class":1303},[1086,7243,1300],{"class":1299},[1086,7245,1178],{"class":1131},[1086,7247,7248],{"class":1088,"line":1731},[1086,7249,2623],{"class":1103},[1086,7251,7252],{"class":1088,"line":1742},[1086,7253,7254],{"class":1092},"        # Validate based on event type\n",[1086,7256,7257,7259,7262,7264,7266,7268,7270,7272,7274,7276,7278,7280,7282,7284,7286,7288],{"class":1088,"line":1747},[1086,7258,1315],{"class":1099},[1086,7260,7261],{"class":1103}," event_type ",[1086,7263,6500],{"class":1318},[1086,7265,2965],{"class":1131},[1086,7267,1300],{"class":1299},[1086,7269,6615],{"class":1303},[1086,7271,1300],{"class":1299},[1086,7273,1403],{"class":1131},[1086,7275,1481],{"class":1299},[1086,7277,6637],{"class":1303},[1086,7279,1300],{"class":1299},[1086,7281,1403],{"class":1131},[1086,7283,1481],{"class":1299},[1086,7285,6681],{"class":1303},[1086,7287,1300],{"class":1299},[1086,7289,2993],{"class":1131},[1086,7291,7292,7294,7296,7299],{"class":1088,"line":2691},[1086,7293,6489],{"class":1099},[1086,7295,1319],{"class":1318},[1086,7297,7298],{"class":1103}," venue",[1086,7300,1489],{"class":1131},[1086,7302,7303,7305,7307,7309,7311,7314,7316],{"class":1088,"line":2710},[1086,7304,6526],{"class":1099},[1086,7306,2696],{"class":1162},[1086,7308,1132],{"class":1131},[1086,7310,1300],{"class":1299},[1086,7312,7313],{"class":1303},"Venue is required for physical events.",[1086,7315,1300],{"class":1299},[1086,7317,1178],{"class":1131},[1086,7319,7320],{"class":1088,"line":2715},[1086,7321,2623],{"class":1103},[1086,7323,7324,7326,7328,7331,7333,7335,7337],{"class":1088,"line":2721},[1086,7325,1315],{"class":1099},[1086,7327,7261],{"class":1103},[1086,7329,7330],{"class":1318},"==",[1086,7332,1481],{"class":1299},[1086,7334,6659],{"class":1303},[1086,7336,1300],{"class":1299},[1086,7338,1489],{"class":1131},[1086,7340,7341,7343,7345,7348],{"class":1088,"line":2776},[1086,7342,6489],{"class":1099},[1086,7344,1319],{"class":1318},[1086,7346,7347],{"class":1103}," webinar_link",[1086,7349,1489],{"class":1131},[1086,7351,7352,7354,7356,7358,7360,7363,7365],{"class":1088,"line":2794},[1086,7353,6526],{"class":1099},[1086,7355,2696],{"class":1162},[1086,7357,1132],{"class":1131},[1086,7359,1300],{"class":1299},[1086,7361,7362],{"class":1303},"Webinar link is required for online events.",[1086,7364,1300],{"class":1299},[1086,7366,1178],{"class":1131},[1086,7368,7369],{"class":1088,"line":2799},[1086,7370,2623],{"class":1103},[1086,7372,7373],{"class":1088,"line":2807},[1086,7374,7375],{"class":1092},"        # Validate date range\n",[1086,7377,7378,7381,7383,7385,7387,7389,7391,7393,7396,7398],{"class":1088,"line":2812},[1086,7379,7380],{"class":1103},"        start_date ",[1086,7382,1154],{"class":1131},[1086,7384,3073],{"class":1103},[1086,7386,1139],{"class":1131},[1086,7388,3078],{"class":1162},[1086,7390,1132],{"class":1131},[1086,7392,1300],{"class":1299},[1086,7394,7395],{"class":1303},"start_date",[1086,7397,1300],{"class":1299},[1086,7399,1178],{"class":1131},[1086,7401,7402,7405,7407,7409,7411,7413,7415,7417,7420,7422],{"class":1088,"line":2826},[1086,7403,7404],{"class":1103},"        end_date ",[1086,7406,1154],{"class":1131},[1086,7408,3073],{"class":1103},[1086,7410,1139],{"class":1131},[1086,7412,3078],{"class":1162},[1086,7414,1132],{"class":1131},[1086,7416,1300],{"class":1299},[1086,7418,7419],{"class":1303},"end_date",[1086,7421,1300],{"class":1299},[1086,7423,1178],{"class":1131},[1086,7425,7426],{"class":1088,"line":2851},[1086,7427,2623],{"class":1103},[1086,7429,7430,7432,7435,7437,7440,7442,7444,7447,7450],{"class":1088,"line":2856},[1086,7431,1315],{"class":1099},[1086,7433,7434],{"class":1103}," start_date ",[1086,7436,3129],{"class":1318},[1086,7438,7439],{"class":1103}," end_date ",[1086,7441,3129],{"class":1318},[1086,7443,7434],{"class":1103},[1086,7445,7446],{"class":1318},">=",[1086,7448,7449],{"class":1103}," end_date",[1086,7451,1489],{"class":1131},[1086,7453,7454,7456,7458,7460,7462,7465,7467],{"class":1088,"line":2862},[1086,7455,1344],{"class":1099},[1086,7457,2696],{"class":1162},[1086,7459,1132],{"class":1131},[1086,7461,1300],{"class":1299},[1086,7463,7464],{"class":1303},"End date must be after start date.",[1086,7466,1300],{"class":1299},[1086,7468,1178],{"class":1131},[1086,7470,7471],{"class":1088,"line":2886},[1086,7472,2623],{"class":1103},[1086,7474,7475,7477],{"class":1088,"line":2904},[1086,7476,1368],{"class":1099},[1086,7478,3175],{"class":1103},[1086,7480,7481],{"class":1088,"line":2909},[1086,7482,1117],{"emptyLinePlaceholder":1116},[1086,7484,7485],{"class":1088,"line":2924},[1086,7486,7487],{"class":1092},"# JavaScript for dynamic field display\n",[1086,7489,7490],{"class":1088,"line":2942},[1086,7491,4798],{"class":4790},[1086,7493,7494],{"class":1088,"line":2947},[1086,7495,7496],{"class":4794},"\u003Cscript>\n",[1086,7498,7499],{"class":1088,"line":2996},[1086,7500,7501],{"class":4794},"document.addEventListener('DOMContentLoaded', function() {\n",[1086,7503,7504],{"class":1088,"line":3014},[1086,7505,7506],{"class":4794},"    const eventTypeField = document.getElementById('id_event_type');\n",[1086,7508,7509],{"class":1088,"line":3019},[1086,7510,7511],{"class":4794},"    const physicalFields = document.querySelectorAll('.physical-event-field');\n",[1086,7513,7514],{"class":1088,"line":3027},[1086,7515,7516],{"class":4794},"    const onlineFields = document.querySelectorAll('.online-event-field');\n",[1086,7518,7519],{"class":1088,"line":3032},[1086,7520,1258],{"class":4794},[1086,7522,7523],{"class":1088,"line":3046},[1086,7524,7525],{"class":4794},"    function toggleFields() {\n",[1086,7527,7528],{"class":1088,"line":3066},[1086,7529,7530],{"class":4794},"        const eventType = eventTypeField.value;\n",[1086,7532,7533],{"class":1088,"line":3091},[1086,7534,2623],{"class":4794},[1086,7536,7537],{"class":1088,"line":3116},[1086,7538,7539],{"class":4794},"        physicalFields.forEach(field => {\n",[1086,7541,7542],{"class":1088,"line":3121},[1086,7543,7544],{"class":4794},"            field.closest('.form-group').style.display = \n",[1086,7546,7547],{"class":1088,"line":3147},[1086,7548,7549],{"class":4794},"                ['conference', 'workshop', 'meetup'].includes(eventType) ? 'block' : 'none';\n",[1086,7551,7552],{"class":1088,"line":3165},[1086,7553,7554],{"class":4794},"        });\n",[1086,7556,7557],{"class":1088,"line":3170},[1086,7558,2623],{"class":4794},[1086,7560,7561],{"class":1088,"line":3178},[1086,7562,7563],{"class":4794},"        onlineFields.forEach(field => {\n",[1086,7565,7566],{"class":1088,"line":3183},[1086,7567,7544],{"class":4794},[1086,7569,7570],{"class":1088,"line":3188},[1086,7571,7572],{"class":4794},"                eventType === 'webinar' ? 'block' : 'none';\n",[1086,7574,7575],{"class":1088,"line":3207},[1086,7576,7554],{"class":4794},[1086,7578,7579],{"class":1088,"line":3230},[1086,7580,7581],{"class":4794},"    }\n",[1086,7583,7584],{"class":1088,"line":3251},[1086,7585,1258],{"class":4794},[1086,7587,7588],{"class":1088,"line":3266},[1086,7589,7590],{"class":4794},"    eventTypeField.addEventListener('change', toggleFields);\n",[1086,7592,7593],{"class":1088,"line":3280},[1086,7594,7595],{"class":4794},"    toggleFields(); // Initial call\n",[1086,7597,7598],{"class":1088,"line":3285},[1086,7599,7600],{"class":4794},"});\n",[1086,7602,7603],{"class":1088,"line":3299},[1086,7604,7605],{"class":4794},"\u003C/script>\n",[1086,7607,7608],{"class":1088,"line":3320},[1086,7609,4798],{"class":4790},[1030,7611,7613],{"id":7612},"form-security-best-practices","Form Security Best Practices",[1038,7615,7617],{"id":7616},"csrf-protection-and-input-sanitization","CSRF Protection and Input Sanitization",[1076,7619,7621],{"className":1078,"code":7620,"language":1080,"meta":1081,"style":1081},"# forms.py\nfrom django import forms\nfrom django.utils.html import strip_tags\nfrom django.core.exceptions import ValidationError\nimport bleach\n\nclass SecureCommentForm(forms.Form):\n    name = forms.CharField(max_length=100)\n    email = forms.EmailField()\n    comment = forms.CharField(widget=forms.Textarea)\n    \n    def clean_name(self):\n        \"\"\"Sanitize name input\"\"\"\n        name = self.cleaned_data['name']\n        \n        # Strip HTML tags\n        name = strip_tags(name)\n        \n        # Remove excessive whitespace\n        name = ' '.join(name.split())\n        \n        # Check for minimum length\n        if len(name) \u003C 2:\n            raise ValidationError('Name must be at least 2 characters long.')\n        \n        return name\n    \n    def clean_comment(self):\n        \"\"\"Sanitize comment with allowed HTML\"\"\"\n        comment = self.cleaned_data['comment']\n        \n        # Allow only safe HTML tags\n        allowed_tags = ['p', 'br', 'strong', 'em', 'u', 'ol', 'ul', 'li']\n        allowed_attributes = {}\n        \n        # Clean the HTML\n        clean_comment = bleach.clean(\n            comment,\n            tags=allowed_tags,\n            attributes=allowed_attributes,\n            strip=True\n        )\n        \n        # Check for minimum content\n        if len(strip_tags(clean_comment)) \u003C 10:\n            raise ValidationError('Comment must be at least 10 characters long.')\n        \n        return clean_comment\n\n# views.py with additional security\nfrom django.views.decorators.csrf import csrf_protect\nfrom django.views.decorators.cache import never_cache\nfrom django.utils.decorators import method_decorator\n\n@method_decorator([csrf_protect, never_cache], name='dispatch')\nclass SecureCommentView(View):\n    def post(self, request):\n        form = SecureCommentForm(request.POST)\n        \n        if form.is_valid():\n            # Additional security checks\n            if self.is_spam(form.cleaned_data):\n                return JsonResponse({'error': 'Spam detected'}, status=400)\n            \n            # Rate limiting check\n            if self.is_rate_limited(request):\n                return JsonResponse({'error': 'Rate limit exceeded'}, status=429)\n            \n            # Save comment\n            self.save_comment(form.cleaned_data, request)\n            \n            return JsonResponse({'success': True})\n        \n        return JsonResponse({'errors': form.errors}, status=400)\n    \n    def is_spam(self, data):\n        \"\"\"Simple spam detection\"\"\"\n        spam_keywords = ['viagra', 'casino', 'lottery', 'winner']\n        comment_lower = data['comment'].lower()\n        return any(keyword in comment_lower for keyword in spam_keywords)\n    \n    def is_rate_limited(self, request):\n        \"\"\"Check rate limiting\"\"\"\n        from django.core.cache import cache\n        \n        ip = self.get_client_ip(request)\n        cache_key = f'comment_rate_limit_{ip}'\n        \n        current_count = cache.get(cache_key, 0)\n        if current_count >= 5:  # 5 comments per hour\n            return True\n        \n        cache.set(cache_key, current_count + 1, 3600)  # 1 hour\n        return False\n",[1083,7622,7623,7627,7637,7656,7674,7681,7685,7702,7724,7738,7765,7769,7782,7791,7814,7818,7823,7838,7842,7847,7872,7876,7881,7900,7917,7921,7928,7932,7945,7954,7978,7982,7987,8065,8075,8079,8084,8100,8107,8119,8131,8141,8145,8149,8154,8180,8197,8201,8208,8212,8217,8243,8267,8287,8291,8325,8339,8356,8374,8378,8390,8395,8416,8454,8458,8463,8480,8514,8518,8523,8547,8551,8572,8576,8609,8613,8631,8640,8685,8708,8737,8741,8758,8767,8786,8790,8810,8832,8836,8862,8879,8886,8890,8923],{"__ignoreMap":1081},[1086,7624,7625],{"class":1088,"line":1089},[1086,7626,1093],{"class":1092},[1086,7628,7629,7631,7633,7635],{"class":1088,"line":1096},[1086,7630,1100],{"class":1099},[1086,7632,1104],{"class":1103},[1086,7634,1107],{"class":1099},[1086,7636,1110],{"class":1103},[1086,7638,7639,7641,7643,7645,7647,7649,7651,7653],{"class":1088,"line":1113},[1086,7640,1100],{"class":1099},[1086,7642,1390],{"class":1103},[1086,7644,1139],{"class":1131},[1086,7646,4992],{"class":1103},[1086,7648,1139],{"class":1131},[1086,7650,4762],{"class":1103},[1086,7652,1107],{"class":1099},[1086,7654,7655],{"class":1103}," strip_tags\n",[1086,7657,7658,7660,7662,7664,7666,7668,7670,7672],{"class":1088,"line":1120},[1086,7659,1100],{"class":1099},[1086,7661,1390],{"class":1103},[1086,7663,1139],{"class":1131},[1086,7665,2225],{"class":1103},[1086,7667,1139],{"class":1131},[1086,7669,2230],{"class":1103},[1086,7671,1107],{"class":1099},[1086,7673,2235],{"class":1103},[1086,7675,7676,7678],{"class":1088,"line":1148},[1086,7677,1107],{"class":1099},[1086,7679,7680],{"class":1103}," bleach\n",[1086,7682,7683],{"class":1088,"line":1181},[1086,7684,1117],{"emptyLinePlaceholder":1116},[1086,7686,7687,7689,7692,7694,7696,7698,7700],{"class":1088,"line":1199},[1086,7688,1124],{"class":1123},[1086,7690,7691],{"class":1127}," SecureCommentForm",[1086,7693,1132],{"class":1131},[1086,7695,1136],{"class":1135},[1086,7697,1139],{"class":1131},[1086,7699,1142],{"class":1135},[1086,7701,1145],{"class":1131},[1086,7703,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722],{"class":1088,"line":1224},[1086,7705,1151],{"class":1103},[1086,7707,1154],{"class":1131},[1086,7709,1157],{"class":1103},[1086,7711,1139],{"class":1131},[1086,7713,1163],{"class":1162},[1086,7715,1132],{"class":1131},[1086,7717,1169],{"class":1168},[1086,7719,1154],{"class":1131},[1086,7721,1175],{"class":1174},[1086,7723,1178],{"class":1131},[1086,7725,7726,7728,7730,7732,7734,7736],{"class":1088,"line":1255},[1086,7727,1184],{"class":1103},[1086,7729,1154],{"class":1131},[1086,7731,1157],{"class":1103},[1086,7733,1139],{"class":1131},[1086,7735,1193],{"class":1162},[1086,7737,1196],{"class":1131},[1086,7739,7740,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763],{"class":1088,"line":1261},[1086,7741,7742],{"class":1103},"    comment ",[1086,7744,1154],{"class":1131},[1086,7746,1157],{"class":1103},[1086,7748,1139],{"class":1131},[1086,7750,1163],{"class":1162},[1086,7752,1132],{"class":1131},[1086,7754,1240],{"class":1168},[1086,7756,1154],{"class":1131},[1086,7758,1136],{"class":1162},[1086,7760,1139],{"class":1131},[1086,7762,1250],{"class":1249},[1086,7764,1178],{"class":1131},[1086,7766,7767],{"class":1088,"line":1279},[1086,7768,1258],{"class":1103},[1086,7770,7771,7773,7776,7778,7780],{"class":1088,"line":1312},[1086,7772,1264],{"class":1123},[1086,7774,7775],{"class":1267}," clean_name",[1086,7777,1132],{"class":1131},[1086,7779,1274],{"class":1273},[1086,7781,1145],{"class":1131},[1086,7783,7784,7786,7789],{"class":1088,"line":1341},[1086,7785,5794],{"class":4790},[1086,7787,7788],{"class":4794},"Sanitize name input",[1086,7790,4798],{"class":4790},[1086,7792,7793,7796,7798,7800,7802,7804,7806,7808,7810,7812],{"class":1088,"line":1365},[1086,7794,7795],{"class":1103},"        name ",[1086,7797,1154],{"class":1131},[1086,7799,1288],{"class":1287},[1086,7801,1139],{"class":1131},[1086,7803,1293],{"class":1249},[1086,7805,1296],{"class":1131},[1086,7807,1300],{"class":1299},[1086,7809,1553],{"class":1303},[1086,7811,1300],{"class":1299},[1086,7813,1309],{"class":1131},[1086,7815,7816],{"class":1088,"line":1374},[1086,7817,2623],{"class":1103},[1086,7819,7820],{"class":1088,"line":1379},[1086,7821,7822],{"class":1092},"        # Strip HTML tags\n",[1086,7824,7825,7827,7829,7832,7834,7836],{"class":1088,"line":1385},[1086,7826,7795],{"class":1103},[1086,7828,1154],{"class":1131},[1086,7830,7831],{"class":1162}," strip_tags",[1086,7833,1132],{"class":1131},[1086,7835,1553],{"class":1162},[1086,7837,1178],{"class":1131},[1086,7839,7840],{"class":1088,"line":1409},[1086,7841,2623],{"class":1103},[1086,7843,7844],{"class":1088,"line":1426},[1086,7845,7846],{"class":1092},"        # Remove excessive whitespace\n",[1086,7848,7849,7851,7853,7855,7857,7859,7862,7864,7866,7868,7870],{"class":1088,"line":1442},[1086,7850,7795],{"class":1103},[1086,7852,1154],{"class":1131},[1086,7854,1481],{"class":1299},[1086,7856,1481],{"class":1299},[1086,7858,1139],{"class":1131},[1086,7860,7861],{"class":1162},"join",[1086,7863,1132],{"class":1131},[1086,7865,1553],{"class":1162},[1086,7867,1139],{"class":1131},[1086,7869,5956],{"class":1162},[1086,7871,5442],{"class":1131},[1086,7873,7874],{"class":1088,"line":1447},[1086,7875,2623],{"class":1103},[1086,7877,7878],{"class":1088,"line":1464},[1086,7879,7880],{"class":1092},"        # Check for minimum length\n",[1086,7882,7883,7885,7887,7889,7891,7893,7895,7898],{"class":1088,"line":1492},[1086,7884,1315],{"class":1099},[1086,7886,2868],{"class":2867},[1086,7888,1132],{"class":1131},[1086,7890,1553],{"class":1162},[1086,7892,2875],{"class":1131},[1086,7894,2878],{"class":1318},[1086,7896,7897],{"class":1174}," 2",[1086,7899,1489],{"class":1131},[1086,7901,7902,7904,7906,7908,7910,7913,7915],{"class":1088,"line":1513},[1086,7903,1344],{"class":1099},[1086,7905,2696],{"class":1162},[1086,7907,1132],{"class":1131},[1086,7909,1300],{"class":1299},[1086,7911,7912],{"class":1303},"Name must be at least 2 characters long.",[1086,7914,1300],{"class":1299},[1086,7916,1178],{"class":1131},[1086,7918,7919],{"class":1088,"line":1529},[1086,7920,2623],{"class":1103},[1086,7922,7923,7925],{"class":1088,"line":1535},[1086,7924,1368],{"class":1099},[1086,7926,7927],{"class":1103}," name\n",[1086,7929,7930],{"class":1088,"line":1560},[1086,7931,1258],{"class":1103},[1086,7933,7934,7936,7939,7941,7943],{"class":1088,"line":1584},[1086,7935,1264],{"class":1123},[1086,7937,7938],{"class":1267}," clean_comment",[1086,7940,1132],{"class":1131},[1086,7942,1274],{"class":1273},[1086,7944,1145],{"class":1131},[1086,7946,7947,7949,7952],{"class":1088,"line":1609},[1086,7948,5794],{"class":4790},[1086,7950,7951],{"class":4794},"Sanitize comment with allowed HTML",[1086,7953,4798],{"class":4790},[1086,7955,7956,7959,7961,7963,7965,7967,7969,7971,7974,7976],{"class":1088,"line":1634},[1086,7957,7958],{"class":1103},"        comment ",[1086,7960,1154],{"class":1131},[1086,7962,1288],{"class":1287},[1086,7964,1139],{"class":1131},[1086,7966,1293],{"class":1249},[1086,7968,1296],{"class":1131},[1086,7970,1300],{"class":1299},[1086,7972,7973],{"class":1303},"comment",[1086,7975,1300],{"class":1299},[1086,7977,1309],{"class":1131},[1086,7979,7980],{"class":1088,"line":1640},[1086,7981,2623],{"class":1103},[1086,7983,7984],{"class":1088,"line":1646},[1086,7985,7986],{"class":1092},"        # Allow only safe HTML tags\n",[1086,7988,7989,7992,7994,7996,7998,8000,8002,8004,8006,8008,8010,8012,8014,8016,8018,8020,8022,8025,8027,8029,8031,8034,8036,8038,8040,8043,8045,8047,8049,8052,8054,8056,8058,8061,8063],{"class":1088,"line":1672},[1086,7990,7991],{"class":1103},"        allowed_tags ",[1086,7993,1154],{"class":1131},[1086,7995,2965],{"class":1131},[1086,7997,1300],{"class":1299},[1086,7999,1026],{"class":1303},[1086,8001,1300],{"class":1299},[1086,8003,1403],{"class":1131},[1086,8005,1481],{"class":1299},[1086,8007,1053],{"class":1303},[1086,8009,1300],{"class":1299},[1086,8011,1403],{"class":1131},[1086,8013,1481],{"class":1299},[1086,8015,1045],{"class":1303},[1086,8017,1300],{"class":1299},[1086,8019,1403],{"class":1131},[1086,8021,1481],{"class":1299},[1086,8023,8024],{"class":1303},"em",[1086,8026,1300],{"class":1299},[1086,8028,1403],{"class":1131},[1086,8030,1481],{"class":1299},[1086,8032,8033],{"class":1303},"u",[1086,8035,1300],{"class":1299},[1086,8037,1403],{"class":1131},[1086,8039,1481],{"class":1299},[1086,8041,8042],{"class":1303},"ol",[1086,8044,1300],{"class":1299},[1086,8046,1403],{"class":1131},[1086,8048,1481],{"class":1299},[1086,8050,8051],{"class":1303},"ul",[1086,8053,1300],{"class":1299},[1086,8055,1403],{"class":1131},[1086,8057,1481],{"class":1299},[1086,8059,8060],{"class":1303},"li",[1086,8062,1300],{"class":1299},[1086,8064,1309],{"class":1131},[1086,8066,8067,8070,8072],{"class":1088,"line":1677},[1086,8068,8069],{"class":1103},"        allowed_attributes ",[1086,8071,1154],{"class":1131},[1086,8073,8074],{"class":1131}," {}\n",[1086,8076,8077],{"class":1088,"line":1703},[1086,8078,2623],{"class":1103},[1086,8080,8081],{"class":1088,"line":1723},[1086,8082,8083],{"class":1092},"        # Clean the HTML\n",[1086,8085,8086,8089,8091,8094,8096,8098],{"class":1088,"line":1731},[1086,8087,8088],{"class":1103},"        clean_comment ",[1086,8090,1154],{"class":1131},[1086,8092,8093],{"class":1103}," bleach",[1086,8095,1139],{"class":1131},[1086,8097,3061],{"class":1162},[1086,8099,2279],{"class":1131},[1086,8101,8102,8105],{"class":1088,"line":1742},[1086,8103,8104],{"class":1162},"            comment",[1086,8106,2292],{"class":1131},[1086,8108,8109,8112,8114,8117],{"class":1088,"line":1747},[1086,8110,8111],{"class":1168},"            tags",[1086,8113,1154],{"class":1131},[1086,8115,8116],{"class":1162},"allowed_tags",[1086,8118,2292],{"class":1131},[1086,8120,8121,8124,8126,8129],{"class":1088,"line":2691},[1086,8122,8123],{"class":1168},"            attributes",[1086,8125,1154],{"class":1131},[1086,8127,8128],{"class":1162},"allowed_attributes",[1086,8130,2292],{"class":1131},[1086,8132,8133,8136,8138],{"class":1088,"line":2710},[1086,8134,8135],{"class":1168},"            strip",[1086,8137,1154],{"class":1131},[1086,8139,8140],{"class":2557},"True\n",[1086,8142,8143],{"class":1088,"line":2715},[1086,8144,5369],{"class":1131},[1086,8146,8147],{"class":1088,"line":2721},[1086,8148,2623],{"class":1103},[1086,8150,8151],{"class":1088,"line":2776},[1086,8152,8153],{"class":1092},"        # Check for minimum content\n",[1086,8155,8156,8158,8160,8162,8165,8167,8170,8173,8175,8178],{"class":1088,"line":2794},[1086,8157,1315],{"class":1099},[1086,8159,2868],{"class":2867},[1086,8161,1132],{"class":1131},[1086,8163,8164],{"class":1162},"strip_tags",[1086,8166,1132],{"class":1131},[1086,8168,8169],{"class":1162},"clean_comment",[1086,8171,8172],{"class":1131},"))",[1086,8174,2878],{"class":1318},[1086,8176,8177],{"class":1174}," 10",[1086,8179,1489],{"class":1131},[1086,8181,8182,8184,8186,8188,8190,8193,8195],{"class":1088,"line":2799},[1086,8183,1344],{"class":1099},[1086,8185,2696],{"class":1162},[1086,8187,1132],{"class":1131},[1086,8189,1300],{"class":1299},[1086,8191,8192],{"class":1303},"Comment must be at least 10 characters long.",[1086,8194,1300],{"class":1299},[1086,8196,1178],{"class":1131},[1086,8198,8199],{"class":1088,"line":2807},[1086,8200,2623],{"class":1103},[1086,8202,8203,8205],{"class":1088,"line":2812},[1086,8204,1368],{"class":1099},[1086,8206,8207],{"class":1103}," clean_comment\n",[1086,8209,8210],{"class":1088,"line":2826},[1086,8211,1117],{"emptyLinePlaceholder":1116},[1086,8213,8214],{"class":1088,"line":2851},[1086,8215,8216],{"class":1092},"# views.py with additional security\n",[1086,8218,8219,8221,8223,8225,8228,8230,8233,8235,8238,8240],{"class":1088,"line":2856},[1086,8220,1100],{"class":1099},[1086,8222,1390],{"class":1103},[1086,8224,1139],{"class":1131},[1086,8226,8227],{"class":1103},"views",[1086,8229,1139],{"class":1131},[1086,8231,8232],{"class":1103},"decorators",[1086,8234,1139],{"class":1131},[1086,8236,8237],{"class":1103},"csrf ",[1086,8239,1107],{"class":1099},[1086,8241,8242],{"class":1103}," csrf_protect\n",[1086,8244,8245,8247,8249,8251,8253,8255,8257,8259,8262,8264],{"class":1088,"line":2862},[1086,8246,1100],{"class":1099},[1086,8248,1390],{"class":1103},[1086,8250,1139],{"class":1131},[1086,8252,8227],{"class":1103},[1086,8254,1139],{"class":1131},[1086,8256,8232],{"class":1103},[1086,8258,1139],{"class":1131},[1086,8260,8261],{"class":1103},"cache ",[1086,8263,1107],{"class":1099},[1086,8265,8266],{"class":1103}," never_cache\n",[1086,8268,8269,8271,8273,8275,8277,8279,8282,8284],{"class":1088,"line":2886},[1086,8270,1100],{"class":1099},[1086,8272,1390],{"class":1103},[1086,8274,1139],{"class":1131},[1086,8276,4992],{"class":1103},[1086,8278,1139],{"class":1131},[1086,8280,8281],{"class":1103},"decorators ",[1086,8283,1107],{"class":1099},[1086,8285,8286],{"class":1103}," method_decorator\n",[1086,8288,8289],{"class":1088,"line":2904},[1086,8290,1117],{"emptyLinePlaceholder":1116},[1086,8292,8293,8295,8298,8301,8304,8306,8309,8312,8314,8316,8318,8321,8323],{"class":1088,"line":2909},[1086,8294,5963],{"class":1131},[1086,8296,8297],{"class":1267},"method_decorator",[1086,8299,8300],{"class":1131},"([",[1086,8302,8303],{"class":1162},"csrf_protect",[1086,8305,1403],{"class":1131},[1086,8307,8308],{"class":1162}," never_cache",[1086,8310,8311],{"class":1131},"],",[1086,8313,4817],{"class":1168},[1086,8315,1154],{"class":1131},[1086,8317,1300],{"class":1299},[1086,8319,8320],{"class":1303},"dispatch",[1086,8322,1300],{"class":1299},[1086,8324,1178],{"class":1131},[1086,8326,8327,8329,8332,8334,8337],{"class":1088,"line":2924},[1086,8328,1124],{"class":1123},[1086,8330,8331],{"class":1127}," SecureCommentView",[1086,8333,1132],{"class":1131},[1086,8335,8336],{"class":1135},"View",[1086,8338,1145],{"class":1131},[1086,8340,8341,8343,8346,8348,8350,8352,8354],{"class":1088,"line":2942},[1086,8342,1264],{"class":1123},[1086,8344,8345],{"class":1267}," post",[1086,8347,1132],{"class":1131},[1086,8349,1274],{"class":1273},[1086,8351,1403],{"class":1131},[1086,8353,1470],{"class":1458},[1086,8355,1145],{"class":1131},[1086,8357,8358,8360,8362,8364,8366,8368,8370,8372],{"class":1088,"line":2947},[1086,8359,1495],{"class":1103},[1086,8361,1154],{"class":1131},[1086,8363,7691],{"class":1162},[1086,8365,1132],{"class":1131},[1086,8367,1459],{"class":1162},[1086,8369,1139],{"class":1131},[1086,8371,1484],{"class":1508},[1086,8373,1178],{"class":1131},[1086,8375,8376],{"class":1088,"line":2996},[1086,8377,2623],{"class":1103},[1086,8379,8380,8382,8384,8386,8388],{"class":1088,"line":3014},[1086,8381,1315],{"class":1099},[1086,8383,1518],{"class":1103},[1086,8385,1139],{"class":1131},[1086,8387,1523],{"class":1162},[1086,8389,1526],{"class":1131},[1086,8391,8392],{"class":1088,"line":3019},[1086,8393,8394],{"class":1092},"            # Additional security checks\n",[1086,8396,8397,8399,8401,8403,8406,8408,8410,8412,8414],{"class":1088,"line":3027},[1086,8398,6489],{"class":1099},[1086,8400,1288],{"class":1287},[1086,8402,1139],{"class":1131},[1086,8404,8405],{"class":1162},"is_spam",[1086,8407,1132],{"class":1131},[1086,8409,1775],{"class":1162},[1086,8411,1139],{"class":1131},[1086,8413,1293],{"class":1249},[1086,8415,1145],{"class":1131},[1086,8417,8418,8421,8424,8426,8428,8430,8432,8434,8436,8439,8441,8444,8447,8449,8452],{"class":1088,"line":3032},[1086,8419,8420],{"class":1099},"                return",[1086,8422,8423],{"class":1162}," JsonResponse",[1086,8425,7033],{"class":1131},[1086,8427,1300],{"class":1299},[1086,8429,1888],{"class":1303},[1086,8431,1300],{"class":1299},[1086,8433,1780],{"class":1131},[1086,8435,1481],{"class":1299},[1086,8437,8438],{"class":1303},"Spam detected",[1086,8440,1300],{"class":1299},[1086,8442,8443],{"class":1131},"},",[1086,8445,8446],{"class":1168}," status",[1086,8448,1154],{"class":1131},[1086,8450,8451],{"class":1174},"400",[1086,8453,1178],{"class":1131},[1086,8455,8456],{"class":1088,"line":3046},[1086,8457,1637],{"class":1103},[1086,8459,8460],{"class":1088,"line":3066},[1086,8461,8462],{"class":1092},"            # Rate limiting check\n",[1086,8464,8465,8467,8469,8471,8474,8476,8478],{"class":1088,"line":3091},[1086,8466,6489],{"class":1099},[1086,8468,1288],{"class":1287},[1086,8470,1139],{"class":1131},[1086,8472,8473],{"class":1162},"is_rate_limited",[1086,8475,1132],{"class":1131},[1086,8477,1459],{"class":1162},[1086,8479,1145],{"class":1131},[1086,8481,8482,8484,8486,8488,8490,8492,8494,8496,8498,8501,8503,8505,8507,8509,8512],{"class":1088,"line":3116},[1086,8483,8420],{"class":1099},[1086,8485,8423],{"class":1162},[1086,8487,7033],{"class":1131},[1086,8489,1300],{"class":1299},[1086,8491,1888],{"class":1303},[1086,8493,1300],{"class":1299},[1086,8495,1780],{"class":1131},[1086,8497,1481],{"class":1299},[1086,8499,8500],{"class":1303},"Rate limit exceeded",[1086,8502,1300],{"class":1299},[1086,8504,8443],{"class":1131},[1086,8506,8446],{"class":1168},[1086,8508,1154],{"class":1131},[1086,8510,8511],{"class":1174},"429",[1086,8513,1178],{"class":1131},[1086,8515,8516],{"class":1088,"line":3121},[1086,8517,1637],{"class":1103},[1086,8519,8520],{"class":1088,"line":3147},[1086,8521,8522],{"class":1092},"            # Save comment\n",[1086,8524,8525,8528,8530,8533,8535,8537,8539,8541,8543,8545],{"class":1088,"line":3165},[1086,8526,8527],{"class":1287},"            self",[1086,8529,1139],{"class":1131},[1086,8531,8532],{"class":1162},"save_comment",[1086,8534,1132],{"class":1131},[1086,8536,1775],{"class":1162},[1086,8538,1139],{"class":1131},[1086,8540,1293],{"class":1249},[1086,8542,1403],{"class":1131},[1086,8544,1470],{"class":1162},[1086,8546,1178],{"class":1131},[1086,8548,8549],{"class":1088,"line":3170},[1086,8550,1637],{"class":1103},[1086,8552,8553,8555,8557,8559,8561,8563,8565,8567,8570],{"class":1088,"line":3178},[1086,8554,1706],{"class":1099},[1086,8556,8423],{"class":1162},[1086,8558,7033],{"class":1131},[1086,8560,1300],{"class":1299},[1086,8562,1685],{"class":1303},[1086,8564,1300],{"class":1299},[1086,8566,1780],{"class":1131},[1086,8568,8569],{"class":2557}," True",[1086,8571,1785],{"class":1131},[1086,8573,8574],{"class":1088,"line":3183},[1086,8575,2623],{"class":1103},[1086,8577,8578,8580,8582,8584,8586,8589,8591,8593,8595,8597,8599,8601,8603,8605,8607],{"class":1088,"line":3188},[1086,8579,1368],{"class":1099},[1086,8581,8423],{"class":1162},[1086,8583,7033],{"class":1131},[1086,8585,1300],{"class":1299},[1086,8587,8588],{"class":1303},"errors",[1086,8590,1300],{"class":1299},[1086,8592,1780],{"class":1131},[1086,8594,1518],{"class":1162},[1086,8596,1139],{"class":1131},[1086,8598,8588],{"class":1249},[1086,8600,8443],{"class":1131},[1086,8602,8446],{"class":1168},[1086,8604,1154],{"class":1131},[1086,8606,8451],{"class":1174},[1086,8608,1178],{"class":1131},[1086,8610,8611],{"class":1088,"line":3207},[1086,8612,1258],{"class":1103},[1086,8614,8615,8617,8620,8622,8624,8626,8629],{"class":1088,"line":3230},[1086,8616,1264],{"class":1123},[1086,8618,8619],{"class":1267}," is_spam",[1086,8621,1132],{"class":1131},[1086,8623,1274],{"class":1273},[1086,8625,1403],{"class":1131},[1086,8627,8628],{"class":1458}," data",[1086,8630,1145],{"class":1131},[1086,8632,8633,8635,8638],{"class":1088,"line":3251},[1086,8634,5794],{"class":4790},[1086,8636,8637],{"class":4794},"Simple spam detection",[1086,8639,4798],{"class":4790},[1086,8641,8642,8645,8647,8649,8651,8654,8656,8658,8660,8663,8665,8667,8669,8672,8674,8676,8678,8681,8683],{"class":1088,"line":3266},[1086,8643,8644],{"class":1103},"        spam_keywords ",[1086,8646,1154],{"class":1131},[1086,8648,2965],{"class":1131},[1086,8650,1300],{"class":1299},[1086,8652,8653],{"class":1303},"viagra",[1086,8655,1300],{"class":1299},[1086,8657,1403],{"class":1131},[1086,8659,1481],{"class":1299},[1086,8661,8662],{"class":1303},"casino",[1086,8664,1300],{"class":1299},[1086,8666,1403],{"class":1131},[1086,8668,1481],{"class":1299},[1086,8670,8671],{"class":1303},"lottery",[1086,8673,1300],{"class":1299},[1086,8675,1403],{"class":1131},[1086,8677,1481],{"class":1299},[1086,8679,8680],{"class":1303},"winner",[1086,8682,1300],{"class":1299},[1086,8684,1309],{"class":1131},[1086,8686,8687,8690,8692,8694,8696,8698,8700,8702,8704,8706],{"class":1088,"line":3280},[1086,8688,8689],{"class":1103},"        comment_lower ",[1086,8691,1154],{"class":1131},[1086,8693,8628],{"class":1103},[1086,8695,1296],{"class":1131},[1086,8697,1300],{"class":1299},[1086,8699,7973],{"class":1303},[1086,8701,1300],{"class":1299},[1086,8703,7019],{"class":1131},[1086,8705,2956],{"class":1162},[1086,8707,1196],{"class":1131},[1086,8709,8710,8712,8714,8716,8719,8721,8724,8727,8730,8732,8735],{"class":1088,"line":3285},[1086,8711,1368],{"class":1099},[1086,8713,6492],{"class":2867},[1086,8715,1132],{"class":1131},[1086,8717,8718],{"class":1162},"keyword ",[1086,8720,6500],{"class":1099},[1086,8722,8723],{"class":1162}," comment_lower ",[1086,8725,8726],{"class":1099},"for",[1086,8728,8729],{"class":1162}," keyword ",[1086,8731,6500],{"class":1099},[1086,8733,8734],{"class":1162}," spam_keywords",[1086,8736,1178],{"class":1131},[1086,8738,8739],{"class":1088,"line":3299},[1086,8740,1258],{"class":1103},[1086,8742,8743,8745,8748,8750,8752,8754,8756],{"class":1088,"line":3320},[1086,8744,1264],{"class":1123},[1086,8746,8747],{"class":1267}," is_rate_limited",[1086,8749,1132],{"class":1131},[1086,8751,1274],{"class":1273},[1086,8753,1403],{"class":1131},[1086,8755,1470],{"class":1458},[1086,8757,1145],{"class":1131},[1086,8759,8760,8762,8765],{"class":1088,"line":3339},[1086,8761,5794],{"class":4790},[1086,8763,8764],{"class":4794},"Check rate limiting",[1086,8766,4798],{"class":4790},[1086,8768,8769,8771,8773,8775,8777,8779,8781,8783],{"class":1088,"line":3352},[1086,8770,2633],{"class":1099},[1086,8772,1390],{"class":1103},[1086,8774,1139],{"class":1131},[1086,8776,2225],{"class":1103},[1086,8778,1139],{"class":1131},[1086,8780,8261],{"class":1103},[1086,8782,1107],{"class":1099},[1086,8784,8785],{"class":1103}," cache\n",[1086,8787,8788],{"class":1088,"line":3358},[1086,8789,2623],{"class":1103},[1086,8791,8792,8795,8797,8799,8801,8804,8806,8808],{"class":1088,"line":3379},[1086,8793,8794],{"class":1103},"        ip ",[1086,8796,1154],{"class":1131},[1086,8798,1288],{"class":1287},[1086,8800,1139],{"class":1131},[1086,8802,8803],{"class":1162},"get_client_ip",[1086,8805,1132],{"class":1131},[1086,8807,1459],{"class":1162},[1086,8809,1178],{"class":1131},[1086,8811,8812,8815,8817,8820,8823,8825,8828,8830],{"class":1088,"line":3404},[1086,8813,8814],{"class":1103},"        cache_key ",[1086,8816,1154],{"class":1131},[1086,8818,8819],{"class":1123}," f",[1086,8821,8822],{"class":1303},"'comment_rate_limit_",[1086,8824,6006],{"class":4977},[1086,8826,8827],{"class":1103},"ip",[1086,8829,6012],{"class":4977},[1086,8831,2307],{"class":1303},[1086,8833,8834],{"class":1088,"line":3428},[1086,8835,2623],{"class":1103},[1086,8837,8838,8841,8843,8846,8848,8850,8852,8855,8857,8860],{"class":1088,"line":3452},[1086,8839,8840],{"class":1103},"        current_count ",[1086,8842,1154],{"class":1131},[1086,8844,8845],{"class":1103}," cache",[1086,8847,1139],{"class":1131},[1086,8849,3078],{"class":1162},[1086,8851,1132],{"class":1131},[1086,8853,8854],{"class":1162},"cache_key",[1086,8856,1403],{"class":1131},[1086,8858,8859],{"class":1174}," 0",[1086,8861,1178],{"class":1131},[1086,8863,8864,8866,8869,8871,8874,8876],{"class":1088,"line":3458},[1086,8865,1315],{"class":1099},[1086,8867,8868],{"class":1103}," current_count ",[1086,8870,7446],{"class":1318},[1086,8872,8873],{"class":1174}," 5",[1086,8875,1780],{"class":1131},[1086,8877,8878],{"class":1092},"  # 5 comments per hour\n",[1086,8880,8881,8883],{"class":1088,"line":3463},[1086,8882,1706],{"class":1099},[1086,8884,8885],{"class":2557}," True\n",[1086,8887,8888],{"class":1088,"line":3469},[1086,8889,2623],{"class":1103},[1086,8891,8892,8895,8897,8900,8902,8904,8906,8908,8910,8913,8915,8918,8920],{"class":1088,"line":3486},[1086,8893,8894],{"class":1103},"        cache",[1086,8896,1139],{"class":1131},[1086,8898,8899],{"class":1162},"set",[1086,8901,1132],{"class":1131},[1086,8903,8854],{"class":1162},[1086,8905,1403],{"class":1131},[1086,8907,8868],{"class":1162},[1086,8909,2761],{"class":1318},[1086,8911,8912],{"class":1174}," 1",[1086,8914,1403],{"class":1131},[1086,8916,8917],{"class":1174}," 3600",[1086,8919,2875],{"class":1131},[1086,8921,8922],{"class":1092},"  # 1 hour\n",[1086,8924,8925,8927],{"class":1088,"line":3499},[1086,8926,1368],{"class":1099},[1086,8928,8929],{"class":2557}," False\n",[1026,8931,8932],{},"Django's form system provides a robust foundation for handling user input securely and efficiently. Understanding form structure, validation patterns, and security considerations enables you to build sophisticated user interfaces that maintain data integrity and protect against common web vulnerabilities.",[8934,8935,8936],"style",{},"html pre.shiki code .s9Tkl, html code.shiki .s9Tkl{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#A0ADA0;--shiki-default-font-style:inherit;--shiki-dark:#758575DD;--shiki-dark-font-style:inherit}html pre.shiki code .siDh9, html code.shiki .siDh9{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#1E754F;--shiki-default-font-style:inherit;--shiki-dark:#4D9375;--shiki-dark-font-style:inherit}html pre.shiki code .sftqT, html code.shiki .sftqT{--shiki-light:#90A4AE;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}html pre.shiki code .s5Kfy, html code.shiki .s5Kfy{--shiki-light:#9C3EDA;--shiki-default:#AB5959;--shiki-dark:#CB7676}html pre.shiki code .sD-vU, html code.shiki .sD-vU{--shiki-light:#E2931D;--shiki-default:#2E8F82;--shiki-dark:#5DA994}html pre.shiki code .soVBu, html code.shiki .soVBu{--shiki-light:#39ADB5;--shiki-default:#999999;--shiki-dark:#666666}html pre.shiki code .sYn-s, html code.shiki .sYn-s{--shiki-light:#E2931D;--shiki-default:#59873A;--shiki-dark:#80A665}html pre.shiki code .siWMO, html code.shiki .siWMO{--shiki-light:#6182B8;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}html pre.shiki code .sqOPj, html code.shiki .sqOPj{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#B07D48;--shiki-default-font-style:inherit;--shiki-dark:#BD976A;--shiki-dark-font-style:inherit}html pre.shiki code .s7CZa, html code.shiki .s7CZa{--shiki-light:#F76D47;--shiki-default:#2F798A;--shiki-dark:#4C9A91}html pre.shiki code .sBPpx, html code.shiki .sBPpx{--shiki-light:#E53935;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}html pre.shiki code .sljsM, html code.shiki .sljsM{--shiki-light:#6182B8;--shiki-default:#59873A;--shiki-dark:#80A665}html pre.shiki code .sRjD_, html code.shiki .sRjD_{--shiki-light:#E53935;--shiki-light-font-style:italic;--shiki-default:#393A34;--shiki-default-font-style:inherit;--shiki-dark:#DBD7CAEE;--shiki-dark-font-style:inherit}html pre.shiki code .se3Ec, html code.shiki .se3Ec{--shiki-light:#90A4AE;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .sbYkP, html code.shiki .sbYkP{--shiki-light:#39ADB5;--shiki-default:#B5695977;--shiki-dark:#C98A7D77}html pre.shiki code .sTbE_, html code.shiki .sTbE_{--shiki-light:#91B859;--shiki-default:#B56959;--shiki-dark:#C98A7D}html pre.shiki code .sVsLi, html code.shiki .sVsLi{--shiki-light:#39ADB5;--shiki-default:#AB5959;--shiki-dark:#CB7676}html pre.shiki code .sCyAa, html code.shiki .sCyAa{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#393A34;--shiki-default-font-style:inherit;--shiki-dark:#DBD7CAEE;--shiki-dark-font-style:inherit}html pre.shiki code .sFGJz, html code.shiki .sFGJz{--shiki-light:#E53935;--shiki-default:#A65E2B;--shiki-dark:#C99076}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJFLg, html code.shiki .sJFLg{--shiki-light:#E53935;--shiki-default:#1E754F;--shiki-dark:#4D9375}html pre.shiki code .s5q8q, html code.shiki .s5q8q{--shiki-light:#9C3EDA;--shiki-default:#B07D48;--shiki-dark:#BD976A}html pre.shiki code .s8XtY, html code.shiki .s8XtY{--shiki-light:#39ADB5;--shiki-default:#1E754F;--shiki-dark:#4D9375}html pre.shiki code .sRJPX, html code.shiki .sRJPX{--shiki-light:#91B859;--shiki-default:#998418;--shiki-dark:#B8A965}html pre.shiki code .sETVe, html code.shiki .sETVe{--shiki-light:#39ADB5;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .sz9Cv, html code.shiki .sz9Cv{--shiki-light:#91B859;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .sGuSu, html code.shiki .sGuSu{--shiki-light:#39ADB5;--shiki-default:#2F798A;--shiki-dark:#4C9A91}html pre.shiki code .sJdAF, html code.shiki .sJdAF{--shiki-light:#6182B8;--shiki-default:#998418;--shiki-dark:#B8A965}html pre.shiki code .sa2tF, html code.shiki .sa2tF{--shiki-light:#E2931D;--shiki-default:#998418;--shiki-dark:#B8A965}html pre.shiki code .s6DHA, html code.shiki .s6DHA{--shiki-light:#6182B8;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .sk0MF, html code.shiki .sk0MF{--shiki-light:#90A4AE;--shiki-default:#BDA437;--shiki-dark:#E6CC77}html pre.shiki code .s27EL, html code.shiki .s27EL{--shiki-light:#91B859;--shiki-default:#AB5E3F;--shiki-dark:#C4704F}html pre.shiki code .sm7ve, html code.shiki .sm7ve{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#B5695977;--shiki-default-font-style:inherit;--shiki-dark:#C98A7D77;--shiki-dark-font-style:inherit}html pre.shiki code .sVyVU, html code.shiki .sVyVU{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#B56959;--shiki-default-font-style:inherit;--shiki-dark:#C98A7D;--shiki-dark-font-style:inherit}html pre.shiki code .s3h35, html code.shiki .s3h35{--shiki-light:#F76D47;--shiki-default:#A65E2B;--shiki-dark:#C99076}",{"title":1081,"searchDepth":1089,"depth":1096,"links":8938},[8939,8942,8946,8949,8953,8956,8959],{"id":1032,"depth":1096,"text":1033,"children":8940},[8941],{"id":1040,"depth":1113,"text":1041},{"id":1069,"depth":1096,"text":1070,"children":8943},[8944,8945],{"id":1073,"depth":1113,"text":1074},{"id":1788,"depth":1113,"text":1789},{"id":2190,"depth":1096,"text":2191,"children":8947},[8948],{"id":2194,"depth":1113,"text":2195},{"id":3695,"depth":1096,"text":3696,"children":8950},[8951,8952],{"id":3699,"depth":1113,"text":3700},{"id":4710,"depth":1113,"text":4711},{"id":5491,"depth":1096,"text":5492,"children":8954},[8955],{"id":5495,"depth":1113,"text":5496},{"id":6552,"depth":1096,"text":6553,"children":8957},[8958],{"id":6556,"depth":1113,"text":6557},{"id":7612,"depth":1096,"text":7613,"children":8960},[8961],{"id":7616,"depth":1113,"text":7617},"md",null,{},{"title":212,"description":1028},"jG83iESzIq1i26efdqm8AQkxVmVmsthbwblF9t0Ax7s",[8968,8970],{"title":208,"path":209,"stem":210,"description":8969,"children":-1},"Pagination is essential for handling large datasets efficiently in web applications. Django provides robust pagination support through the Paginator class and built-in integration with class-based views like ListView.",{"title":218,"path":219,"stem":220,"description":8971,"children":-1},"HTML forms are the foundation of web-based user input, providing the interface between users and server-side applications. Understanding how HTML forms work is essential for effective Django form development.",1772474913251]