[{"data":1,"prerenderedAt":5242},["ShallowReactive",2],{"navigation":3,"/templates-and-presentation/introduction-to-templates":1016,"/templates-and-presentation/introduction-to-templates-surround":5237},[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":96,"body":1018,"description":1028,"extension":5232,"links":5233,"meta":5234,"navigation":1310,"path":97,"seo":5235,"stem":98,"__hash__":5236},"docs/03.templates-and-presentation/2.introduction-to-templates.md",{"type":1019,"value":1020,"toc":5189},"minimark",[1021,1025,1029,1034,1039,1042,1237,1241,1248,1268,1274,1340,1346,1366,1372,1402,1406,1410,1621,1625,1633,1637,1641,2164,2168,2173,2372,2377,2626,2630,2634,2639,2755,2883,2888,3113,3216,3221,3359,3445,3449,3453,3456,3484,3488,3522,3526,3531,3537,3542,3548,3552,3556,3559,3666,3671,3810,3814,3959,4028,4186,4190,4194,4197,4258,4300,4304,4473,4515,4519,4523,4528,4583,4588,4619,4624,4650,4654,4659,4673,4678,4692,4696,4700,4706,4710,4716,4720,4725,4731,4735,4739,4901,4905,5183,5186],[1022,1023,96],"h1",{"id":1024},"introduction-to-django-templates",[1026,1027,1028],"p",{},"Django templates are text files that define the structure and layout of your web pages. They combine static HTML with dynamic content using Django's template language, providing a clean separation between presentation and business logic.",[1030,1031,1033],"h2",{"id":1032},"template-fundamentals","Template Fundamentals",[1035,1036,1038],"h3",{"id":1037},"what-are-templates","What Are Templates?",[1026,1040,1041],{},"Templates are files containing static content mixed with special syntax for dynamic content:",[1043,1044,1049],"pre",{"className":1045,"code":1046,"language":1047,"meta":1048,"style":1048},"language-html shiki shiki-themes material-theme-lighter vitesse-light vitesse-dark","\u003C!-- blog/templates/blog/post_detail.html -->\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003Ctitle>{{ post.title }} - My Blog\u003C/title>\n\u003C/head>\n\u003Cbody>\n    \u003Ch1>{{ post.title }}\u003C/h1>\n    \u003Cp>By {{ post.author.username }} on {{ post.created_at|date:\"F d, Y\" }}\u003C/p>\n    \u003Cdiv class=\"content\">\n        {{ post.content|linebreaks }}\n    \u003C/div>\n\u003C/body>\n\u003C/html>\n","html","",[1050,1051,1052,1061,1079,1089,1099,1122,1131,1141,1159,1177,1203,1209,1219,1228],"code",{"__ignoreMap":1048},[1053,1054,1057],"span",{"class":1055,"line":1056},"line",1,[1053,1058,1060],{"class":1059},"s9Tkl","\u003C!-- blog/templates/blog/post_detail.html -->\n",[1053,1062,1064,1068,1072,1076],{"class":1055,"line":1063},2,[1053,1065,1067],{"class":1066},"soVBu","\u003C!",[1053,1069,1071],{"class":1070},"sJFLg","DOCTYPE",[1053,1073,1075],{"class":1074},"s5q8q"," html",[1053,1077,1078],{"class":1066},">\n",[1053,1080,1082,1085,1087],{"class":1055,"line":1081},3,[1053,1083,1084],{"class":1066},"\u003C",[1053,1086,1047],{"class":1070},[1053,1088,1078],{"class":1066},[1053,1090,1092,1094,1097],{"class":1055,"line":1091},4,[1053,1093,1084],{"class":1066},[1053,1095,1096],{"class":1070},"head",[1053,1098,1078],{"class":1066},[1053,1100,1102,1105,1108,1111,1115,1118,1120],{"class":1055,"line":1101},5,[1053,1103,1104],{"class":1066},"    \u003C",[1053,1106,1107],{"class":1070},"title",[1053,1109,1110],{"class":1066},">",[1053,1112,1114],{"class":1113},"sftqT","{{ post.title }} - My Blog",[1053,1116,1117],{"class":1066},"\u003C/",[1053,1119,1107],{"class":1070},[1053,1121,1078],{"class":1066},[1053,1123,1125,1127,1129],{"class":1055,"line":1124},6,[1053,1126,1117],{"class":1066},[1053,1128,1096],{"class":1070},[1053,1130,1078],{"class":1066},[1053,1132,1134,1136,1139],{"class":1055,"line":1133},7,[1053,1135,1084],{"class":1066},[1053,1137,1138],{"class":1070},"body",[1053,1140,1078],{"class":1066},[1053,1142,1144,1146,1148,1150,1153,1155,1157],{"class":1055,"line":1143},8,[1053,1145,1104],{"class":1066},[1053,1147,1022],{"class":1070},[1053,1149,1110],{"class":1066},[1053,1151,1152],{"class":1113},"{{ post.title }}",[1053,1154,1117],{"class":1066},[1053,1156,1022],{"class":1070},[1053,1158,1078],{"class":1066},[1053,1160,1162,1164,1166,1168,1171,1173,1175],{"class":1055,"line":1161},9,[1053,1163,1104],{"class":1066},[1053,1165,1026],{"class":1070},[1053,1167,1110],{"class":1066},[1053,1169,1170],{"class":1113},"By {{ post.author.username }} on {{ post.created_at|date:\"F d, Y\" }}",[1053,1172,1117],{"class":1066},[1053,1174,1026],{"class":1070},[1053,1176,1078],{"class":1066},[1053,1178,1180,1182,1185,1188,1191,1195,1199,1201],{"class":1055,"line":1179},10,[1053,1181,1104],{"class":1066},[1053,1183,1184],{"class":1070},"div",[1053,1186,1187],{"class":1074}," class",[1053,1189,1190],{"class":1066},"=",[1053,1192,1194],{"class":1193},"sbYkP","\"",[1053,1196,1198],{"class":1197},"sTbE_","content",[1053,1200,1194],{"class":1193},[1053,1202,1078],{"class":1066},[1053,1204,1206],{"class":1055,"line":1205},11,[1053,1207,1208],{"class":1113},"        {{ post.content|linebreaks }}\n",[1053,1210,1212,1215,1217],{"class":1055,"line":1211},12,[1053,1213,1214],{"class":1066},"    \u003C/",[1053,1216,1184],{"class":1070},[1053,1218,1078],{"class":1066},[1053,1220,1222,1224,1226],{"class":1055,"line":1221},13,[1053,1223,1117],{"class":1066},[1053,1225,1138],{"class":1070},[1053,1227,1078],{"class":1066},[1053,1229,1231,1233,1235],{"class":1055,"line":1230},14,[1053,1232,1117],{"class":1066},[1053,1234,1047],{"class":1070},[1053,1236,1078],{"class":1066},[1035,1238,1240],{"id":1239},"template-syntax-elements","Template Syntax Elements",[1026,1242,1243,1247],{},[1244,1245,1246],"strong",{},"Variables"," - Display dynamic content",[1043,1249,1251],{"className":1045,"code":1250,"language":1047,"meta":1048,"style":1048},"{{ variable_name }}\n{{ object.attribute }}\n{{ dictionary.key }}\n",[1050,1252,1253,1258,1263],{"__ignoreMap":1048},[1053,1254,1255],{"class":1055,"line":1056},[1053,1256,1257],{"class":1113},"{{ variable_name }}\n",[1053,1259,1260],{"class":1055,"line":1063},[1053,1261,1262],{"class":1113},"{{ object.attribute }}\n",[1053,1264,1265],{"class":1055,"line":1081},[1053,1266,1267],{"class":1113},"{{ dictionary.key }}\n",[1026,1269,1270,1273],{},[1244,1271,1272],{},"Tags"," - Control logic and flow",[1043,1275,1277],{"className":1045,"code":1276,"language":1047,"meta":1048,"style":1048},"{% if condition %}\n    \u003Cp>Content when true\u003C/p>\n{% endif %}\n\n{% for item in items %}\n    \u003Cli>{{ item }}\u003C/li>\n{% endfor %}\n",[1050,1278,1279,1284,1301,1306,1312,1317,1335],{"__ignoreMap":1048},[1053,1280,1281],{"class":1055,"line":1056},[1053,1282,1283],{"class":1113},"{% if condition %}\n",[1053,1285,1286,1288,1290,1292,1295,1297,1299],{"class":1055,"line":1063},[1053,1287,1104],{"class":1066},[1053,1289,1026],{"class":1070},[1053,1291,1110],{"class":1066},[1053,1293,1294],{"class":1113},"Content when true",[1053,1296,1117],{"class":1066},[1053,1298,1026],{"class":1070},[1053,1300,1078],{"class":1066},[1053,1302,1303],{"class":1055,"line":1081},[1053,1304,1305],{"class":1113},"{% endif %}\n",[1053,1307,1308],{"class":1055,"line":1091},[1053,1309,1311],{"emptyLinePlaceholder":1310},true,"\n",[1053,1313,1314],{"class":1055,"line":1101},[1053,1315,1316],{"class":1113},"{% for item in items %}\n",[1053,1318,1319,1321,1324,1326,1329,1331,1333],{"class":1055,"line":1124},[1053,1320,1104],{"class":1066},[1053,1322,1323],{"class":1070},"li",[1053,1325,1110],{"class":1066},[1053,1327,1328],{"class":1113},"{{ item }}",[1053,1330,1117],{"class":1066},[1053,1332,1323],{"class":1070},[1053,1334,1078],{"class":1066},[1053,1336,1337],{"class":1055,"line":1133},[1053,1338,1339],{"class":1113},"{% endfor %}\n",[1026,1341,1342,1345],{},[1244,1343,1344],{},"Filters"," - Transform variable output",[1043,1347,1349],{"className":1045,"code":1348,"language":1047,"meta":1048,"style":1048},"{{ text|lower }}\n{{ date|date:\"Y-m-d\" }}\n{{ content|truncatewords:50 }}\n",[1050,1350,1351,1356,1361],{"__ignoreMap":1048},[1053,1352,1353],{"class":1055,"line":1056},[1053,1354,1355],{"class":1113},"{{ text|lower }}\n",[1053,1357,1358],{"class":1055,"line":1063},[1053,1359,1360],{"class":1113},"{{ date|date:\"Y-m-d\" }}\n",[1053,1362,1363],{"class":1055,"line":1081},[1053,1364,1365],{"class":1113},"{{ content|truncatewords:50 }}\n",[1026,1367,1368,1371],{},[1244,1369,1370],{},"Comments"," - Documentation that won't appear in output",[1043,1373,1375],{"className":1045,"code":1374,"language":1047,"meta":1048,"style":1048},"{# This is a comment #}\n{% comment %}\n    Multi-line comment\n    for documentation\n{% endcomment %}\n",[1050,1376,1377,1382,1387,1392,1397],{"__ignoreMap":1048},[1053,1378,1379],{"class":1055,"line":1056},[1053,1380,1381],{"class":1113},"{# This is a comment #}\n",[1053,1383,1384],{"class":1055,"line":1063},[1053,1385,1386],{"class":1113},"{% comment %}\n",[1053,1388,1389],{"class":1055,"line":1081},[1053,1390,1391],{"class":1113},"    Multi-line comment\n",[1053,1393,1394],{"class":1055,"line":1091},[1053,1395,1396],{"class":1113},"    for documentation\n",[1053,1398,1399],{"class":1055,"line":1101},[1053,1400,1401],{"class":1113},"{% endcomment %}\n",[1030,1403,1405],{"id":1404},"template-configuration","Template Configuration",[1035,1407,1409],{"id":1408},"settings-configuration","Settings Configuration",[1043,1411,1415],{"className":1412,"code":1413,"language":1414,"meta":1048,"style":1048},"language-python shiki shiki-themes material-theme-lighter vitesse-light vitesse-dark","# settings.py\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [\n            BASE_DIR / 'templates',  # Project-level templates\n        ],\n        'APP_DIRS': True,  # Look for templates in app directories\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n","python",[1050,1416,1417,1422,1434,1439,1464,1477,1499,1504,1524,1538,1552,1564,1575,1586,1597,1603,1609,1615],{"__ignoreMap":1048},[1053,1418,1419],{"class":1055,"line":1056},[1053,1420,1421],{"class":1059},"# settings.py\n",[1053,1423,1424,1428,1431],{"class":1055,"line":1063},[1053,1425,1427],{"class":1426},"se3Ec","TEMPLATES",[1053,1429,1430],{"class":1066}," =",[1053,1432,1433],{"class":1066}," [\n",[1053,1435,1436],{"class":1055,"line":1081},[1053,1437,1438],{"class":1066},"    {\n",[1053,1440,1441,1444,1447,1450,1453,1456,1459,1461],{"class":1055,"line":1091},[1053,1442,1443],{"class":1193},"        '",[1053,1445,1446],{"class":1197},"BACKEND",[1053,1448,1449],{"class":1193},"'",[1053,1451,1452],{"class":1066},":",[1053,1454,1455],{"class":1193}," '",[1053,1457,1458],{"class":1197},"django.template.backends.django.DjangoTemplates",[1053,1460,1449],{"class":1193},[1053,1462,1463],{"class":1066},",\n",[1053,1465,1466,1468,1471,1473,1475],{"class":1055,"line":1101},[1053,1467,1443],{"class":1193},[1053,1469,1470],{"class":1197},"DIRS",[1053,1472,1449],{"class":1193},[1053,1474,1452],{"class":1066},[1053,1476,1433],{"class":1066},[1053,1478,1479,1482,1486,1488,1491,1493,1496],{"class":1055,"line":1124},[1053,1480,1481],{"class":1426},"            BASE_DIR",[1053,1483,1485],{"class":1484},"sVsLi"," /",[1053,1487,1455],{"class":1193},[1053,1489,1490],{"class":1197},"templates",[1053,1492,1449],{"class":1193},[1053,1494,1495],{"class":1066},",",[1053,1497,1498],{"class":1059},"  # Project-level templates\n",[1053,1500,1501],{"class":1055,"line":1133},[1053,1502,1503],{"class":1066},"        ],\n",[1053,1505,1506,1508,1511,1513,1515,1519,1521],{"class":1055,"line":1143},[1053,1507,1443],{"class":1193},[1053,1509,1510],{"class":1197},"APP_DIRS",[1053,1512,1449],{"class":1193},[1053,1514,1452],{"class":1066},[1053,1516,1518],{"class":1517},"s8XtY"," True",[1053,1520,1495],{"class":1066},[1053,1522,1523],{"class":1059},"  # Look for templates in app directories\n",[1053,1525,1526,1528,1531,1533,1535],{"class":1055,"line":1161},[1053,1527,1443],{"class":1193},[1053,1529,1530],{"class":1197},"OPTIONS",[1053,1532,1449],{"class":1193},[1053,1534,1452],{"class":1066},[1053,1536,1537],{"class":1066}," {\n",[1053,1539,1540,1543,1546,1548,1550],{"class":1055,"line":1179},[1053,1541,1542],{"class":1193},"            '",[1053,1544,1545],{"class":1197},"context_processors",[1053,1547,1449],{"class":1193},[1053,1549,1452],{"class":1066},[1053,1551,1433],{"class":1066},[1053,1553,1554,1557,1560,1562],{"class":1055,"line":1205},[1053,1555,1556],{"class":1193},"                '",[1053,1558,1559],{"class":1197},"django.template.context_processors.debug",[1053,1561,1449],{"class":1193},[1053,1563,1463],{"class":1066},[1053,1565,1566,1568,1571,1573],{"class":1055,"line":1211},[1053,1567,1556],{"class":1193},[1053,1569,1570],{"class":1197},"django.template.context_processors.request",[1053,1572,1449],{"class":1193},[1053,1574,1463],{"class":1066},[1053,1576,1577,1579,1582,1584],{"class":1055,"line":1221},[1053,1578,1556],{"class":1193},[1053,1580,1581],{"class":1197},"django.contrib.auth.context_processors.auth",[1053,1583,1449],{"class":1193},[1053,1585,1463],{"class":1066},[1053,1587,1588,1590,1593,1595],{"class":1055,"line":1230},[1053,1589,1556],{"class":1193},[1053,1591,1592],{"class":1197},"django.contrib.messages.context_processors.messages",[1053,1594,1449],{"class":1193},[1053,1596,1463],{"class":1066},[1053,1598,1600],{"class":1055,"line":1599},15,[1053,1601,1602],{"class":1066},"            ],\n",[1053,1604,1606],{"class":1055,"line":1605},16,[1053,1607,1608],{"class":1066},"        },\n",[1053,1610,1612],{"class":1055,"line":1611},17,[1053,1613,1614],{"class":1066},"    },\n",[1053,1616,1618],{"class":1055,"line":1617},18,[1053,1619,1620],{"class":1066},"]\n",[1035,1622,1624],{"id":1623},"template-directory-structure","Template Directory Structure",[1043,1626,1631],{"className":1627,"code":1629,"language":1630},[1628],"language-text","myproject/\n├── templates/                 # Project-level templates\n│   ├── base.html             # Base template\n│   ├── 404.html              # Error pages\n│   ├── 500.html\n│   └── includes/             # Reusable components\n│       ├── header.html\n│       ├── footer.html\n│       └── navigation.html\n├── blog/\n│   └── templates/\n│       └── blog/             # App-specific templates\n│           ├── post_list.html\n│           ├── post_detail.html\n│           └── post_form.html\n└── accounts/\n    └── templates/\n        └── registration/     # Authentication templates\n            ├── login.html\n            └── signup.html\n","text",[1050,1632,1629],{"__ignoreMap":1048},[1030,1634,1636],{"id":1635},"creating-your-first-template","Creating Your First Template",[1035,1638,1640],{"id":1639},"basic-template-example","Basic Template Example",[1043,1642,1644],{"className":1045,"code":1643,"language":1047,"meta":1048,"style":1048},"\u003C!-- templates/blog/post_list.html -->\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n    \u003Cmeta charset=\"UTF-8\">\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    \u003Ctitle>Blog Posts\u003C/title>\n    \u003Cstyle>\n        body { font-family: Arial, sans-serif; margin: 40px; }\n        .post { border-bottom: 1px solid #eee; padding: 20px 0; }\n        .post h2 { margin: 0 0 10px 0; }\n        .meta { color: #666; font-size: 0.9em; }\n    \u003C/style>\n\u003C/head>\n\u003Cbody>\n    \u003Ch1>Latest Blog Posts\u003C/h1>\n    \n    {% for post in posts %}\n        \u003Carticle class=\"post\">\n            \u003Ch2>{{ post.title }}\u003C/h2>\n            \u003Cp class=\"meta\">\n                By {{ post.author.get_full_name|default:post.author.username }}\n                on {{ post.created_at|date:\"F d, Y\" }}\n            \u003C/p>\n            \u003Cp>{{ post.excerpt|default:post.content|truncatewords:30 }}\u003C/p>\n            \u003Ca href=\"{% url 'blog:post_detail' post.pk %}\">Read more\u003C/a>\n        \u003C/article>\n    {% empty %}\n        \u003Cp>No posts available yet.\u003C/p>\n    {% endfor %}\n\u003C/body>\n\u003C/html>\n",[1050,1645,1646,1651,1661,1681,1689,1710,1742,1759,1768,1812,1861,1891,1926,1934,1942,1950,1967,1972,1977,1998,2016,2035,2041,2047,2057,2075,2106,2116,2122,2140,2146,2155],{"__ignoreMap":1048},[1053,1647,1648],{"class":1055,"line":1056},[1053,1649,1650],{"class":1059},"\u003C!-- templates/blog/post_list.html -->\n",[1053,1652,1653,1655,1657,1659],{"class":1055,"line":1063},[1053,1654,1067],{"class":1066},[1053,1656,1071],{"class":1070},[1053,1658,1075],{"class":1074},[1053,1660,1078],{"class":1066},[1053,1662,1663,1665,1667,1670,1672,1674,1677,1679],{"class":1055,"line":1081},[1053,1664,1084],{"class":1066},[1053,1666,1047],{"class":1070},[1053,1668,1669],{"class":1074}," lang",[1053,1671,1190],{"class":1066},[1053,1673,1194],{"class":1193},[1053,1675,1676],{"class":1197},"en",[1053,1678,1194],{"class":1193},[1053,1680,1078],{"class":1066},[1053,1682,1683,1685,1687],{"class":1055,"line":1091},[1053,1684,1084],{"class":1066},[1053,1686,1096],{"class":1070},[1053,1688,1078],{"class":1066},[1053,1690,1691,1693,1696,1699,1701,1703,1706,1708],{"class":1055,"line":1101},[1053,1692,1104],{"class":1066},[1053,1694,1695],{"class":1070},"meta",[1053,1697,1698],{"class":1074}," charset",[1053,1700,1190],{"class":1066},[1053,1702,1194],{"class":1193},[1053,1704,1705],{"class":1197},"UTF-8",[1053,1707,1194],{"class":1193},[1053,1709,1078],{"class":1066},[1053,1711,1712,1714,1716,1719,1721,1723,1726,1728,1731,1733,1735,1738,1740],{"class":1055,"line":1124},[1053,1713,1104],{"class":1066},[1053,1715,1695],{"class":1070},[1053,1717,1718],{"class":1074}," name",[1053,1720,1190],{"class":1066},[1053,1722,1194],{"class":1193},[1053,1724,1725],{"class":1197},"viewport",[1053,1727,1194],{"class":1193},[1053,1729,1730],{"class":1074}," content",[1053,1732,1190],{"class":1066},[1053,1734,1194],{"class":1193},[1053,1736,1737],{"class":1197},"width=device-width, initial-scale=1.0",[1053,1739,1194],{"class":1193},[1053,1741,1078],{"class":1066},[1053,1743,1744,1746,1748,1750,1753,1755,1757],{"class":1055,"line":1133},[1053,1745,1104],{"class":1066},[1053,1747,1107],{"class":1070},[1053,1749,1110],{"class":1066},[1053,1751,1752],{"class":1113},"Blog Posts",[1053,1754,1117],{"class":1066},[1053,1756,1107],{"class":1070},[1053,1758,1078],{"class":1066},[1053,1760,1761,1763,1766],{"class":1055,"line":1143},[1053,1762,1104],{"class":1066},[1053,1764,1765],{"class":1070},"style",[1053,1767,1078],{"class":1066},[1053,1769,1770,1774,1777,1781,1783,1786,1788,1791,1794,1797,1799,1803,1807,1809],{"class":1055,"line":1161},[1053,1771,1773],{"class":1772},"skzw8","        body",[1053,1775,1776],{"class":1066}," {",[1053,1778,1780],{"class":1779},"s5HLA"," font-family",[1053,1782,1452],{"class":1066},[1053,1784,1785],{"class":1426}," Arial",[1053,1787,1495],{"class":1066},[1053,1789,1790],{"class":1426}," sans-serif",[1053,1792,1793],{"class":1066},";",[1053,1795,1796],{"class":1779}," margin",[1053,1798,1452],{"class":1066},[1053,1800,1802],{"class":1801},"s7CZa"," 40",[1053,1804,1806],{"class":1805},"sQBxk","px",[1053,1808,1793],{"class":1066},[1053,1810,1811],{"class":1066}," }\n",[1053,1813,1814,1817,1821,1823,1826,1828,1831,1833,1836,1839,1842,1844,1847,1849,1852,1854,1857,1859],{"class":1055,"line":1179},[1053,1815,1816],{"class":1066},"        .",[1053,1818,1820],{"class":1819},"sKL33","post",[1053,1822,1776],{"class":1066},[1053,1824,1825],{"class":1779}," border-bottom",[1053,1827,1452],{"class":1066},[1053,1829,1830],{"class":1801}," 1",[1053,1832,1806],{"class":1805},[1053,1834,1835],{"class":1426}," solid",[1053,1837,1838],{"class":1066}," #",[1053,1840,1841],{"class":1426},"eee",[1053,1843,1793],{"class":1066},[1053,1845,1846],{"class":1779}," padding",[1053,1848,1452],{"class":1066},[1053,1850,1851],{"class":1801}," 20",[1053,1853,1806],{"class":1805},[1053,1855,1856],{"class":1801}," 0",[1053,1858,1793],{"class":1066},[1053,1860,1811],{"class":1066},[1053,1862,1863,1865,1867,1870,1872,1874,1876,1878,1880,1883,1885,1887,1889],{"class":1055,"line":1205},[1053,1864,1816],{"class":1066},[1053,1866,1820],{"class":1819},[1053,1868,1869],{"class":1772}," h2",[1053,1871,1776],{"class":1066},[1053,1873,1796],{"class":1779},[1053,1875,1452],{"class":1066},[1053,1877,1856],{"class":1801},[1053,1879,1856],{"class":1801},[1053,1881,1882],{"class":1801}," 10",[1053,1884,1806],{"class":1805},[1053,1886,1856],{"class":1801},[1053,1888,1793],{"class":1066},[1053,1890,1811],{"class":1066},[1053,1892,1893,1895,1897,1899,1902,1904,1906,1909,1911,1914,1916,1919,1922,1924],{"class":1055,"line":1211},[1053,1894,1816],{"class":1066},[1053,1896,1695],{"class":1819},[1053,1898,1776],{"class":1066},[1053,1900,1901],{"class":1779}," color",[1053,1903,1452],{"class":1066},[1053,1905,1838],{"class":1066},[1053,1907,1908],{"class":1426},"666",[1053,1910,1793],{"class":1066},[1053,1912,1913],{"class":1779}," font-size",[1053,1915,1452],{"class":1066},[1053,1917,1918],{"class":1801}," 0.9",[1053,1920,1921],{"class":1805},"em",[1053,1923,1793],{"class":1066},[1053,1925,1811],{"class":1066},[1053,1927,1928,1930,1932],{"class":1055,"line":1221},[1053,1929,1214],{"class":1066},[1053,1931,1765],{"class":1070},[1053,1933,1078],{"class":1066},[1053,1935,1936,1938,1940],{"class":1055,"line":1230},[1053,1937,1117],{"class":1066},[1053,1939,1096],{"class":1070},[1053,1941,1078],{"class":1066},[1053,1943,1944,1946,1948],{"class":1055,"line":1599},[1053,1945,1084],{"class":1066},[1053,1947,1138],{"class":1070},[1053,1949,1078],{"class":1066},[1053,1951,1952,1954,1956,1958,1961,1963,1965],{"class":1055,"line":1605},[1053,1953,1104],{"class":1066},[1053,1955,1022],{"class":1070},[1053,1957,1110],{"class":1066},[1053,1959,1960],{"class":1113},"Latest Blog Posts",[1053,1962,1117],{"class":1066},[1053,1964,1022],{"class":1070},[1053,1966,1078],{"class":1066},[1053,1968,1969],{"class":1055,"line":1611},[1053,1970,1971],{"class":1113},"    \n",[1053,1973,1974],{"class":1055,"line":1617},[1053,1975,1976],{"class":1113},"    {% for post in posts %}\n",[1053,1978,1980,1983,1986,1988,1990,1992,1994,1996],{"class":1055,"line":1979},19,[1053,1981,1982],{"class":1066},"        \u003C",[1053,1984,1985],{"class":1070},"article",[1053,1987,1187],{"class":1074},[1053,1989,1190],{"class":1066},[1053,1991,1194],{"class":1193},[1053,1993,1820],{"class":1197},[1053,1995,1194],{"class":1193},[1053,1997,1078],{"class":1066},[1053,1999,2001,2004,2006,2008,2010,2012,2014],{"class":1055,"line":2000},20,[1053,2002,2003],{"class":1066},"            \u003C",[1053,2005,1030],{"class":1070},[1053,2007,1110],{"class":1066},[1053,2009,1152],{"class":1113},[1053,2011,1117],{"class":1066},[1053,2013,1030],{"class":1070},[1053,2015,1078],{"class":1066},[1053,2017,2019,2021,2023,2025,2027,2029,2031,2033],{"class":1055,"line":2018},21,[1053,2020,2003],{"class":1066},[1053,2022,1026],{"class":1070},[1053,2024,1187],{"class":1074},[1053,2026,1190],{"class":1066},[1053,2028,1194],{"class":1193},[1053,2030,1695],{"class":1197},[1053,2032,1194],{"class":1193},[1053,2034,1078],{"class":1066},[1053,2036,2038],{"class":1055,"line":2037},22,[1053,2039,2040],{"class":1113},"                By {{ post.author.get_full_name|default:post.author.username }}\n",[1053,2042,2044],{"class":1055,"line":2043},23,[1053,2045,2046],{"class":1113},"                on {{ post.created_at|date:\"F d, Y\" }}\n",[1053,2048,2050,2053,2055],{"class":1055,"line":2049},24,[1053,2051,2052],{"class":1066},"            \u003C/",[1053,2054,1026],{"class":1070},[1053,2056,1078],{"class":1066},[1053,2058,2060,2062,2064,2066,2069,2071,2073],{"class":1055,"line":2059},25,[1053,2061,2003],{"class":1066},[1053,2063,1026],{"class":1070},[1053,2065,1110],{"class":1066},[1053,2067,2068],{"class":1113},"{{ post.excerpt|default:post.content|truncatewords:30 }}",[1053,2070,1117],{"class":1066},[1053,2072,1026],{"class":1070},[1053,2074,1078],{"class":1066},[1053,2076,2078,2080,2083,2086,2088,2090,2093,2095,2097,2100,2102,2104],{"class":1055,"line":2077},26,[1053,2079,2003],{"class":1066},[1053,2081,2082],{"class":1070},"a",[1053,2084,2085],{"class":1074}," href",[1053,2087,1190],{"class":1066},[1053,2089,1194],{"class":1193},[1053,2091,2092],{"class":1197},"{% url 'blog:post_detail' post.pk %}",[1053,2094,1194],{"class":1193},[1053,2096,1110],{"class":1066},[1053,2098,2099],{"class":1113},"Read more",[1053,2101,1117],{"class":1066},[1053,2103,2082],{"class":1070},[1053,2105,1078],{"class":1066},[1053,2107,2109,2112,2114],{"class":1055,"line":2108},27,[1053,2110,2111],{"class":1066},"        \u003C/",[1053,2113,1985],{"class":1070},[1053,2115,1078],{"class":1066},[1053,2117,2119],{"class":1055,"line":2118},28,[1053,2120,2121],{"class":1113},"    {% empty %}\n",[1053,2123,2125,2127,2129,2131,2134,2136,2138],{"class":1055,"line":2124},29,[1053,2126,1982],{"class":1066},[1053,2128,1026],{"class":1070},[1053,2130,1110],{"class":1066},[1053,2132,2133],{"class":1113},"No posts available yet.",[1053,2135,1117],{"class":1066},[1053,2137,1026],{"class":1070},[1053,2139,1078],{"class":1066},[1053,2141,2143],{"class":1055,"line":2142},30,[1053,2144,2145],{"class":1113},"    {% endfor %}\n",[1053,2147,2149,2151,2153],{"class":1055,"line":2148},31,[1053,2150,1117],{"class":1066},[1053,2152,1138],{"class":1070},[1053,2154,1078],{"class":1066},[1053,2156,2158,2160,2162],{"class":1055,"line":2157},32,[1053,2159,1117],{"class":1066},[1053,2161,1047],{"class":1070},[1053,2163,1078],{"class":1066},[1035,2165,2167],{"id":2166},"connecting-templates-to-views","Connecting Templates to Views",[1026,2169,2170],{},[1244,2171,2172],{},"Function-Based View:",[1043,2174,2176],{"className":1412,"code":2175,"language":1414,"meta":1048,"style":1048},"# blog/views.py\nfrom django.shortcuts import render\nfrom .models import Post\n\ndef post_list(request):\n    posts = Post.objects.filter(published=True).order_by('-created_at')\n    context = {\n        'posts': posts,\n        'page_title': 'Latest Posts',\n    }\n    return render(request, 'blog/post_list.html', context)\n",[1050,2177,2178,2183,2204,2219,2223,2243,2294,2303,2319,2339,2344],{"__ignoreMap":1048},[1053,2179,2180],{"class":1055,"line":1056},[1053,2181,2182],{"class":1059},"# blog/views.py\n",[1053,2184,2185,2189,2192,2195,2198,2201],{"class":1055,"line":1063},[1053,2186,2188],{"class":2187},"siDh9","from",[1053,2190,2191],{"class":1113}," django",[1053,2193,2194],{"class":1066},".",[1053,2196,2197],{"class":1113},"shortcuts ",[1053,2199,2200],{"class":2187},"import",[1053,2202,2203],{"class":1113}," render\n",[1053,2205,2206,2208,2211,2214,2216],{"class":1055,"line":1081},[1053,2207,2188],{"class":2187},[1053,2209,2210],{"class":1066}," .",[1053,2212,2213],{"class":1113},"models ",[1053,2215,2200],{"class":2187},[1053,2217,2218],{"class":1113}," Post\n",[1053,2220,2221],{"class":1055,"line":1091},[1053,2222,1311],{"emptyLinePlaceholder":1310},[1053,2224,2225,2229,2233,2236,2240],{"class":1055,"line":1101},[1053,2226,2228],{"class":2227},"s5Kfy","def",[1053,2230,2232],{"class":2231},"sljsM"," post_list",[1053,2234,2235],{"class":1066},"(",[1053,2237,2239],{"class":2238},"sCyAa","request",[1053,2241,2242],{"class":1066},"):\n",[1053,2244,2245,2248,2250,2253,2255,2259,2261,2265,2267,2271,2273,2276,2279,2282,2284,2286,2289,2291],{"class":1055,"line":1124},[1053,2246,2247],{"class":1113},"    posts ",[1053,2249,1190],{"class":1066},[1053,2251,2252],{"class":1113}," Post",[1053,2254,2194],{"class":1066},[1053,2256,2258],{"class":2257},"sBPpx","objects",[1053,2260,2194],{"class":1066},[1053,2262,2264],{"class":2263},"siWMO","filter",[1053,2266,2235],{"class":1066},[1053,2268,2270],{"class":2269},"sqOPj","published",[1053,2272,1190],{"class":1066},[1053,2274,2275],{"class":1517},"True",[1053,2277,2278],{"class":1066},").",[1053,2280,2281],{"class":2263},"order_by",[1053,2283,2235],{"class":1066},[1053,2285,1449],{"class":1193},[1053,2287,2288],{"class":1197},"-created_at",[1053,2290,1449],{"class":1193},[1053,2292,2293],{"class":1066},")\n",[1053,2295,2296,2299,2301],{"class":1055,"line":1133},[1053,2297,2298],{"class":1113},"    context ",[1053,2300,1190],{"class":1066},[1053,2302,1537],{"class":1066},[1053,2304,2305,2307,2310,2312,2314,2317],{"class":1055,"line":1143},[1053,2306,1443],{"class":1193},[1053,2308,2309],{"class":1197},"posts",[1053,2311,1449],{"class":1193},[1053,2313,1452],{"class":1066},[1053,2315,2316],{"class":1113}," posts",[1053,2318,1463],{"class":1066},[1053,2320,2321,2323,2326,2328,2330,2332,2335,2337],{"class":1055,"line":1161},[1053,2322,1443],{"class":1193},[1053,2324,2325],{"class":1197},"page_title",[1053,2327,1449],{"class":1193},[1053,2329,1452],{"class":1066},[1053,2331,1455],{"class":1193},[1053,2333,2334],{"class":1197},"Latest Posts",[1053,2336,1449],{"class":1193},[1053,2338,1463],{"class":1066},[1053,2340,2341],{"class":1055,"line":1179},[1053,2342,2343],{"class":1066},"    }\n",[1053,2345,2346,2349,2352,2354,2356,2358,2360,2363,2365,2367,2370],{"class":1055,"line":1205},[1053,2347,2348],{"class":2187},"    return",[1053,2350,2351],{"class":2263}," render",[1053,2353,2235],{"class":1066},[1053,2355,2239],{"class":2263},[1053,2357,1495],{"class":1066},[1053,2359,1455],{"class":1193},[1053,2361,2362],{"class":1197},"blog/post_list.html",[1053,2364,1449],{"class":1193},[1053,2366,1495],{"class":1066},[1053,2368,2369],{"class":2263}," context",[1053,2371,2293],{"class":1066},[1026,2373,2374],{},[1244,2375,2376],{},"Class-Based View:",[1043,2378,2380],{"className":1412,"code":2379,"language":1414,"meta":1048,"style":1048},"# blog/views.py\nfrom django.views.generic import ListView\nfrom .models import Post\n\nclass PostListView(ListView):\n    model = Post\n    template_name = 'blog/post_list.html'\n    context_object_name = 'posts'\n    paginate_by = 10\n    \n    def get_queryset(self):\n        return Post.objects.filter(published=True).order_by('-created_at')\n    \n    def get_context_data(self, **kwargs):\n        context = super().get_context_data(**kwargs)\n        context['page_title'] = 'Latest Posts'\n        return context\n",[1050,2381,2382,2386,2407,2419,2423,2440,2449,2463,2476,2486,2490,2506,2543,2547,2568,2594,2619],{"__ignoreMap":1048},[1053,2383,2384],{"class":1055,"line":1056},[1053,2385,2182],{"class":1059},[1053,2387,2388,2390,2392,2394,2397,2399,2402,2404],{"class":1055,"line":1063},[1053,2389,2188],{"class":2187},[1053,2391,2191],{"class":1113},[1053,2393,2194],{"class":1066},[1053,2395,2396],{"class":1113},"views",[1053,2398,2194],{"class":1066},[1053,2400,2401],{"class":1113},"generic ",[1053,2403,2200],{"class":2187},[1053,2405,2406],{"class":1113}," ListView\n",[1053,2408,2409,2411,2413,2415,2417],{"class":1055,"line":1081},[1053,2410,2188],{"class":2187},[1053,2412,2210],{"class":1066},[1053,2414,2213],{"class":1113},[1053,2416,2200],{"class":2187},[1053,2418,2218],{"class":1113},[1053,2420,2421],{"class":1055,"line":1091},[1053,2422,1311],{"emptyLinePlaceholder":1310},[1053,2424,2425,2428,2432,2434,2438],{"class":1055,"line":1101},[1053,2426,2427],{"class":2227},"class",[1053,2429,2431],{"class":2430},"sD-vU"," PostListView",[1053,2433,2235],{"class":1066},[1053,2435,2437],{"class":2436},"sYn-s","ListView",[1053,2439,2242],{"class":1066},[1053,2441,2442,2445,2447],{"class":1055,"line":1124},[1053,2443,2444],{"class":1113},"    model ",[1053,2446,1190],{"class":1066},[1053,2448,2218],{"class":1113},[1053,2450,2451,2454,2456,2458,2460],{"class":1055,"line":1133},[1053,2452,2453],{"class":1113},"    template_name ",[1053,2455,1190],{"class":1066},[1053,2457,1455],{"class":1193},[1053,2459,2362],{"class":1197},[1053,2461,2462],{"class":1193},"'\n",[1053,2464,2465,2468,2470,2472,2474],{"class":1055,"line":1143},[1053,2466,2467],{"class":1113},"    context_object_name ",[1053,2469,1190],{"class":1066},[1053,2471,1455],{"class":1193},[1053,2473,2309],{"class":1197},[1053,2475,2462],{"class":1193},[1053,2477,2478,2481,2483],{"class":1055,"line":1161},[1053,2479,2480],{"class":1113},"    paginate_by ",[1053,2482,1190],{"class":1066},[1053,2484,2485],{"class":1801}," 10\n",[1053,2487,2488],{"class":1055,"line":1179},[1053,2489,1971],{"class":1113},[1053,2491,2492,2495,2498,2500,2504],{"class":1055,"line":1205},[1053,2493,2494],{"class":2227},"    def",[1053,2496,2497],{"class":2231}," get_queryset",[1053,2499,2235],{"class":1066},[1053,2501,2503],{"class":2502},"sRjD_","self",[1053,2505,2242],{"class":1066},[1053,2507,2508,2511,2513,2515,2517,2519,2521,2523,2525,2527,2529,2531,2533,2535,2537,2539,2541],{"class":1055,"line":1211},[1053,2509,2510],{"class":2187},"        return",[1053,2512,2252],{"class":1113},[1053,2514,2194],{"class":1066},[1053,2516,2258],{"class":2257},[1053,2518,2194],{"class":1066},[1053,2520,2264],{"class":2263},[1053,2522,2235],{"class":1066},[1053,2524,2270],{"class":2269},[1053,2526,1190],{"class":1066},[1053,2528,2275],{"class":1517},[1053,2530,2278],{"class":1066},[1053,2532,2281],{"class":2263},[1053,2534,2235],{"class":1066},[1053,2536,1449],{"class":1193},[1053,2538,2288],{"class":1197},[1053,2540,1449],{"class":1193},[1053,2542,2293],{"class":1066},[1053,2544,2545],{"class":1055,"line":1221},[1053,2546,1971],{"class":1113},[1053,2548,2549,2551,2554,2556,2558,2560,2563,2566],{"class":1055,"line":1230},[1053,2550,2494],{"class":2227},[1053,2552,2553],{"class":2231}," get_context_data",[1053,2555,2235],{"class":1066},[1053,2557,2503],{"class":2502},[1053,2559,1495],{"class":1066},[1053,2561,2562],{"class":1484}," **",[1053,2564,2565],{"class":2238},"kwargs",[1053,2567,2242],{"class":1066},[1053,2569,2570,2573,2575,2579,2582,2585,2587,2590,2592],{"class":1055,"line":1599},[1053,2571,2572],{"class":1113},"        context ",[1053,2574,1190],{"class":1066},[1053,2576,2578],{"class":2577},"sa2tF"," super",[1053,2580,2581],{"class":1066},"().",[1053,2583,2584],{"class":2263},"get_context_data",[1053,2586,2235],{"class":1066},[1053,2588,2589],{"class":1484},"**",[1053,2591,2565],{"class":2263},[1053,2593,2293],{"class":1066},[1053,2595,2596,2599,2602,2604,2606,2608,2611,2613,2615,2617],{"class":1055,"line":1605},[1053,2597,2598],{"class":1113},"        context",[1053,2600,2601],{"class":1066},"[",[1053,2603,1449],{"class":1193},[1053,2605,2325],{"class":1197},[1053,2607,1449],{"class":1193},[1053,2609,2610],{"class":1066},"]",[1053,2612,1430],{"class":1066},[1053,2614,1455],{"class":1193},[1053,2616,2334],{"class":1197},[1053,2618,2462],{"class":1193},[1053,2620,2621,2623],{"class":1055,"line":1611},[1053,2622,2510],{"class":2187},[1053,2624,2625],{"class":1113}," context\n",[1030,2627,2629],{"id":2628},"template-variables-and-context","Template Variables and Context",[1035,2631,2633],{"id":2632},"context-data-types","Context Data Types",[1026,2635,2636],{},[1244,2637,2638],{},"Simple Variables:",[1043,2640,2642],{"className":1412,"code":2641,"language":1414,"meta":1048,"style":1048},"# views.py\ncontext = {\n    'title': 'My Blog',\n    'user_count': 150,\n    'is_featured': True,\n    'tags': ['django', 'python', 'web'],\n}\n",[1050,2643,2644,2649,2658,2678,2694,2709,2750],{"__ignoreMap":1048},[1053,2645,2646],{"class":1055,"line":1056},[1053,2647,2648],{"class":1059},"# views.py\n",[1053,2650,2651,2654,2656],{"class":1055,"line":1063},[1053,2652,2653],{"class":1113},"context ",[1053,2655,1190],{"class":1066},[1053,2657,1537],{"class":1066},[1053,2659,2660,2663,2665,2667,2669,2671,2674,2676],{"class":1055,"line":1081},[1053,2661,2662],{"class":1193},"    '",[1053,2664,1107],{"class":1197},[1053,2666,1449],{"class":1193},[1053,2668,1452],{"class":1066},[1053,2670,1455],{"class":1193},[1053,2672,2673],{"class":1197},"My Blog",[1053,2675,1449],{"class":1193},[1053,2677,1463],{"class":1066},[1053,2679,2680,2682,2685,2687,2689,2692],{"class":1055,"line":1091},[1053,2681,2662],{"class":1193},[1053,2683,2684],{"class":1197},"user_count",[1053,2686,1449],{"class":1193},[1053,2688,1452],{"class":1066},[1053,2690,2691],{"class":1801}," 150",[1053,2693,1463],{"class":1066},[1053,2695,2696,2698,2701,2703,2705,2707],{"class":1055,"line":1101},[1053,2697,2662],{"class":1193},[1053,2699,2700],{"class":1197},"is_featured",[1053,2702,1449],{"class":1193},[1053,2704,1452],{"class":1066},[1053,2706,1518],{"class":1517},[1053,2708,1463],{"class":1066},[1053,2710,2711,2713,2716,2718,2720,2723,2725,2728,2730,2732,2734,2736,2738,2740,2742,2745,2747],{"class":1055,"line":1124},[1053,2712,2662],{"class":1193},[1053,2714,2715],{"class":1197},"tags",[1053,2717,1449],{"class":1193},[1053,2719,1452],{"class":1066},[1053,2721,2722],{"class":1066}," [",[1053,2724,1449],{"class":1193},[1053,2726,2727],{"class":1197},"django",[1053,2729,1449],{"class":1193},[1053,2731,1495],{"class":1066},[1053,2733,1455],{"class":1193},[1053,2735,1414],{"class":1197},[1053,2737,1449],{"class":1193},[1053,2739,1495],{"class":1066},[1053,2741,1455],{"class":1193},[1053,2743,2744],{"class":1197},"web",[1053,2746,1449],{"class":1193},[1053,2748,2749],{"class":1066},"],\n",[1053,2751,2752],{"class":1055,"line":1133},[1053,2753,2754],{"class":1066},"}\n",[1043,2756,2758],{"className":1045,"code":2757,"language":1047,"meta":1048,"style":1048},"\u003C!-- template.html -->\n\u003Ch1>{{ title }}\u003C/h1>\n\u003Cp>We have {{ user_count }} users!\u003C/p>\n{% if is_featured %}\n    \u003Cspan class=\"featured\">Featured Content\u003C/span>\n{% endif %}\n\n\u003Cul>\n{% for tag in tags %}\n    \u003Cli>{{ tag }}\u003C/li>\n{% endfor %}\n\u003C/ul>\n",[1050,2759,2760,2765,2782,2799,2804,2832,2836,2840,2849,2854,2871,2875],{"__ignoreMap":1048},[1053,2761,2762],{"class":1055,"line":1056},[1053,2763,2764],{"class":1059},"\u003C!-- template.html -->\n",[1053,2766,2767,2769,2771,2773,2776,2778,2780],{"class":1055,"line":1063},[1053,2768,1084],{"class":1066},[1053,2770,1022],{"class":1070},[1053,2772,1110],{"class":1066},[1053,2774,2775],{"class":1113},"{{ title }}",[1053,2777,1117],{"class":1066},[1053,2779,1022],{"class":1070},[1053,2781,1078],{"class":1066},[1053,2783,2784,2786,2788,2790,2793,2795,2797],{"class":1055,"line":1081},[1053,2785,1084],{"class":1066},[1053,2787,1026],{"class":1070},[1053,2789,1110],{"class":1066},[1053,2791,2792],{"class":1113},"We have {{ user_count }} users!",[1053,2794,1117],{"class":1066},[1053,2796,1026],{"class":1070},[1053,2798,1078],{"class":1066},[1053,2800,2801],{"class":1055,"line":1091},[1053,2802,2803],{"class":1113},"{% if is_featured %}\n",[1053,2805,2806,2808,2810,2812,2814,2816,2819,2821,2823,2826,2828,2830],{"class":1055,"line":1101},[1053,2807,1104],{"class":1066},[1053,2809,1053],{"class":1070},[1053,2811,1187],{"class":1074},[1053,2813,1190],{"class":1066},[1053,2815,1194],{"class":1193},[1053,2817,2818],{"class":1197},"featured",[1053,2820,1194],{"class":1193},[1053,2822,1110],{"class":1066},[1053,2824,2825],{"class":1113},"Featured Content",[1053,2827,1117],{"class":1066},[1053,2829,1053],{"class":1070},[1053,2831,1078],{"class":1066},[1053,2833,2834],{"class":1055,"line":1124},[1053,2835,1305],{"class":1113},[1053,2837,2838],{"class":1055,"line":1133},[1053,2839,1311],{"emptyLinePlaceholder":1310},[1053,2841,2842,2844,2847],{"class":1055,"line":1143},[1053,2843,1084],{"class":1066},[1053,2845,2846],{"class":1070},"ul",[1053,2848,1078],{"class":1066},[1053,2850,2851],{"class":1055,"line":1161},[1053,2852,2853],{"class":1113},"{% for tag in tags %}\n",[1053,2855,2856,2858,2860,2862,2865,2867,2869],{"class":1055,"line":1179},[1053,2857,1104],{"class":1066},[1053,2859,1323],{"class":1070},[1053,2861,1110],{"class":1066},[1053,2863,2864],{"class":1113},"{{ tag }}",[1053,2866,1117],{"class":1066},[1053,2868,1323],{"class":1070},[1053,2870,1078],{"class":1066},[1053,2872,2873],{"class":1055,"line":1205},[1053,2874,1339],{"class":1113},[1053,2876,2877,2879,2881],{"class":1055,"line":1211},[1053,2878,1117],{"class":1066},[1053,2880,2846],{"class":1070},[1053,2882,1078],{"class":1066},[1026,2884,2885],{},[1244,2886,2887],{},"Object Attributes:",[1043,2889,2891],{"className":1412,"code":2890,"language":1414,"meta":1048,"style":1048},"# models.py\nclass Post(models.Model):\n    title = models.CharField(max_length=200)\n    author = models.ForeignKey(User, on_delete=models.CASCADE)\n    created_at = models.DateTimeField(auto_now_add=True)\n    \n    def get_absolute_url(self):\n        return reverse('blog:post_detail', kwargs={'pk': self.pk})\n    \n    @property\n    def word_count(self):\n        return len(self.content.split())\n",[1050,2892,2893,2898,2916,2943,2979,3004,3008,3021,3064,3068,3076,3089],{"__ignoreMap":1048},[1053,2894,2895],{"class":1055,"line":1056},[1053,2896,2897],{"class":1059},"# models.py\n",[1053,2899,2900,2902,2904,2906,2909,2911,2914],{"class":1055,"line":1063},[1053,2901,2427],{"class":2227},[1053,2903,2252],{"class":2430},[1053,2905,2235],{"class":1066},[1053,2907,2908],{"class":2436},"models",[1053,2910,2194],{"class":1066},[1053,2912,2913],{"class":2436},"Model",[1053,2915,2242],{"class":1066},[1053,2917,2918,2921,2923,2926,2928,2931,2933,2936,2938,2941],{"class":1055,"line":1081},[1053,2919,2920],{"class":1113},"    title ",[1053,2922,1190],{"class":1066},[1053,2924,2925],{"class":1113}," models",[1053,2927,2194],{"class":1066},[1053,2929,2930],{"class":2263},"CharField",[1053,2932,2235],{"class":1066},[1053,2934,2935],{"class":2269},"max_length",[1053,2937,1190],{"class":1066},[1053,2939,2940],{"class":1801},"200",[1053,2942,2293],{"class":1066},[1053,2944,2945,2948,2950,2952,2954,2957,2959,2962,2964,2967,2969,2971,2973,2977],{"class":1055,"line":1091},[1053,2946,2947],{"class":1113},"    author ",[1053,2949,1190],{"class":1066},[1053,2951,2925],{"class":1113},[1053,2953,2194],{"class":1066},[1053,2955,2956],{"class":2263},"ForeignKey",[1053,2958,2235],{"class":1066},[1053,2960,2961],{"class":2263},"User",[1053,2963,1495],{"class":1066},[1053,2965,2966],{"class":2269}," on_delete",[1053,2968,1190],{"class":1066},[1053,2970,2908],{"class":2263},[1053,2972,2194],{"class":1066},[1053,2974,2976],{"class":2975},"sFGJz","CASCADE",[1053,2978,2293],{"class":1066},[1053,2980,2981,2984,2986,2988,2990,2993,2995,2998,3000,3002],{"class":1055,"line":1101},[1053,2982,2983],{"class":1113},"    created_at ",[1053,2985,1190],{"class":1066},[1053,2987,2925],{"class":1113},[1053,2989,2194],{"class":1066},[1053,2991,2992],{"class":2263},"DateTimeField",[1053,2994,2235],{"class":1066},[1053,2996,2997],{"class":2269},"auto_now_add",[1053,2999,1190],{"class":1066},[1053,3001,2275],{"class":1517},[1053,3003,2293],{"class":1066},[1053,3005,3006],{"class":1055,"line":1124},[1053,3007,1971],{"class":1113},[1053,3009,3010,3012,3015,3017,3019],{"class":1055,"line":1133},[1053,3011,2494],{"class":2227},[1053,3013,3014],{"class":2231}," get_absolute_url",[1053,3016,2235],{"class":1066},[1053,3018,2503],{"class":2502},[1053,3020,2242],{"class":1066},[1053,3022,3023,3025,3028,3030,3032,3035,3037,3039,3042,3045,3047,3050,3052,3054,3057,3059,3061],{"class":1055,"line":1143},[1053,3024,2510],{"class":2187},[1053,3026,3027],{"class":2263}," reverse",[1053,3029,2235],{"class":1066},[1053,3031,1449],{"class":1193},[1053,3033,3034],{"class":1197},"blog:post_detail",[1053,3036,1449],{"class":1193},[1053,3038,1495],{"class":1066},[1053,3040,3041],{"class":2269}," kwargs",[1053,3043,3044],{"class":1066},"={",[1053,3046,1449],{"class":1193},[1053,3048,3049],{"class":1197},"pk",[1053,3051,1449],{"class":1193},[1053,3053,1452],{"class":1066},[1053,3055,3056],{"class":1426}," self",[1053,3058,2194],{"class":1066},[1053,3060,3049],{"class":2257},[1053,3062,3063],{"class":1066},"})\n",[1053,3065,3066],{"class":1055,"line":1161},[1053,3067,1971],{"class":1113},[1053,3069,3070,3073],{"class":1055,"line":1179},[1053,3071,3072],{"class":1066},"    @",[1053,3074,3075],{"class":2577},"property\n",[1053,3077,3078,3080,3083,3085,3087],{"class":1055,"line":1205},[1053,3079,2494],{"class":2227},[1053,3081,3082],{"class":2231}," word_count",[1053,3084,2235],{"class":1066},[1053,3086,2503],{"class":2502},[1053,3088,2242],{"class":1066},[1053,3090,3091,3093,3097,3099,3101,3103,3105,3107,3110],{"class":1055,"line":1211},[1053,3092,2510],{"class":2187},[1053,3094,3096],{"class":3095},"sJdAF"," len",[1053,3098,2235],{"class":1066},[1053,3100,2503],{"class":1426},[1053,3102,2194],{"class":1066},[1053,3104,1198],{"class":2257},[1053,3106,2194],{"class":1066},[1053,3108,3109],{"class":2263},"split",[1053,3111,3112],{"class":1066},"())\n",[1043,3114,3116],{"className":1045,"code":3115,"language":1047,"meta":1048,"style":1048},"\u003C!-- template.html -->\n\u003Ch2>{{ post.title }}\u003C/h2>\n\u003Cp>By {{ post.author.username }}\u003C/p>\n\u003Cp>Created: {{ post.created_at }}\u003C/p>\n\u003Cp>Word count: {{ post.word_count }}\u003C/p>\n\u003Ca href=\"{{ post.get_absolute_url }}\">Read more\u003C/a>\n",[1050,3117,3118,3122,3138,3155,3172,3189],{"__ignoreMap":1048},[1053,3119,3120],{"class":1055,"line":1056},[1053,3121,2764],{"class":1059},[1053,3123,3124,3126,3128,3130,3132,3134,3136],{"class":1055,"line":1063},[1053,3125,1084],{"class":1066},[1053,3127,1030],{"class":1070},[1053,3129,1110],{"class":1066},[1053,3131,1152],{"class":1113},[1053,3133,1117],{"class":1066},[1053,3135,1030],{"class":1070},[1053,3137,1078],{"class":1066},[1053,3139,3140,3142,3144,3146,3149,3151,3153],{"class":1055,"line":1081},[1053,3141,1084],{"class":1066},[1053,3143,1026],{"class":1070},[1053,3145,1110],{"class":1066},[1053,3147,3148],{"class":1113},"By {{ post.author.username }}",[1053,3150,1117],{"class":1066},[1053,3152,1026],{"class":1070},[1053,3154,1078],{"class":1066},[1053,3156,3157,3159,3161,3163,3166,3168,3170],{"class":1055,"line":1091},[1053,3158,1084],{"class":1066},[1053,3160,1026],{"class":1070},[1053,3162,1110],{"class":1066},[1053,3164,3165],{"class":1113},"Created: {{ post.created_at }}",[1053,3167,1117],{"class":1066},[1053,3169,1026],{"class":1070},[1053,3171,1078],{"class":1066},[1053,3173,3174,3176,3178,3180,3183,3185,3187],{"class":1055,"line":1101},[1053,3175,1084],{"class":1066},[1053,3177,1026],{"class":1070},[1053,3179,1110],{"class":1066},[1053,3181,3182],{"class":1113},"Word count: {{ post.word_count }}",[1053,3184,1117],{"class":1066},[1053,3186,1026],{"class":1070},[1053,3188,1078],{"class":1066},[1053,3190,3191,3193,3195,3197,3199,3201,3204,3206,3208,3210,3212,3214],{"class":1055,"line":1124},[1053,3192,1084],{"class":1066},[1053,3194,2082],{"class":1070},[1053,3196,2085],{"class":1074},[1053,3198,1190],{"class":1066},[1053,3200,1194],{"class":1193},[1053,3202,3203],{"class":1197},"{{ post.get_absolute_url }}",[1053,3205,1194],{"class":1193},[1053,3207,1110],{"class":1066},[1053,3209,2099],{"class":1113},[1053,3211,1117],{"class":1066},[1053,3213,2082],{"class":1070},[1053,3215,1078],{"class":1066},[1026,3217,3218],{},[1244,3219,3220],{},"Dictionary Access:",[1043,3222,3224],{"className":1412,"code":3223,"language":1414,"meta":1048,"style":1048},"# views.py\ncontext = {\n    'user_stats': {\n        'total': 1000,\n        'active': 750,\n        'new_today': 25,\n    },\n    'settings': {\n        'site_name': 'My Blog',\n        'maintenance_mode': False,\n    }\n}\n",[1050,3225,3226,3230,3238,3251,3267,3283,3299,3303,3316,3335,3351,3355],{"__ignoreMap":1048},[1053,3227,3228],{"class":1055,"line":1056},[1053,3229,2648],{"class":1059},[1053,3231,3232,3234,3236],{"class":1055,"line":1063},[1053,3233,2653],{"class":1113},[1053,3235,1190],{"class":1066},[1053,3237,1537],{"class":1066},[1053,3239,3240,3242,3245,3247,3249],{"class":1055,"line":1081},[1053,3241,2662],{"class":1193},[1053,3243,3244],{"class":1197},"user_stats",[1053,3246,1449],{"class":1193},[1053,3248,1452],{"class":1066},[1053,3250,1537],{"class":1066},[1053,3252,3253,3255,3258,3260,3262,3265],{"class":1055,"line":1091},[1053,3254,1443],{"class":1193},[1053,3256,3257],{"class":1197},"total",[1053,3259,1449],{"class":1193},[1053,3261,1452],{"class":1066},[1053,3263,3264],{"class":1801}," 1000",[1053,3266,1463],{"class":1066},[1053,3268,3269,3271,3274,3276,3278,3281],{"class":1055,"line":1101},[1053,3270,1443],{"class":1193},[1053,3272,3273],{"class":1197},"active",[1053,3275,1449],{"class":1193},[1053,3277,1452],{"class":1066},[1053,3279,3280],{"class":1801}," 750",[1053,3282,1463],{"class":1066},[1053,3284,3285,3287,3290,3292,3294,3297],{"class":1055,"line":1124},[1053,3286,1443],{"class":1193},[1053,3288,3289],{"class":1197},"new_today",[1053,3291,1449],{"class":1193},[1053,3293,1452],{"class":1066},[1053,3295,3296],{"class":1801}," 25",[1053,3298,1463],{"class":1066},[1053,3300,3301],{"class":1055,"line":1133},[1053,3302,1614],{"class":1066},[1053,3304,3305,3307,3310,3312,3314],{"class":1055,"line":1143},[1053,3306,2662],{"class":1193},[1053,3308,3309],{"class":1197},"settings",[1053,3311,1449],{"class":1193},[1053,3313,1452],{"class":1066},[1053,3315,1537],{"class":1066},[1053,3317,3318,3320,3323,3325,3327,3329,3331,3333],{"class":1055,"line":1161},[1053,3319,1443],{"class":1193},[1053,3321,3322],{"class":1197},"site_name",[1053,3324,1449],{"class":1193},[1053,3326,1452],{"class":1066},[1053,3328,1455],{"class":1193},[1053,3330,2673],{"class":1197},[1053,3332,1449],{"class":1193},[1053,3334,1463],{"class":1066},[1053,3336,3337,3339,3342,3344,3346,3349],{"class":1055,"line":1179},[1053,3338,1443],{"class":1193},[1053,3340,3341],{"class":1197},"maintenance_mode",[1053,3343,1449],{"class":1193},[1053,3345,1452],{"class":1066},[1053,3347,3348],{"class":1517}," False",[1053,3350,1463],{"class":1066},[1053,3352,3353],{"class":1055,"line":1205},[1053,3354,2343],{"class":1066},[1053,3356,3357],{"class":1055,"line":1211},[1053,3358,2754],{"class":1066},[1043,3360,3362],{"className":1045,"code":3361,"language":1047,"meta":1048,"style":1048},"\u003C!-- template.html -->\n\u003Ch1>{{ settings.site_name }}\u003C/h1>\n\u003Cp>Total users: {{ user_stats.total }}\u003C/p>\n\u003Cp>Active users: {{ user_stats.active }}\u003C/p>\n{% if not settings.maintenance_mode %}\n    \u003Cp>Site is operational\u003C/p>\n{% endif %}\n",[1050,3363,3364,3368,3385,3402,3419,3424,3441],{"__ignoreMap":1048},[1053,3365,3366],{"class":1055,"line":1056},[1053,3367,2764],{"class":1059},[1053,3369,3370,3372,3374,3376,3379,3381,3383],{"class":1055,"line":1063},[1053,3371,1084],{"class":1066},[1053,3373,1022],{"class":1070},[1053,3375,1110],{"class":1066},[1053,3377,3378],{"class":1113},"{{ settings.site_name }}",[1053,3380,1117],{"class":1066},[1053,3382,1022],{"class":1070},[1053,3384,1078],{"class":1066},[1053,3386,3387,3389,3391,3393,3396,3398,3400],{"class":1055,"line":1081},[1053,3388,1084],{"class":1066},[1053,3390,1026],{"class":1070},[1053,3392,1110],{"class":1066},[1053,3394,3395],{"class":1113},"Total users: {{ user_stats.total }}",[1053,3397,1117],{"class":1066},[1053,3399,1026],{"class":1070},[1053,3401,1078],{"class":1066},[1053,3403,3404,3406,3408,3410,3413,3415,3417],{"class":1055,"line":1091},[1053,3405,1084],{"class":1066},[1053,3407,1026],{"class":1070},[1053,3409,1110],{"class":1066},[1053,3411,3412],{"class":1113},"Active users: {{ user_stats.active }}",[1053,3414,1117],{"class":1066},[1053,3416,1026],{"class":1070},[1053,3418,1078],{"class":1066},[1053,3420,3421],{"class":1055,"line":1101},[1053,3422,3423],{"class":1113},"{% if not settings.maintenance_mode %}\n",[1053,3425,3426,3428,3430,3432,3435,3437,3439],{"class":1055,"line":1124},[1053,3427,1104],{"class":1066},[1053,3429,1026],{"class":1070},[1053,3431,1110],{"class":1066},[1053,3433,3434],{"class":1113},"Site is operational",[1053,3436,1117],{"class":1066},[1053,3438,1026],{"class":1070},[1053,3440,1078],{"class":1066},[1053,3442,3443],{"class":1055,"line":1133},[1053,3444,1305],{"class":1113},[1030,3446,3448],{"id":3447},"template-loading-and-resolution","Template Loading and Resolution",[1035,3450,3452],{"id":3451},"template-loader-order","Template Loader Order",[1026,3454,3455],{},"Django searches for templates in this order:",[3457,3458,3459,3468,3478],"ol",{},[1323,3460,3461,3464,3465],{},[1244,3462,3463],{},"Filesystem Loader"," - Directories in ",[1050,3466,3467],{},"TEMPLATES['DIRS']",[1323,3469,3470,3473,3474,3477],{},[1244,3471,3472],{},"App Directories Loader"," - ",[1050,3475,3476],{},"templates/"," folders in installed apps",[1323,3479,3480,3483],{},[1244,3481,3482],{},"Cached Loader"," - Cached templates (production)",[1035,3485,3487],{"id":3486},"template-name-resolution","Template Name Resolution",[1043,3489,3491],{"className":1412,"code":3490,"language":1414,"meta":1048,"style":1048},"# When you call render(request, 'blog/post_list.html', context)\n# Django looks for:\n\n# 1. /path/to/project/templates/blog/post_list.html\n# 2. /path/to/blog/templates/blog/post_list.html\n# 3. /path/to/other_app/templates/blog/post_list.html\n",[1050,3492,3493,3498,3503,3507,3512,3517],{"__ignoreMap":1048},[1053,3494,3495],{"class":1055,"line":1056},[1053,3496,3497],{"class":1059},"# When you call render(request, 'blog/post_list.html', context)\n",[1053,3499,3500],{"class":1055,"line":1063},[1053,3501,3502],{"class":1059},"# Django looks for:\n",[1053,3504,3505],{"class":1055,"line":1081},[1053,3506,1311],{"emptyLinePlaceholder":1310},[1053,3508,3509],{"class":1055,"line":1091},[1053,3510,3511],{"class":1059},"# 1. /path/to/project/templates/blog/post_list.html\n",[1053,3513,3514],{"class":1055,"line":1101},[1053,3515,3516],{"class":1059},"# 2. /path/to/blog/templates/blog/post_list.html\n",[1053,3518,3519],{"class":1055,"line":1124},[1053,3520,3521],{"class":1059},"# 3. /path/to/other_app/templates/blog/post_list.html\n",[1035,3523,3525],{"id":3524},"avoiding-template-name-conflicts","Avoiding Template Name Conflicts",[1026,3527,3528],{},[1244,3529,3530],{},"Good Practice - Namespace Templates:",[1043,3532,3535],{"className":3533,"code":3534,"language":1630},[1628],"blog/templates/blog/post_list.html     # ✓ Namespaced\naccounts/templates/accounts/login.html  # ✓ Namespaced\n",[1050,3536,3534],{"__ignoreMap":1048},[1026,3538,3539],{},[1244,3540,3541],{},"Bad Practice - No Namespace:",[1043,3543,3546],{"className":3544,"code":3545,"language":1630},[1628],"blog/templates/post_list.html          # ✗ Could conflict\naccounts/templates/login.html          # ✗ Could conflict\n",[1050,3547,3545],{"__ignoreMap":1048},[1030,3549,3551],{"id":3550},"context-processors","Context Processors",[1035,3553,3555],{"id":3554},"built-in-context-processors","Built-in Context Processors",[1026,3557,3558],{},"Context processors add variables to every template context:",[1043,3560,3562],{"className":1412,"code":3561,"language":1414,"meta":1048,"style":1048},"# settings.py\nTEMPLATES = [{\n    'OPTIONS': {\n        'context_processors': [\n            'django.template.context_processors.debug',      # {{ debug }}\n            'django.template.context_processors.request',    # {{ request }}\n            'django.contrib.auth.context_processors.auth',   # {{ user }}, {{ perms }}\n            'django.contrib.messages.context_processors.messages',  # {{ messages }}\n        ],\n    },\n}]\n",[1050,3563,3564,3568,3577,3589,3601,3614,3627,3640,3653,3657,3661],{"__ignoreMap":1048},[1053,3565,3566],{"class":1055,"line":1056},[1053,3567,1421],{"class":1059},[1053,3569,3570,3572,3574],{"class":1055,"line":1063},[1053,3571,1427],{"class":1426},[1053,3573,1430],{"class":1066},[1053,3575,3576],{"class":1066}," [{\n",[1053,3578,3579,3581,3583,3585,3587],{"class":1055,"line":1081},[1053,3580,2662],{"class":1193},[1053,3582,1530],{"class":1197},[1053,3584,1449],{"class":1193},[1053,3586,1452],{"class":1066},[1053,3588,1537],{"class":1066},[1053,3590,3591,3593,3595,3597,3599],{"class":1055,"line":1091},[1053,3592,1443],{"class":1193},[1053,3594,1545],{"class":1197},[1053,3596,1449],{"class":1193},[1053,3598,1452],{"class":1066},[1053,3600,1433],{"class":1066},[1053,3602,3603,3605,3607,3609,3611],{"class":1055,"line":1101},[1053,3604,1542],{"class":1193},[1053,3606,1559],{"class":1197},[1053,3608,1449],{"class":1193},[1053,3610,1495],{"class":1066},[1053,3612,3613],{"class":1059},"      # {{ debug }}\n",[1053,3615,3616,3618,3620,3622,3624],{"class":1055,"line":1124},[1053,3617,1542],{"class":1193},[1053,3619,1570],{"class":1197},[1053,3621,1449],{"class":1193},[1053,3623,1495],{"class":1066},[1053,3625,3626],{"class":1059},"    # {{ request }}\n",[1053,3628,3629,3631,3633,3635,3637],{"class":1055,"line":1133},[1053,3630,1542],{"class":1193},[1053,3632,1581],{"class":1197},[1053,3634,1449],{"class":1193},[1053,3636,1495],{"class":1066},[1053,3638,3639],{"class":1059},"   # {{ user }}, {{ perms }}\n",[1053,3641,3642,3644,3646,3648,3650],{"class":1055,"line":1143},[1053,3643,1542],{"class":1193},[1053,3645,1592],{"class":1197},[1053,3647,1449],{"class":1193},[1053,3649,1495],{"class":1066},[1053,3651,3652],{"class":1059},"  # {{ messages }}\n",[1053,3654,3655],{"class":1055,"line":1161},[1053,3656,1503],{"class":1066},[1053,3658,3659],{"class":1055,"line":1179},[1053,3660,1614],{"class":1066},[1053,3662,3663],{"class":1055,"line":1205},[1053,3664,3665],{"class":1066},"}]\n",[1026,3667,3668],{},[1244,3669,3670],{},"Using Built-in Context Variables:",[1043,3672,3674],{"className":1045,"code":3673,"language":1047,"meta":1048,"style":1048},"\u003C!-- Available in all templates -->\n\u003Cp>Hello, {{ user.username }}!\u003C/p>\n\u003Cp>Current path: {{ request.path }}\u003C/p>\n\n{% if messages %}\n    {% for message in messages %}\n        \u003Cdiv class=\"alert alert-{{ message.tags }}\">\n            {{ message }}\n        \u003C/div>\n    {% endfor %}\n{% endif %}\n\n{% if debug %}\n    \u003Cdiv class=\"debug-info\">Debug mode is on\u003C/div>\n{% endif %}\n",[1050,3675,3676,3681,3698,3715,3719,3724,3729,3748,3753,3761,3765,3769,3773,3778,3806],{"__ignoreMap":1048},[1053,3677,3678],{"class":1055,"line":1056},[1053,3679,3680],{"class":1059},"\u003C!-- Available in all templates -->\n",[1053,3682,3683,3685,3687,3689,3692,3694,3696],{"class":1055,"line":1063},[1053,3684,1084],{"class":1066},[1053,3686,1026],{"class":1070},[1053,3688,1110],{"class":1066},[1053,3690,3691],{"class":1113},"Hello, {{ user.username }}!",[1053,3693,1117],{"class":1066},[1053,3695,1026],{"class":1070},[1053,3697,1078],{"class":1066},[1053,3699,3700,3702,3704,3706,3709,3711,3713],{"class":1055,"line":1081},[1053,3701,1084],{"class":1066},[1053,3703,1026],{"class":1070},[1053,3705,1110],{"class":1066},[1053,3707,3708],{"class":1113},"Current path: {{ request.path }}",[1053,3710,1117],{"class":1066},[1053,3712,1026],{"class":1070},[1053,3714,1078],{"class":1066},[1053,3716,3717],{"class":1055,"line":1091},[1053,3718,1311],{"emptyLinePlaceholder":1310},[1053,3720,3721],{"class":1055,"line":1101},[1053,3722,3723],{"class":1113},"{% if messages %}\n",[1053,3725,3726],{"class":1055,"line":1124},[1053,3727,3728],{"class":1113},"    {% for message in messages %}\n",[1053,3730,3731,3733,3735,3737,3739,3741,3744,3746],{"class":1055,"line":1133},[1053,3732,1982],{"class":1066},[1053,3734,1184],{"class":1070},[1053,3736,1187],{"class":1074},[1053,3738,1190],{"class":1066},[1053,3740,1194],{"class":1193},[1053,3742,3743],{"class":1197},"alert alert-{{ message.tags }}",[1053,3745,1194],{"class":1193},[1053,3747,1078],{"class":1066},[1053,3749,3750],{"class":1055,"line":1143},[1053,3751,3752],{"class":1113},"            {{ message }}\n",[1053,3754,3755,3757,3759],{"class":1055,"line":1161},[1053,3756,2111],{"class":1066},[1053,3758,1184],{"class":1070},[1053,3760,1078],{"class":1066},[1053,3762,3763],{"class":1055,"line":1179},[1053,3764,2145],{"class":1113},[1053,3766,3767],{"class":1055,"line":1205},[1053,3768,1305],{"class":1113},[1053,3770,3771],{"class":1055,"line":1211},[1053,3772,1311],{"emptyLinePlaceholder":1310},[1053,3774,3775],{"class":1055,"line":1221},[1053,3776,3777],{"class":1113},"{% if debug %}\n",[1053,3779,3780,3782,3784,3786,3788,3790,3793,3795,3797,3800,3802,3804],{"class":1055,"line":1230},[1053,3781,1104],{"class":1066},[1053,3783,1184],{"class":1070},[1053,3785,1187],{"class":1074},[1053,3787,1190],{"class":1066},[1053,3789,1194],{"class":1193},[1053,3791,3792],{"class":1197},"debug-info",[1053,3794,1194],{"class":1193},[1053,3796,1110],{"class":1066},[1053,3798,3799],{"class":1113},"Debug mode is on",[1053,3801,1117],{"class":1066},[1053,3803,1184],{"class":1070},[1053,3805,1078],{"class":1066},[1053,3807,3808],{"class":1055,"line":1599},[1053,3809,1305],{"class":1113},[1035,3811,3813],{"id":3812},"custom-context-processors","Custom Context Processors",[1043,3815,3817],{"className":1412,"code":3816,"language":1414,"meta":1048,"style":1048},"# blog/context_processors.py\nfrom .models import Category\n\ndef blog_context(request):\n    \"\"\"Add blog-specific context to all templates.\"\"\"\n    return {\n        'site_name': 'My Awesome Blog',\n        'categories': Category.objects.all(),\n        'recent_posts': Post.objects.filter(published=True)[:5],\n    }\n",[1050,3818,3819,3824,3837,3841,3854,3867,3873,3892,3918,3955],{"__ignoreMap":1048},[1053,3820,3821],{"class":1055,"line":1056},[1053,3822,3823],{"class":1059},"# blog/context_processors.py\n",[1053,3825,3826,3828,3830,3832,3834],{"class":1055,"line":1063},[1053,3827,2188],{"class":2187},[1053,3829,2210],{"class":1066},[1053,3831,2213],{"class":1113},[1053,3833,2200],{"class":2187},[1053,3835,3836],{"class":1113}," Category\n",[1053,3838,3839],{"class":1055,"line":1081},[1053,3840,1311],{"emptyLinePlaceholder":1310},[1053,3842,3843,3845,3848,3850,3852],{"class":1055,"line":1091},[1053,3844,2228],{"class":2227},[1053,3846,3847],{"class":2231}," blog_context",[1053,3849,2235],{"class":1066},[1053,3851,2239],{"class":2238},[1053,3853,2242],{"class":1066},[1053,3855,3856,3860,3864],{"class":1055,"line":1101},[1053,3857,3859],{"class":3858},"sm7ve","    \"\"\"",[1053,3861,3863],{"class":3862},"sVyVU","Add blog-specific context to all templates.",[1053,3865,3866],{"class":3858},"\"\"\"\n",[1053,3868,3869,3871],{"class":1055,"line":1124},[1053,3870,2348],{"class":2187},[1053,3872,1537],{"class":1066},[1053,3874,3875,3877,3879,3881,3883,3885,3888,3890],{"class":1055,"line":1133},[1053,3876,1443],{"class":1193},[1053,3878,3322],{"class":1197},[1053,3880,1449],{"class":1193},[1053,3882,1452],{"class":1066},[1053,3884,1455],{"class":1193},[1053,3886,3887],{"class":1197},"My Awesome Blog",[1053,3889,1449],{"class":1193},[1053,3891,1463],{"class":1066},[1053,3893,3894,3896,3899,3901,3903,3906,3908,3910,3912,3915],{"class":1055,"line":1143},[1053,3895,1443],{"class":1193},[1053,3897,3898],{"class":1197},"categories",[1053,3900,1449],{"class":1193},[1053,3902,1452],{"class":1066},[1053,3904,3905],{"class":1113}," Category",[1053,3907,2194],{"class":1066},[1053,3909,2258],{"class":2257},[1053,3911,2194],{"class":1066},[1053,3913,3914],{"class":2263},"all",[1053,3916,3917],{"class":1066},"(),\n",[1053,3919,3920,3922,3925,3927,3929,3931,3933,3935,3937,3939,3941,3943,3945,3947,3950,3953],{"class":1055,"line":1161},[1053,3921,1443],{"class":1193},[1053,3923,3924],{"class":1197},"recent_posts",[1053,3926,1449],{"class":1193},[1053,3928,1452],{"class":1066},[1053,3930,2252],{"class":1113},[1053,3932,2194],{"class":1066},[1053,3934,2258],{"class":2257},[1053,3936,2194],{"class":1066},[1053,3938,2264],{"class":2263},[1053,3940,2235],{"class":1066},[1053,3942,2270],{"class":2269},[1053,3944,1190],{"class":1066},[1053,3946,2275],{"class":1517},[1053,3948,3949],{"class":1066},")[:",[1053,3951,3952],{"class":1801},"5",[1053,3954,2749],{"class":1066},[1053,3956,3957],{"class":1055,"line":1179},[1053,3958,2343],{"class":1066},[1043,3960,3962],{"className":1412,"code":3961,"language":1414,"meta":1048,"style":1048},"# settings.py\nTEMPLATES = [{\n    'OPTIONS': {\n        'context_processors': [\n            # ... built-in processors\n            'blog.context_processors.blog_context',\n        ],\n    },\n}]\n",[1050,3963,3964,3968,3976,3988,4000,4005,4016,4020,4024],{"__ignoreMap":1048},[1053,3965,3966],{"class":1055,"line":1056},[1053,3967,1421],{"class":1059},[1053,3969,3970,3972,3974],{"class":1055,"line":1063},[1053,3971,1427],{"class":1426},[1053,3973,1430],{"class":1066},[1053,3975,3576],{"class":1066},[1053,3977,3978,3980,3982,3984,3986],{"class":1055,"line":1081},[1053,3979,2662],{"class":1193},[1053,3981,1530],{"class":1197},[1053,3983,1449],{"class":1193},[1053,3985,1452],{"class":1066},[1053,3987,1537],{"class":1066},[1053,3989,3990,3992,3994,3996,3998],{"class":1055,"line":1091},[1053,3991,1443],{"class":1193},[1053,3993,1545],{"class":1197},[1053,3995,1449],{"class":1193},[1053,3997,1452],{"class":1066},[1053,3999,1433],{"class":1066},[1053,4001,4002],{"class":1055,"line":1101},[1053,4003,4004],{"class":1059},"            # ... built-in processors\n",[1053,4006,4007,4009,4012,4014],{"class":1055,"line":1124},[1053,4008,1542],{"class":1193},[1053,4010,4011],{"class":1197},"blog.context_processors.blog_context",[1053,4013,1449],{"class":1193},[1053,4015,1463],{"class":1066},[1053,4017,4018],{"class":1055,"line":1133},[1053,4019,1503],{"class":1066},[1053,4021,4022],{"class":1055,"line":1143},[1053,4023,1614],{"class":1066},[1053,4025,4026],{"class":1055,"line":1161},[1053,4027,3665],{"class":1066},[1043,4029,4031],{"className":1045,"code":4030,"language":1047,"meta":1048,"style":1048},"\u003C!-- Now available in all templates -->\n\u003Ch1>{{ site_name }}\u003C/h1>\n\n\u003Cnav>\n    {% for category in categories %}\n        \u003Ca href=\"{% url 'blog:category' category.slug %}\">{{ category.name }}\u003C/a>\n    {% endfor %}\n\u003C/nav>\n\n\u003Caside>\n    \u003Ch3>Recent Posts\u003C/h3>\n    {% for post in recent_posts %}\n        \u003Ca href=\"{{ post.get_absolute_url }}\">{{ post.title }}\u003C/a>\n    {% endfor %}\n\u003C/aside>\n",[1050,4032,4033,4038,4055,4059,4068,4073,4101,4105,4113,4117,4126,4143,4148,4174,4178],{"__ignoreMap":1048},[1053,4034,4035],{"class":1055,"line":1056},[1053,4036,4037],{"class":1059},"\u003C!-- Now available in all templates -->\n",[1053,4039,4040,4042,4044,4046,4049,4051,4053],{"class":1055,"line":1063},[1053,4041,1084],{"class":1066},[1053,4043,1022],{"class":1070},[1053,4045,1110],{"class":1066},[1053,4047,4048],{"class":1113},"{{ site_name }}",[1053,4050,1117],{"class":1066},[1053,4052,1022],{"class":1070},[1053,4054,1078],{"class":1066},[1053,4056,4057],{"class":1055,"line":1081},[1053,4058,1311],{"emptyLinePlaceholder":1310},[1053,4060,4061,4063,4066],{"class":1055,"line":1091},[1053,4062,1084],{"class":1066},[1053,4064,4065],{"class":1070},"nav",[1053,4067,1078],{"class":1066},[1053,4069,4070],{"class":1055,"line":1101},[1053,4071,4072],{"class":1113},"    {% for category in categories %}\n",[1053,4074,4075,4077,4079,4081,4083,4085,4088,4090,4092,4095,4097,4099],{"class":1055,"line":1124},[1053,4076,1982],{"class":1066},[1053,4078,2082],{"class":1070},[1053,4080,2085],{"class":1074},[1053,4082,1190],{"class":1066},[1053,4084,1194],{"class":1193},[1053,4086,4087],{"class":1197},"{% url 'blog:category' category.slug %}",[1053,4089,1194],{"class":1193},[1053,4091,1110],{"class":1066},[1053,4093,4094],{"class":1113},"{{ category.name }}",[1053,4096,1117],{"class":1066},[1053,4098,2082],{"class":1070},[1053,4100,1078],{"class":1066},[1053,4102,4103],{"class":1055,"line":1133},[1053,4104,2145],{"class":1113},[1053,4106,4107,4109,4111],{"class":1055,"line":1143},[1053,4108,1117],{"class":1066},[1053,4110,4065],{"class":1070},[1053,4112,1078],{"class":1066},[1053,4114,4115],{"class":1055,"line":1161},[1053,4116,1311],{"emptyLinePlaceholder":1310},[1053,4118,4119,4121,4124],{"class":1055,"line":1179},[1053,4120,1084],{"class":1066},[1053,4122,4123],{"class":1070},"aside",[1053,4125,1078],{"class":1066},[1053,4127,4128,4130,4132,4134,4137,4139,4141],{"class":1055,"line":1205},[1053,4129,1104],{"class":1066},[1053,4131,1035],{"class":1070},[1053,4133,1110],{"class":1066},[1053,4135,4136],{"class":1113},"Recent Posts",[1053,4138,1117],{"class":1066},[1053,4140,1035],{"class":1070},[1053,4142,1078],{"class":1066},[1053,4144,4145],{"class":1055,"line":1211},[1053,4146,4147],{"class":1113},"    {% for post in recent_posts %}\n",[1053,4149,4150,4152,4154,4156,4158,4160,4162,4164,4166,4168,4170,4172],{"class":1055,"line":1221},[1053,4151,1982],{"class":1066},[1053,4153,2082],{"class":1070},[1053,4155,2085],{"class":1074},[1053,4157,1190],{"class":1066},[1053,4159,1194],{"class":1193},[1053,4161,3203],{"class":1197},[1053,4163,1194],{"class":1193},[1053,4165,1110],{"class":1066},[1053,4167,1152],{"class":1113},[1053,4169,1117],{"class":1066},[1053,4171,2082],{"class":1070},[1053,4173,1078],{"class":1066},[1053,4175,4176],{"class":1055,"line":1230},[1053,4177,2145],{"class":1113},[1053,4179,4180,4182,4184],{"class":1055,"line":1599},[1053,4181,1117],{"class":1066},[1053,4183,4123],{"class":1070},[1053,4185,1078],{"class":1066},[1030,4187,4189],{"id":4188},"template-security","Template Security",[1035,4191,4193],{"id":4192},"automatic-html-escaping","Automatic HTML Escaping",[1026,4195,4196],{},"Django automatically escapes variables to prevent XSS attacks:",[1043,4198,4200],{"className":1412,"code":4199,"language":1414,"meta":1048,"style":1048},"# views.py\ncontext = {\n    'user_input': '\u003Cscript>alert(\"XSS\")\u003C/script>',\n    'safe_html': '\u003Cstrong>Bold text\u003C/strong>',\n}\n",[1050,4201,4202,4206,4214,4234,4254],{"__ignoreMap":1048},[1053,4203,4204],{"class":1055,"line":1056},[1053,4205,2648],{"class":1059},[1053,4207,4208,4210,4212],{"class":1055,"line":1063},[1053,4209,2653],{"class":1113},[1053,4211,1190],{"class":1066},[1053,4213,1537],{"class":1066},[1053,4215,4216,4218,4221,4223,4225,4227,4230,4232],{"class":1055,"line":1081},[1053,4217,2662],{"class":1193},[1053,4219,4220],{"class":1197},"user_input",[1053,4222,1449],{"class":1193},[1053,4224,1452],{"class":1066},[1053,4226,1455],{"class":1193},[1053,4228,4229],{"class":1197},"\u003Cscript>alert(\"XSS\")\u003C/script>",[1053,4231,1449],{"class":1193},[1053,4233,1463],{"class":1066},[1053,4235,4236,4238,4241,4243,4245,4247,4250,4252],{"class":1055,"line":1091},[1053,4237,2662],{"class":1193},[1053,4239,4240],{"class":1197},"safe_html",[1053,4242,1449],{"class":1193},[1053,4244,1452],{"class":1066},[1053,4246,1455],{"class":1193},[1053,4248,4249],{"class":1197},"\u003Cstrong>Bold text\u003C/strong>",[1053,4251,1449],{"class":1193},[1053,4253,1463],{"class":1066},[1053,4255,4256],{"class":1055,"line":1101},[1053,4257,2754],{"class":1066},[1043,4259,4261],{"className":1045,"code":4260,"language":1047,"meta":1048,"style":1048},"\u003C!-- template.html -->\n{{ user_input }}  \u003C!-- Outputs: &lt;script&gt;alert(\"XSS\")&lt;/script&gt; -->\n{{ safe_html }}   \u003C!-- Outputs: &lt;strong&gt;Bold text&lt;/strong&gt; -->\n\n\u003C!-- To output unescaped HTML (use carefully!) -->\n{{ safe_html|safe }}  \u003C!-- Outputs: \u003Cstrong>Bold text\u003C/strong> -->\n",[1050,4262,4263,4267,4275,4283,4287,4292],{"__ignoreMap":1048},[1053,4264,4265],{"class":1055,"line":1056},[1053,4266,2764],{"class":1059},[1053,4268,4269,4272],{"class":1055,"line":1063},[1053,4270,4271],{"class":1113},"{{ user_input }}  ",[1053,4273,4274],{"class":1059},"\u003C!-- Outputs: &lt;script&gt;alert(\"XSS\")&lt;/script&gt; -->\n",[1053,4276,4277,4280],{"class":1055,"line":1081},[1053,4278,4279],{"class":1113},"{{ safe_html }}   ",[1053,4281,4282],{"class":1059},"\u003C!-- Outputs: &lt;strong&gt;Bold text&lt;/strong&gt; -->\n",[1053,4284,4285],{"class":1055,"line":1091},[1053,4286,1311],{"emptyLinePlaceholder":1310},[1053,4288,4289],{"class":1055,"line":1101},[1053,4290,4291],{"class":1059},"\u003C!-- To output unescaped HTML (use carefully!) -->\n",[1053,4293,4294,4297],{"class":1055,"line":1124},[1053,4295,4296],{"class":1113},"{{ safe_html|safe }}  ",[1053,4298,4299],{"class":1059},"\u003C!-- Outputs: \u003Cstrong>Bold text\u003C/strong> -->\n",[1035,4301,4303],{"id":4302},"safe-vs-unsafe-content","Safe vs Unsafe Content",[1043,4305,4307],{"className":1412,"code":4306,"language":1414,"meta":1048,"style":1048},"# views.py\nfrom django.utils.safestring import mark_safe\n\ndef my_view(request):\n    # Unsafe - will be escaped\n    unsafe_content = '\u003Cp>This will be escaped\u003C/p>'\n    \n    # Safe - marked as safe HTML\n    safe_content = mark_safe('\u003Cp>This is safe HTML\u003C/p>')\n    \n    context = {\n        'unsafe_content': unsafe_content,\n        'safe_content': safe_content,\n    }\n    return render(request, 'template.html', context)\n",[1050,4308,4309,4313,4334,4338,4351,4356,4370,4374,4379,4400,4404,4412,4428,4444,4448],{"__ignoreMap":1048},[1053,4310,4311],{"class":1055,"line":1056},[1053,4312,2648],{"class":1059},[1053,4314,4315,4317,4319,4321,4324,4326,4329,4331],{"class":1055,"line":1063},[1053,4316,2188],{"class":2187},[1053,4318,2191],{"class":1113},[1053,4320,2194],{"class":1066},[1053,4322,4323],{"class":1113},"utils",[1053,4325,2194],{"class":1066},[1053,4327,4328],{"class":1113},"safestring ",[1053,4330,2200],{"class":2187},[1053,4332,4333],{"class":1113}," mark_safe\n",[1053,4335,4336],{"class":1055,"line":1081},[1053,4337,1311],{"emptyLinePlaceholder":1310},[1053,4339,4340,4342,4345,4347,4349],{"class":1055,"line":1091},[1053,4341,2228],{"class":2227},[1053,4343,4344],{"class":2231}," my_view",[1053,4346,2235],{"class":1066},[1053,4348,2239],{"class":2238},[1053,4350,2242],{"class":1066},[1053,4352,4353],{"class":1055,"line":1101},[1053,4354,4355],{"class":1059},"    # Unsafe - will be escaped\n",[1053,4357,4358,4361,4363,4365,4368],{"class":1055,"line":1124},[1053,4359,4360],{"class":1113},"    unsafe_content ",[1053,4362,1190],{"class":1066},[1053,4364,1455],{"class":1193},[1053,4366,4367],{"class":1197},"\u003Cp>This will be escaped\u003C/p>",[1053,4369,2462],{"class":1193},[1053,4371,4372],{"class":1055,"line":1133},[1053,4373,1971],{"class":1113},[1053,4375,4376],{"class":1055,"line":1143},[1053,4377,4378],{"class":1059},"    # Safe - marked as safe HTML\n",[1053,4380,4381,4384,4386,4389,4391,4393,4396,4398],{"class":1055,"line":1161},[1053,4382,4383],{"class":1113},"    safe_content ",[1053,4385,1190],{"class":1066},[1053,4387,4388],{"class":2263}," mark_safe",[1053,4390,2235],{"class":1066},[1053,4392,1449],{"class":1193},[1053,4394,4395],{"class":1197},"\u003Cp>This is safe HTML\u003C/p>",[1053,4397,1449],{"class":1193},[1053,4399,2293],{"class":1066},[1053,4401,4402],{"class":1055,"line":1179},[1053,4403,1971],{"class":1113},[1053,4405,4406,4408,4410],{"class":1055,"line":1205},[1053,4407,2298],{"class":1113},[1053,4409,1190],{"class":1066},[1053,4411,1537],{"class":1066},[1053,4413,4414,4416,4419,4421,4423,4426],{"class":1055,"line":1211},[1053,4415,1443],{"class":1193},[1053,4417,4418],{"class":1197},"unsafe_content",[1053,4420,1449],{"class":1193},[1053,4422,1452],{"class":1066},[1053,4424,4425],{"class":1113}," unsafe_content",[1053,4427,1463],{"class":1066},[1053,4429,4430,4432,4435,4437,4439,4442],{"class":1055,"line":1221},[1053,4431,1443],{"class":1193},[1053,4433,4434],{"class":1197},"safe_content",[1053,4436,1449],{"class":1193},[1053,4438,1452],{"class":1066},[1053,4440,4441],{"class":1113}," safe_content",[1053,4443,1463],{"class":1066},[1053,4445,4446],{"class":1055,"line":1230},[1053,4447,2343],{"class":1066},[1053,4449,4450,4452,4454,4456,4458,4460,4462,4465,4467,4469,4471],{"class":1055,"line":1599},[1053,4451,2348],{"class":2187},[1053,4453,2351],{"class":2263},[1053,4455,2235],{"class":1066},[1053,4457,2239],{"class":2263},[1053,4459,1495],{"class":1066},[1053,4461,1455],{"class":1193},[1053,4463,4464],{"class":1197},"template.html",[1053,4466,1449],{"class":1193},[1053,4468,1495],{"class":1066},[1053,4470,2369],{"class":2263},[1053,4472,2293],{"class":1066},[1043,4474,4476],{"className":1045,"code":4475,"language":1047,"meta":1048,"style":1048},"\u003C!-- template.html -->\n{{ unsafe_content }}  \u003C!-- Escaped -->\n{{ safe_content }}    \u003C!-- Not escaped -->\n\n\u003C!-- Alternative: use the safe filter -->\n{{ unsafe_content|safe }}  \u003C!-- Not escaped - be careful! -->\n",[1050,4477,4478,4482,4490,4498,4502,4507],{"__ignoreMap":1048},[1053,4479,4480],{"class":1055,"line":1056},[1053,4481,2764],{"class":1059},[1053,4483,4484,4487],{"class":1055,"line":1063},[1053,4485,4486],{"class":1113},"{{ unsafe_content }}  ",[1053,4488,4489],{"class":1059},"\u003C!-- Escaped -->\n",[1053,4491,4492,4495],{"class":1055,"line":1081},[1053,4493,4494],{"class":1113},"{{ safe_content }}    ",[1053,4496,4497],{"class":1059},"\u003C!-- Not escaped -->\n",[1053,4499,4500],{"class":1055,"line":1091},[1053,4501,1311],{"emptyLinePlaceholder":1310},[1053,4503,4504],{"class":1055,"line":1101},[1053,4505,4506],{"class":1059},"\u003C!-- Alternative: use the safe filter -->\n",[1053,4508,4509,4512],{"class":1055,"line":1124},[1053,4510,4511],{"class":1113},"{{ unsafe_content|safe }}  ",[1053,4513,4514],{"class":1059},"\u003C!-- Not escaped - be careful! -->\n",[1030,4516,4518],{"id":4517},"error-handling","Error Handling",[1035,4520,4522],{"id":4521},"template-error-types","Template Error Types",[1026,4524,4525],{},[1244,4526,4527],{},"TemplateDoesNotExist:",[1043,4529,4531],{"className":1412,"code":4530,"language":1414,"meta":1048,"style":1048},"# Common causes:\n# 1. Wrong template path\nreturn render(request, 'blog/nonexistent.html', context)\n\n# 2. Missing app in INSTALLED_APPS\n# 3. Incorrect TEMPLATES configuration\n",[1050,4532,4533,4538,4543,4569,4573,4578],{"__ignoreMap":1048},[1053,4534,4535],{"class":1055,"line":1056},[1053,4536,4537],{"class":1059},"# Common causes:\n",[1053,4539,4540],{"class":1055,"line":1063},[1053,4541,4542],{"class":1059},"# 1. Wrong template path\n",[1053,4544,4545,4548,4550,4552,4554,4556,4558,4561,4563,4565,4567],{"class":1055,"line":1081},[1053,4546,4547],{"class":2187},"return",[1053,4549,2351],{"class":2263},[1053,4551,2235],{"class":1066},[1053,4553,2239],{"class":2263},[1053,4555,1495],{"class":1066},[1053,4557,1455],{"class":1193},[1053,4559,4560],{"class":1197},"blog/nonexistent.html",[1053,4562,1449],{"class":1193},[1053,4564,1495],{"class":1066},[1053,4566,2369],{"class":2263},[1053,4568,2293],{"class":1066},[1053,4570,4571],{"class":1055,"line":1091},[1053,4572,1311],{"emptyLinePlaceholder":1310},[1053,4574,4575],{"class":1055,"line":1101},[1053,4576,4577],{"class":1059},"# 2. Missing app in INSTALLED_APPS\n",[1053,4579,4580],{"class":1055,"line":1124},[1053,4581,4582],{"class":1059},"# 3. Incorrect TEMPLATES configuration\n",[1026,4584,4585],{},[1244,4586,4587],{},"TemplateSyntaxError:",[1043,4589,4591],{"className":1045,"code":4590,"language":1047,"meta":1048,"style":1048},"\u003C!-- Common syntax errors -->\n{% if condition %  \u003C!-- Missing closing % -->\n{{ variable.missing_closing_brace\n{% for item in items %}  \u003C!-- Missing {% endfor %} -->\n",[1050,4592,4593,4598,4606,4611],{"__ignoreMap":1048},[1053,4594,4595],{"class":1055,"line":1056},[1053,4596,4597],{"class":1059},"\u003C!-- Common syntax errors -->\n",[1053,4599,4600,4603],{"class":1055,"line":1063},[1053,4601,4602],{"class":1113},"{% if condition %  ",[1053,4604,4605],{"class":1059},"\u003C!-- Missing closing % -->\n",[1053,4607,4608],{"class":1055,"line":1081},[1053,4609,4610],{"class":1113},"{{ variable.missing_closing_brace\n",[1053,4612,4613,4616],{"class":1055,"line":1091},[1053,4614,4615],{"class":1113},"{% for item in items %}  ",[1053,4617,4618],{"class":1059},"\u003C!-- Missing {% endfor %} -->\n",[1026,4620,4621],{},[1244,4622,4623],{},"VariableDoesNotExist:",[1043,4625,4627],{"className":1045,"code":4626,"language":1047,"meta":1048,"style":1048},"\u003C!-- Accessing undefined variables -->\n{{ undefined_variable }}  \u003C!-- Returns empty string in production -->\n{{ object.nonexistent_attribute }}  \u003C!-- Returns empty string -->\n",[1050,4628,4629,4634,4642],{"__ignoreMap":1048},[1053,4630,4631],{"class":1055,"line":1056},[1053,4632,4633],{"class":1059},"\u003C!-- Accessing undefined variables -->\n",[1053,4635,4636,4639],{"class":1055,"line":1063},[1053,4637,4638],{"class":1113},"{{ undefined_variable }}  ",[1053,4640,4641],{"class":1059},"\u003C!-- Returns empty string in production -->\n",[1053,4643,4644,4647],{"class":1055,"line":1081},[1053,4645,4646],{"class":1113},"{{ object.nonexistent_attribute }}  ",[1053,4648,4649],{"class":1059},"\u003C!-- Returns empty string -->\n",[1035,4651,4653],{"id":4652},"debug-mode-vs-production","Debug Mode vs Production",[1026,4655,4656],{},[1244,4657,4658],{},"Debug Mode (DEBUG=True):",[2846,4660,4661,4664,4667,4670],{},[1323,4662,4663],{},"Detailed error pages",[1323,4665,4666],{},"Template source highlighting",[1323,4668,4669],{},"Variable inspection",[1323,4671,4672],{},"Helpful error messages",[1026,4674,4675],{},[1244,4676,4677],{},"Production Mode (DEBUG=False):",[2846,4679,4680,4683,4686,4689],{},[1323,4681,4682],{},"Generic error pages",[1323,4684,4685],{},"Undefined variables return empty strings",[1323,4687,4688],{},"Template errors logged",[1323,4690,4691],{},"Custom error templates (404.html, 500.html)",[1030,4693,4695],{"id":4694},"template-organization-patterns","Template Organization Patterns",[1035,4697,4699],{"id":4698},"single-app-structure","Single App Structure",[1043,4701,4704],{"className":4702,"code":4703,"language":1630},[1628],"blog/\n└── templates/\n    └── blog/\n        ├── base.html\n        ├── post_list.html\n        ├── post_detail.html\n        ├── post_form.html\n        └── includes/\n            ├── post_card.html\n            └── pagination.html\n",[1050,4705,4703],{"__ignoreMap":1048},[1035,4707,4709],{"id":4708},"multi-app-structure","Multi-App Structure",[1043,4711,4714],{"className":4712,"code":4713,"language":1630},[1628],"templates/                    # Project-level templates\n├── base.html                # Site-wide base\n├── includes/\n│   ├── header.html\n│   ├── footer.html\n│   └── navigation.html\n└── errors/\n    ├── 404.html\n    └── 500.html\n\nblog/templates/blog/         # Blog-specific templates\n├── post_list.html\n└── post_detail.html\n\naccounts/templates/registration/  # Auth templates\n├── login.html\n└── signup.html\n",[1050,4715,4713],{"__ignoreMap":1048},[1035,4717,4719],{"id":4718},"template-naming-conventions","Template Naming Conventions",[1026,4721,4722],{},[1244,4723,4724],{},"Consistent Naming:",[1043,4726,4729],{"className":4727,"code":4728,"language":1630},[1628],"# List views\npost_list.html\ncategory_list.html\nuser_list.html\n\n# Detail views\npost_detail.html\ncategory_detail.html\nuser_detail.html\n\n# Form views\npost_form.html\npost_create.html\npost_update.html\n\n# Partial templates\n_post_card.html\n_pagination.html\n_form_errors.html\n",[1050,4730,4728],{"__ignoreMap":1048},[1030,4732,4734],{"id":4733},"performance-considerations","Performance Considerations",[1035,4736,4738],{"id":4737},"template-caching","Template Caching",[1043,4740,4742],{"className":1412,"code":4741,"language":1414,"meta":1048,"style":1048},"# settings.py - Enable template caching in production\nTEMPLATES = [{\n    'BACKEND': 'django.template.backends.django.DjangoTemplates',\n    'DIRS': [BASE_DIR / 'templates'],\n    'OPTIONS': {\n        'loaders': [\n            ('django.template.loaders.cached.Loader', [\n                'django.template.loaders.filesystem.Loader',\n                'django.template.loaders.app_directories.Loader',\n            ]),\n        ],\n        'context_processors': [\n            # ... context processors\n        ],\n    },\n}]\n",[1050,4743,4744,4749,4757,4775,4800,4812,4825,4841,4852,4863,4868,4872,4884,4889,4893,4897],{"__ignoreMap":1048},[1053,4745,4746],{"class":1055,"line":1056},[1053,4747,4748],{"class":1059},"# settings.py - Enable template caching in production\n",[1053,4750,4751,4753,4755],{"class":1055,"line":1063},[1053,4752,1427],{"class":1426},[1053,4754,1430],{"class":1066},[1053,4756,3576],{"class":1066},[1053,4758,4759,4761,4763,4765,4767,4769,4771,4773],{"class":1055,"line":1081},[1053,4760,2662],{"class":1193},[1053,4762,1446],{"class":1197},[1053,4764,1449],{"class":1193},[1053,4766,1452],{"class":1066},[1053,4768,1455],{"class":1193},[1053,4770,1458],{"class":1197},[1053,4772,1449],{"class":1193},[1053,4774,1463],{"class":1066},[1053,4776,4777,4779,4781,4783,4785,4787,4790,4792,4794,4796,4798],{"class":1055,"line":1091},[1053,4778,2662],{"class":1193},[1053,4780,1470],{"class":1197},[1053,4782,1449],{"class":1193},[1053,4784,1452],{"class":1066},[1053,4786,2722],{"class":1066},[1053,4788,4789],{"class":1426},"BASE_DIR",[1053,4791,1485],{"class":1484},[1053,4793,1455],{"class":1193},[1053,4795,1490],{"class":1197},[1053,4797,1449],{"class":1193},[1053,4799,2749],{"class":1066},[1053,4801,4802,4804,4806,4808,4810],{"class":1055,"line":1101},[1053,4803,2662],{"class":1193},[1053,4805,1530],{"class":1197},[1053,4807,1449],{"class":1193},[1053,4809,1452],{"class":1066},[1053,4811,1537],{"class":1066},[1053,4813,4814,4816,4819,4821,4823],{"class":1055,"line":1124},[1053,4815,1443],{"class":1193},[1053,4817,4818],{"class":1197},"loaders",[1053,4820,1449],{"class":1193},[1053,4822,1452],{"class":1066},[1053,4824,1433],{"class":1066},[1053,4826,4827,4830,4832,4835,4837,4839],{"class":1055,"line":1133},[1053,4828,4829],{"class":1066},"            (",[1053,4831,1449],{"class":1193},[1053,4833,4834],{"class":1197},"django.template.loaders.cached.Loader",[1053,4836,1449],{"class":1193},[1053,4838,1495],{"class":1066},[1053,4840,1433],{"class":1066},[1053,4842,4843,4845,4848,4850],{"class":1055,"line":1143},[1053,4844,1556],{"class":1193},[1053,4846,4847],{"class":1197},"django.template.loaders.filesystem.Loader",[1053,4849,1449],{"class":1193},[1053,4851,1463],{"class":1066},[1053,4853,4854,4856,4859,4861],{"class":1055,"line":1161},[1053,4855,1556],{"class":1193},[1053,4857,4858],{"class":1197},"django.template.loaders.app_directories.Loader",[1053,4860,1449],{"class":1193},[1053,4862,1463],{"class":1066},[1053,4864,4865],{"class":1055,"line":1179},[1053,4866,4867],{"class":1066},"            ]),\n",[1053,4869,4870],{"class":1055,"line":1205},[1053,4871,1503],{"class":1066},[1053,4873,4874,4876,4878,4880,4882],{"class":1055,"line":1211},[1053,4875,1443],{"class":1193},[1053,4877,1545],{"class":1197},[1053,4879,1449],{"class":1193},[1053,4881,1452],{"class":1066},[1053,4883,1433],{"class":1066},[1053,4885,4886],{"class":1055,"line":1221},[1053,4887,4888],{"class":1059},"            # ... context processors\n",[1053,4890,4891],{"class":1055,"line":1230},[1053,4892,1503],{"class":1066},[1053,4894,4895],{"class":1055,"line":1599},[1053,4896,1614],{"class":1066},[1053,4898,4899],{"class":1055,"line":1605},[1053,4900,3665],{"class":1066},[1035,4902,4904],{"id":4903},"efficient-context-passing","Efficient Context Passing",[1043,4906,4908],{"className":1412,"code":4907,"language":1414,"meta":1048,"style":1048},"# Efficient - only pass what's needed\ndef post_detail(request, pk):\n    post = get_object_or_404(Post, pk=pk)\n    context = {\n        'post': post,\n        'related_posts': post.get_related_posts()[:3],  # Limit results\n    }\n    return render(request, 'blog/post_detail.html', context)\n\n# Inefficient - passing unnecessary data\ndef post_detail_bad(request, pk):\n    context = {\n        'all_posts': Post.objects.all(),  # Too much data\n        'all_users': User.objects.all(),  # Unnecessary\n        'post': get_object_or_404(Post, pk=pk),\n    }\n    return render(request, 'blog/post_detail.html', context)\n",[1050,4909,4910,4915,4933,4958,4966,4981,5011,5015,5040,5044,5049,5066,5074,5101,5128,5155,5159],{"__ignoreMap":1048},[1053,4911,4912],{"class":1055,"line":1056},[1053,4913,4914],{"class":1059},"# Efficient - only pass what's needed\n",[1053,4916,4917,4919,4922,4924,4926,4928,4931],{"class":1055,"line":1063},[1053,4918,2228],{"class":2227},[1053,4920,4921],{"class":2231}," post_detail",[1053,4923,2235],{"class":1066},[1053,4925,2239],{"class":2238},[1053,4927,1495],{"class":1066},[1053,4929,4930],{"class":2238}," pk",[1053,4932,2242],{"class":1066},[1053,4934,4935,4938,4940,4943,4945,4948,4950,4952,4954,4956],{"class":1055,"line":1081},[1053,4936,4937],{"class":1113},"    post ",[1053,4939,1190],{"class":1066},[1053,4941,4942],{"class":2263}," get_object_or_404",[1053,4944,2235],{"class":1066},[1053,4946,4947],{"class":2263},"Post",[1053,4949,1495],{"class":1066},[1053,4951,4930],{"class":2269},[1053,4953,1190],{"class":1066},[1053,4955,3049],{"class":2263},[1053,4957,2293],{"class":1066},[1053,4959,4960,4962,4964],{"class":1055,"line":1091},[1053,4961,2298],{"class":1113},[1053,4963,1190],{"class":1066},[1053,4965,1537],{"class":1066},[1053,4967,4968,4970,4972,4974,4976,4979],{"class":1055,"line":1101},[1053,4969,1443],{"class":1193},[1053,4971,1820],{"class":1197},[1053,4973,1449],{"class":1193},[1053,4975,1452],{"class":1066},[1053,4977,4978],{"class":1113}," post",[1053,4980,1463],{"class":1066},[1053,4982,4983,4985,4988,4990,4992,4994,4996,4999,5002,5005,5008],{"class":1055,"line":1124},[1053,4984,1443],{"class":1193},[1053,4986,4987],{"class":1197},"related_posts",[1053,4989,1449],{"class":1193},[1053,4991,1452],{"class":1066},[1053,4993,4978],{"class":1113},[1053,4995,2194],{"class":1066},[1053,4997,4998],{"class":2263},"get_related_posts",[1053,5000,5001],{"class":1066},"()[:",[1053,5003,5004],{"class":1801},"3",[1053,5006,5007],{"class":1066},"],",[1053,5009,5010],{"class":1059},"  # Limit results\n",[1053,5012,5013],{"class":1055,"line":1133},[1053,5014,2343],{"class":1066},[1053,5016,5017,5019,5021,5023,5025,5027,5029,5032,5034,5036,5038],{"class":1055,"line":1143},[1053,5018,2348],{"class":2187},[1053,5020,2351],{"class":2263},[1053,5022,2235],{"class":1066},[1053,5024,2239],{"class":2263},[1053,5026,1495],{"class":1066},[1053,5028,1455],{"class":1193},[1053,5030,5031],{"class":1197},"blog/post_detail.html",[1053,5033,1449],{"class":1193},[1053,5035,1495],{"class":1066},[1053,5037,2369],{"class":2263},[1053,5039,2293],{"class":1066},[1053,5041,5042],{"class":1055,"line":1161},[1053,5043,1311],{"emptyLinePlaceholder":1310},[1053,5045,5046],{"class":1055,"line":1179},[1053,5047,5048],{"class":1059},"# Inefficient - passing unnecessary data\n",[1053,5050,5051,5053,5056,5058,5060,5062,5064],{"class":1055,"line":1205},[1053,5052,2228],{"class":2227},[1053,5054,5055],{"class":2231}," post_detail_bad",[1053,5057,2235],{"class":1066},[1053,5059,2239],{"class":2238},[1053,5061,1495],{"class":1066},[1053,5063,4930],{"class":2238},[1053,5065,2242],{"class":1066},[1053,5067,5068,5070,5072],{"class":1055,"line":1211},[1053,5069,2298],{"class":1113},[1053,5071,1190],{"class":1066},[1053,5073,1537],{"class":1066},[1053,5075,5076,5078,5081,5083,5085,5087,5089,5091,5093,5095,5098],{"class":1055,"line":1221},[1053,5077,1443],{"class":1193},[1053,5079,5080],{"class":1197},"all_posts",[1053,5082,1449],{"class":1193},[1053,5084,1452],{"class":1066},[1053,5086,2252],{"class":1113},[1053,5088,2194],{"class":1066},[1053,5090,2258],{"class":2257},[1053,5092,2194],{"class":1066},[1053,5094,3914],{"class":2263},[1053,5096,5097],{"class":1066},"(),",[1053,5099,5100],{"class":1059},"  # Too much data\n",[1053,5102,5103,5105,5108,5110,5112,5115,5117,5119,5121,5123,5125],{"class":1055,"line":1230},[1053,5104,1443],{"class":1193},[1053,5106,5107],{"class":1197},"all_users",[1053,5109,1449],{"class":1193},[1053,5111,1452],{"class":1066},[1053,5113,5114],{"class":1113}," User",[1053,5116,2194],{"class":1066},[1053,5118,2258],{"class":2257},[1053,5120,2194],{"class":1066},[1053,5122,3914],{"class":2263},[1053,5124,5097],{"class":1066},[1053,5126,5127],{"class":1059},"  # Unnecessary\n",[1053,5129,5130,5132,5134,5136,5138,5140,5142,5144,5146,5148,5150,5152],{"class":1055,"line":1599},[1053,5131,1443],{"class":1193},[1053,5133,1820],{"class":1197},[1053,5135,1449],{"class":1193},[1053,5137,1452],{"class":1066},[1053,5139,4942],{"class":2263},[1053,5141,2235],{"class":1066},[1053,5143,4947],{"class":2263},[1053,5145,1495],{"class":1066},[1053,5147,4930],{"class":2269},[1053,5149,1190],{"class":1066},[1053,5151,3049],{"class":2263},[1053,5153,5154],{"class":1066},"),\n",[1053,5156,5157],{"class":1055,"line":1605},[1053,5158,2343],{"class":1066},[1053,5160,5161,5163,5165,5167,5169,5171,5173,5175,5177,5179,5181],{"class":1055,"line":1611},[1053,5162,2348],{"class":2187},[1053,5164,2351],{"class":2263},[1053,5166,2235],{"class":1066},[1053,5168,2239],{"class":2263},[1053,5170,1495],{"class":1066},[1053,5172,1455],{"class":1193},[1053,5174,5031],{"class":1197},[1053,5176,1449],{"class":1193},[1053,5178,1495],{"class":1066},[1053,5180,2369],{"class":2263},[1053,5182,2293],{"class":1066},[1026,5184,5185],{},"Django templates provide a powerful, secure, and flexible way to generate dynamic content. Understanding these fundamentals prepares you for more advanced template features and optimization techniques.",[1765,5187,5188],{},"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 .soVBu, html code.shiki .soVBu{--shiki-light:#39ADB5;--shiki-default:#999999;--shiki-dark:#666666}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 .sftqT, html code.shiki .sftqT{--shiki-light:#90A4AE;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}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 .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 .se3Ec, html code.shiki .se3Ec{--shiki-light:#90A4AE;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .sVsLi, html code.shiki .sVsLi{--shiki-light:#39ADB5;--shiki-default:#AB5959;--shiki-dark:#CB7676}html pre.shiki code .s8XtY, html code.shiki .s8XtY{--shiki-light:#39ADB5;--shiki-default:#1E754F;--shiki-dark:#4D9375}html pre.shiki code .skzw8, html code.shiki .skzw8{--shiki-light:#E2931D;--shiki-default:#1E754F;--shiki-dark:#4D9375}html pre.shiki code .s5HLA, html code.shiki .s5HLA{--shiki-light:#8796B0;--shiki-default:#998418;--shiki-dark:#B8A965}html pre.shiki code .s7CZa, html code.shiki .s7CZa{--shiki-light:#F76D47;--shiki-default:#2F798A;--shiki-dark:#4C9A91}html pre.shiki code .sQBxk, html code.shiki .sQBxk{--shiki-light:#F76D47;--shiki-default:#AB5959;--shiki-dark:#CB7676}html pre.shiki code .sKL33, html code.shiki .sKL33{--shiki-light:#E2931D;--shiki-default:#B07D48;--shiki-dark:#BD976A}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 .s5Kfy, html code.shiki .s5Kfy{--shiki-light:#9C3EDA;--shiki-default:#AB5959;--shiki-dark:#CB7676}html pre.shiki code .sljsM, html code.shiki .sljsM{--shiki-light:#6182B8;--shiki-default:#59873A;--shiki-dark:#80A665}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 .sBPpx, html code.shiki .sBPpx{--shiki-light:#E53935;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}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 .sD-vU, html code.shiki .sD-vU{--shiki-light:#E2931D;--shiki-default:#2E8F82;--shiki-dark:#5DA994}html pre.shiki code .sYn-s, html code.shiki .sYn-s{--shiki-light:#E2931D;--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 .sa2tF, html code.shiki .sa2tF{--shiki-light:#E2931D;--shiki-default:#998418;--shiki-dark:#B8A965}html pre.shiki code .sFGJz, html code.shiki .sFGJz{--shiki-light:#E53935;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .sJdAF, html code.shiki .sJdAF{--shiki-light:#6182B8;--shiki-default:#998418;--shiki-dark:#B8A965}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}",{"title":1048,"searchDepth":1056,"depth":1063,"links":5190},[5191,5195,5199,5203,5206,5211,5215,5219,5223,5228],{"id":1032,"depth":1063,"text":1033,"children":5192},[5193,5194],{"id":1037,"depth":1081,"text":1038},{"id":1239,"depth":1081,"text":1240},{"id":1404,"depth":1063,"text":1405,"children":5196},[5197,5198],{"id":1408,"depth":1081,"text":1409},{"id":1623,"depth":1081,"text":1624},{"id":1635,"depth":1063,"text":1636,"children":5200},[5201,5202],{"id":1639,"depth":1081,"text":1640},{"id":2166,"depth":1081,"text":2167},{"id":2628,"depth":1063,"text":2629,"children":5204},[5205],{"id":2632,"depth":1081,"text":2633},{"id":3447,"depth":1063,"text":3448,"children":5207},[5208,5209,5210],{"id":3451,"depth":1081,"text":3452},{"id":3486,"depth":1081,"text":3487},{"id":3524,"depth":1081,"text":3525},{"id":3550,"depth":1063,"text":3551,"children":5212},[5213,5214],{"id":3554,"depth":1081,"text":3555},{"id":3812,"depth":1081,"text":3813},{"id":4188,"depth":1063,"text":4189,"children":5216},[5217,5218],{"id":4192,"depth":1081,"text":4193},{"id":4302,"depth":1081,"text":4303},{"id":4517,"depth":1063,"text":4518,"children":5220},[5221,5222],{"id":4521,"depth":1081,"text":4522},{"id":4652,"depth":1081,"text":4653},{"id":4694,"depth":1063,"text":4695,"children":5224},[5225,5226,5227],{"id":4698,"depth":1081,"text":4699},{"id":4708,"depth":1081,"text":4709},{"id":4718,"depth":1081,"text":4719},{"id":4733,"depth":1063,"text":4734,"children":5229},[5230,5231],{"id":4737,"depth":1081,"text":4738},{"id":4903,"depth":1081,"text":4904},"md",null,{},{"title":96,"description":1028},"WOnAFyOI57unISpQMznA2uL-SzbEyjnoScVAv5_tZjQ",[5238,5240],{"title":90,"path":91,"stem":92,"description":5239,"children":-1},"Django's template system is a powerful, flexible framework for generating dynamic HTML, XML, and other text-based formats. This comprehensive section covers everything you need to master Django templates, from basic syntax to advanced optimization techniques.",{"title":100,"path":101,"stem":102,"description":5241,"children":-1},"The Django Template Language (DTL) is a powerful, secure, and designer-friendly templating system. It provides a clean syntax for displaying dynamic content while maintaining separation between presentation and business logic.",1772474904998]