[{"data":1,"prerenderedAt":5744},["ShallowReactive",2],{"navigation":3,"/templates-and-presentation/django-template-language":1016,"/templates-and-presentation/django-template-language-surround":5739},[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":100,"body":1018,"description":1028,"extension":5734,"links":5735,"meta":5736,"navigation":1582,"path":101,"seo":5737,"stem":102,"__hash__":5738},"docs/03.templates-and-presentation/3.django-template-language.md",{"type":1019,"value":1020,"toc":5701},"minimark",[1021,1025,1029,1034,1039,1046,1083,1089,1109,1115,1135,1141,1166,1170,1174,1177,1205,1380,1430,1434,1804,2003,2007,2011,2016,2162,2167,2298,2303,2405,2410,2493,2497,2502,2572,2577,2692,2697,2741,2746,2830,2834,2839,3052,3056,3061,3104,3109,3225,3229,3234,3323,3328,3420,3425,3486,3490,3494,3499,3544,3549,3569,3574,3619,3623,3628,3665,3669,3674,3719,3724,3745,3749,3754,3807,3812,3833,3837,3842,3862,3867,3882,3886,3906,3910,3914,3919,4156,4161,4234,4239,4608,4613,4722,4726,4731,5046,5050,5055,5129,5134,5222,5226,5230,5235,5340,5345,5453,5457,5462,5588,5593,5694,5697],[1022,1023,100],"h1",{"id":1024},"the-django-template-language",[1026,1027,1028],"p",{},"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.",[1030,1031,1033],"h2",{"id":1032},"template-syntax-overview","Template Syntax Overview",[1035,1036,1038],"h3",{"id":1037},"core-syntax-elements","Core Syntax Elements",[1026,1040,1041,1045],{},[1042,1043,1044],"strong",{},"Variables"," - Display dynamic content",[1047,1048,1053],"pre",{"className":1049,"code":1050,"language":1051,"meta":1052,"style":1052},"language-html shiki shiki-themes material-theme-lighter vitesse-light vitesse-dark","{{ variable }}\n{{ object.attribute }}\n{{ dictionary.key }}\n{{ list.0 }}\n","html","",[1054,1055,1056,1065,1071,1077],"code",{"__ignoreMap":1052},[1057,1058,1061],"span",{"class":1059,"line":1060},"line",1,[1057,1062,1064],{"class":1063},"sftqT","{{ variable }}\n",[1057,1066,1068],{"class":1059,"line":1067},2,[1057,1069,1070],{"class":1063},"{{ object.attribute }}\n",[1057,1072,1074],{"class":1059,"line":1073},3,[1057,1075,1076],{"class":1063},"{{ dictionary.key }}\n",[1057,1078,1080],{"class":1059,"line":1079},4,[1057,1081,1082],{"class":1063},"{{ list.0 }}\n",[1026,1084,1085,1088],{},[1042,1086,1087],{},"Tags"," - Control logic and structure",[1047,1090,1092],{"className":1049,"code":1091,"language":1051,"meta":1052,"style":1052},"{% tag_name %}\n{% tag_name argument %}\n{% tag_name argument1 argument2 %}\n",[1054,1093,1094,1099,1104],{"__ignoreMap":1052},[1057,1095,1096],{"class":1059,"line":1060},[1057,1097,1098],{"class":1063},"{% tag_name %}\n",[1057,1100,1101],{"class":1059,"line":1067},[1057,1102,1103],{"class":1063},"{% tag_name argument %}\n",[1057,1105,1106],{"class":1059,"line":1073},[1057,1107,1108],{"class":1063},"{% tag_name argument1 argument2 %}\n",[1026,1110,1111,1114],{},[1042,1112,1113],{},"Filters"," - Transform variable output",[1047,1116,1118],{"className":1049,"code":1117,"language":1051,"meta":1052,"style":1052},"{{ variable|filter }}\n{{ variable|filter:argument }}\n{{ variable|filter1|filter2 }}\n",[1054,1119,1120,1125,1130],{"__ignoreMap":1052},[1057,1121,1122],{"class":1059,"line":1060},[1057,1123,1124],{"class":1063},"{{ variable|filter }}\n",[1057,1126,1127],{"class":1059,"line":1067},[1057,1128,1129],{"class":1063},"{{ variable|filter:argument }}\n",[1057,1131,1132],{"class":1059,"line":1073},[1057,1133,1134],{"class":1063},"{{ variable|filter1|filter2 }}\n",[1026,1136,1137,1140],{},[1042,1138,1139],{},"Comments"," - Documentation and notes",[1047,1142,1144],{"className":1049,"code":1143,"language":1051,"meta":1052,"style":1052},"{# Single line comment #}\n{% comment %}\nMulti-line comment\n{% endcomment %}\n",[1054,1145,1146,1151,1156,1161],{"__ignoreMap":1052},[1057,1147,1148],{"class":1059,"line":1060},[1057,1149,1150],{"class":1063},"{# Single line comment #}\n",[1057,1152,1153],{"class":1059,"line":1067},[1057,1154,1155],{"class":1063},"{% comment %}\n",[1057,1157,1158],{"class":1059,"line":1073},[1057,1159,1160],{"class":1063},"Multi-line comment\n",[1057,1162,1163],{"class":1059,"line":1079},[1057,1164,1165],{"class":1063},"{% endcomment %}\n",[1030,1167,1169],{"id":1168},"variables-and-lookups","Variables and Lookups",[1035,1171,1173],{"id":1172},"variable-resolution","Variable Resolution",[1026,1175,1176],{},"Django resolves variables using this order:",[1178,1179,1180,1187,1193,1199],"ol",{},[1181,1182,1183,1184],"li",{},"Dictionary lookup: ",[1054,1185,1186],{},"foo['bar']",[1181,1188,1189,1190],{},"Attribute lookup: ",[1054,1191,1192],{},"foo.bar",[1181,1194,1195,1196],{},"Method call: ",[1054,1197,1198],{},"foo.bar()",[1181,1200,1201,1202],{},"List index lookup: ",[1054,1203,1204],{},"foo[bar]",[1047,1206,1210],{"className":1207,"code":1208,"language":1209,"meta":1052,"style":1052},"language-python shiki shiki-themes material-theme-lighter vitesse-light vitesse-dark","# views.py\ncontext = {\n    'user': request.user,\n    'post': {\n        'title': 'My Post',\n        'tags': ['django', 'python'],\n    },\n    'numbers': [1, 2, 3, 4, 5],\n}\n","python",[1054,1211,1212,1218,1230,1258,1271,1294,1328,1334,1374],{"__ignoreMap":1052},[1057,1213,1214],{"class":1059,"line":1060},[1057,1215,1217],{"class":1216},"s9Tkl","# views.py\n",[1057,1219,1220,1223,1227],{"class":1059,"line":1067},[1057,1221,1222],{"class":1063},"context ",[1057,1224,1226],{"class":1225},"soVBu","=",[1057,1228,1229],{"class":1225}," {\n",[1057,1231,1232,1236,1240,1243,1246,1249,1252,1255],{"class":1059,"line":1073},[1057,1233,1235],{"class":1234},"sbYkP","    '",[1057,1237,1239],{"class":1238},"sTbE_","user",[1057,1241,1242],{"class":1234},"'",[1057,1244,1245],{"class":1225},":",[1057,1247,1248],{"class":1063}," request",[1057,1250,1251],{"class":1225},".",[1057,1253,1239],{"class":1254},"sBPpx",[1057,1256,1257],{"class":1225},",\n",[1057,1259,1260,1262,1265,1267,1269],{"class":1059,"line":1079},[1057,1261,1235],{"class":1234},[1057,1263,1264],{"class":1238},"post",[1057,1266,1242],{"class":1234},[1057,1268,1245],{"class":1225},[1057,1270,1229],{"class":1225},[1057,1272,1274,1277,1280,1282,1284,1287,1290,1292],{"class":1059,"line":1273},5,[1057,1275,1276],{"class":1234},"        '",[1057,1278,1279],{"class":1238},"title",[1057,1281,1242],{"class":1234},[1057,1283,1245],{"class":1225},[1057,1285,1286],{"class":1234}," '",[1057,1288,1289],{"class":1238},"My Post",[1057,1291,1242],{"class":1234},[1057,1293,1257],{"class":1225},[1057,1295,1297,1299,1302,1304,1306,1309,1311,1314,1316,1319,1321,1323,1325],{"class":1059,"line":1296},6,[1057,1298,1276],{"class":1234},[1057,1300,1301],{"class":1238},"tags",[1057,1303,1242],{"class":1234},[1057,1305,1245],{"class":1225},[1057,1307,1308],{"class":1225}," [",[1057,1310,1242],{"class":1234},[1057,1312,1313],{"class":1238},"django",[1057,1315,1242],{"class":1234},[1057,1317,1318],{"class":1225},",",[1057,1320,1286],{"class":1234},[1057,1322,1209],{"class":1238},[1057,1324,1242],{"class":1234},[1057,1326,1327],{"class":1225},"],\n",[1057,1329,1331],{"class":1059,"line":1330},7,[1057,1332,1333],{"class":1225},"    },\n",[1057,1335,1337,1339,1342,1344,1346,1348,1352,1354,1357,1359,1362,1364,1367,1369,1372],{"class":1059,"line":1336},8,[1057,1338,1235],{"class":1234},[1057,1340,1341],{"class":1238},"numbers",[1057,1343,1242],{"class":1234},[1057,1345,1245],{"class":1225},[1057,1347,1308],{"class":1225},[1057,1349,1351],{"class":1350},"s7CZa","1",[1057,1353,1318],{"class":1225},[1057,1355,1356],{"class":1350}," 2",[1057,1358,1318],{"class":1225},[1057,1360,1361],{"class":1350}," 3",[1057,1363,1318],{"class":1225},[1057,1365,1366],{"class":1350}," 4",[1057,1368,1318],{"class":1225},[1057,1370,1371],{"class":1350}," 5",[1057,1373,1327],{"class":1225},[1057,1375,1377],{"class":1059,"line":1376},9,[1057,1378,1379],{"class":1225},"}\n",[1047,1381,1383],{"className":1049,"code":1382,"language":1051,"meta":1052,"style":1052},"\u003C!-- template.html -->\n{{ user.username }}        \u003C!-- Attribute lookup -->\n{{ user.get_full_name }}   \u003C!-- Method call -->\n{{ post.title }}           \u003C!-- Dictionary lookup -->\n{{ post.tags.0 }}          \u003C!-- List index lookup -->\n{{ numbers.2 }}            \u003C!-- List index: 3 -->\n",[1054,1384,1385,1390,1398,1406,1414,1422],{"__ignoreMap":1052},[1057,1386,1387],{"class":1059,"line":1060},[1057,1388,1389],{"class":1216},"\u003C!-- template.html -->\n",[1057,1391,1392,1395],{"class":1059,"line":1067},[1057,1393,1394],{"class":1063},"{{ user.username }}        ",[1057,1396,1397],{"class":1216},"\u003C!-- Attribute lookup -->\n",[1057,1399,1400,1403],{"class":1059,"line":1073},[1057,1401,1402],{"class":1063},"{{ user.get_full_name }}   ",[1057,1404,1405],{"class":1216},"\u003C!-- Method call -->\n",[1057,1407,1408,1411],{"class":1059,"line":1079},[1057,1409,1410],{"class":1063},"{{ post.title }}           ",[1057,1412,1413],{"class":1216},"\u003C!-- Dictionary lookup -->\n",[1057,1415,1416,1419],{"class":1059,"line":1273},[1057,1417,1418],{"class":1063},"{{ post.tags.0 }}          ",[1057,1420,1421],{"class":1216},"\u003C!-- List index lookup -->\n",[1057,1423,1424,1427],{"class":1059,"line":1296},[1057,1425,1426],{"class":1063},"{{ numbers.2 }}            ",[1057,1428,1429],{"class":1216},"\u003C!-- List index: 3 -->\n",[1035,1431,1433],{"id":1432},"complex-object-access","Complex Object Access",[1047,1435,1437],{"className":1207,"code":1436,"language":1209,"meta":1052,"style":1052},"# models.py\nclass Author(models.Model):\n    name = models.CharField(max_length=100)\n    email = models.EmailField()\n    \n    def get_latest_posts(self):\n        return self.posts.filter(published=True)[:5]\n\nclass Post(models.Model):\n    title = models.CharField(max_length=200)\n    author = models.ForeignKey(Author, on_delete=models.CASCADE, related_name='posts')\n    tags = models.ManyToManyField('Tag')\n    \n    @property\n    def word_count(self):\n        return len(self.content.split())\n\nclass Tag(models.Model):\n    name = models.CharField(max_length=50)\n",[1054,1438,1439,1444,1469,1499,1516,1521,1538,1578,1584,1601,1626,1676,1702,1707,1717,1731,1757,1762,1780],{"__ignoreMap":1052},[1057,1440,1441],{"class":1059,"line":1060},[1057,1442,1443],{"class":1216},"# models.py\n",[1057,1445,1446,1450,1454,1457,1461,1463,1466],{"class":1059,"line":1067},[1057,1447,1449],{"class":1448},"s5Kfy","class",[1057,1451,1453],{"class":1452},"sD-vU"," Author",[1057,1455,1456],{"class":1225},"(",[1057,1458,1460],{"class":1459},"sYn-s","models",[1057,1462,1251],{"class":1225},[1057,1464,1465],{"class":1459},"Model",[1057,1467,1468],{"class":1225},"):\n",[1057,1470,1471,1474,1476,1479,1481,1485,1487,1491,1493,1496],{"class":1059,"line":1073},[1057,1472,1473],{"class":1063},"    name ",[1057,1475,1226],{"class":1225},[1057,1477,1478],{"class":1063}," models",[1057,1480,1251],{"class":1225},[1057,1482,1484],{"class":1483},"siWMO","CharField",[1057,1486,1456],{"class":1225},[1057,1488,1490],{"class":1489},"sqOPj","max_length",[1057,1492,1226],{"class":1225},[1057,1494,1495],{"class":1350},"100",[1057,1497,1498],{"class":1225},")\n",[1057,1500,1501,1504,1506,1508,1510,1513],{"class":1059,"line":1079},[1057,1502,1503],{"class":1063},"    email ",[1057,1505,1226],{"class":1225},[1057,1507,1478],{"class":1063},[1057,1509,1251],{"class":1225},[1057,1511,1512],{"class":1483},"EmailField",[1057,1514,1515],{"class":1225},"()\n",[1057,1517,1518],{"class":1059,"line":1273},[1057,1519,1520],{"class":1063},"    \n",[1057,1522,1523,1526,1530,1532,1536],{"class":1059,"line":1296},[1057,1524,1525],{"class":1448},"    def",[1057,1527,1529],{"class":1528},"sljsM"," get_latest_posts",[1057,1531,1456],{"class":1225},[1057,1533,1535],{"class":1534},"sRjD_","self",[1057,1537,1468],{"class":1225},[1057,1539,1540,1544,1548,1550,1553,1555,1558,1560,1563,1565,1569,1572,1575],{"class":1059,"line":1330},[1057,1541,1543],{"class":1542},"siDh9","        return",[1057,1545,1547],{"class":1546},"se3Ec"," self",[1057,1549,1251],{"class":1225},[1057,1551,1552],{"class":1254},"posts",[1057,1554,1251],{"class":1225},[1057,1556,1557],{"class":1483},"filter",[1057,1559,1456],{"class":1225},[1057,1561,1562],{"class":1489},"published",[1057,1564,1226],{"class":1225},[1057,1566,1568],{"class":1567},"s8XtY","True",[1057,1570,1571],{"class":1225},")[:",[1057,1573,1574],{"class":1350},"5",[1057,1576,1577],{"class":1225},"]\n",[1057,1579,1580],{"class":1059,"line":1336},[1057,1581,1583],{"emptyLinePlaceholder":1582},true,"\n",[1057,1585,1586,1588,1591,1593,1595,1597,1599],{"class":1059,"line":1376},[1057,1587,1449],{"class":1448},[1057,1589,1590],{"class":1452}," Post",[1057,1592,1456],{"class":1225},[1057,1594,1460],{"class":1459},[1057,1596,1251],{"class":1225},[1057,1598,1465],{"class":1459},[1057,1600,1468],{"class":1225},[1057,1602,1604,1607,1609,1611,1613,1615,1617,1619,1621,1624],{"class":1059,"line":1603},10,[1057,1605,1606],{"class":1063},"    title ",[1057,1608,1226],{"class":1225},[1057,1610,1478],{"class":1063},[1057,1612,1251],{"class":1225},[1057,1614,1484],{"class":1483},[1057,1616,1456],{"class":1225},[1057,1618,1490],{"class":1489},[1057,1620,1226],{"class":1225},[1057,1622,1623],{"class":1350},"200",[1057,1625,1498],{"class":1225},[1057,1627,1629,1632,1634,1636,1638,1641,1643,1646,1648,1651,1653,1655,1657,1661,1663,1666,1668,1670,1672,1674],{"class":1059,"line":1628},11,[1057,1630,1631],{"class":1063},"    author ",[1057,1633,1226],{"class":1225},[1057,1635,1478],{"class":1063},[1057,1637,1251],{"class":1225},[1057,1639,1640],{"class":1483},"ForeignKey",[1057,1642,1456],{"class":1225},[1057,1644,1645],{"class":1483},"Author",[1057,1647,1318],{"class":1225},[1057,1649,1650],{"class":1489}," on_delete",[1057,1652,1226],{"class":1225},[1057,1654,1460],{"class":1483},[1057,1656,1251],{"class":1225},[1057,1658,1660],{"class":1659},"sFGJz","CASCADE",[1057,1662,1318],{"class":1225},[1057,1664,1665],{"class":1489}," related_name",[1057,1667,1226],{"class":1225},[1057,1669,1242],{"class":1234},[1057,1671,1552],{"class":1238},[1057,1673,1242],{"class":1234},[1057,1675,1498],{"class":1225},[1057,1677,1679,1682,1684,1686,1688,1691,1693,1695,1698,1700],{"class":1059,"line":1678},12,[1057,1680,1681],{"class":1063},"    tags ",[1057,1683,1226],{"class":1225},[1057,1685,1478],{"class":1063},[1057,1687,1251],{"class":1225},[1057,1689,1690],{"class":1483},"ManyToManyField",[1057,1692,1456],{"class":1225},[1057,1694,1242],{"class":1234},[1057,1696,1697],{"class":1238},"Tag",[1057,1699,1242],{"class":1234},[1057,1701,1498],{"class":1225},[1057,1703,1705],{"class":1059,"line":1704},13,[1057,1706,1520],{"class":1063},[1057,1708,1710,1713],{"class":1059,"line":1709},14,[1057,1711,1712],{"class":1225},"    @",[1057,1714,1716],{"class":1715},"sa2tF","property\n",[1057,1718,1720,1722,1725,1727,1729],{"class":1059,"line":1719},15,[1057,1721,1525],{"class":1448},[1057,1723,1724],{"class":1528}," word_count",[1057,1726,1456],{"class":1225},[1057,1728,1535],{"class":1534},[1057,1730,1468],{"class":1225},[1057,1732,1734,1736,1740,1742,1744,1746,1749,1751,1754],{"class":1059,"line":1733},16,[1057,1735,1543],{"class":1542},[1057,1737,1739],{"class":1738},"sJdAF"," len",[1057,1741,1456],{"class":1225},[1057,1743,1535],{"class":1546},[1057,1745,1251],{"class":1225},[1057,1747,1748],{"class":1254},"content",[1057,1750,1251],{"class":1225},[1057,1752,1753],{"class":1483},"split",[1057,1755,1756],{"class":1225},"())\n",[1057,1758,1760],{"class":1059,"line":1759},17,[1057,1761,1583],{"emptyLinePlaceholder":1582},[1057,1763,1765,1767,1770,1772,1774,1776,1778],{"class":1059,"line":1764},18,[1057,1766,1449],{"class":1448},[1057,1768,1769],{"class":1452}," Tag",[1057,1771,1456],{"class":1225},[1057,1773,1460],{"class":1459},[1057,1775,1251],{"class":1225},[1057,1777,1465],{"class":1459},[1057,1779,1468],{"class":1225},[1057,1781,1783,1785,1787,1789,1791,1793,1795,1797,1799,1802],{"class":1059,"line":1782},19,[1057,1784,1473],{"class":1063},[1057,1786,1226],{"class":1225},[1057,1788,1478],{"class":1063},[1057,1790,1251],{"class":1225},[1057,1792,1484],{"class":1483},[1057,1794,1456],{"class":1225},[1057,1796,1490],{"class":1489},[1057,1798,1226],{"class":1225},[1057,1800,1801],{"class":1350},"50",[1057,1803,1498],{"class":1225},[1047,1805,1807],{"className":1049,"code":1806,"language":1051,"meta":1052,"style":1052},"\u003C!-- Accessing related objects -->\n\u003Ch1>{{ post.title }}\u003C/h1>\n\u003Cp>By {{ post.author.name }} ({{ post.author.email }})\u003C/p>\n\u003Cp>Word count: {{ post.word_count }}\u003C/p>\n\n\u003C!-- Accessing related sets -->\n\u003Ch3>Tags:\u003C/h3>\n{% for tag in post.tags.all %}\n    \u003Cspan class=\"tag\">{{ tag.name }}\u003C/span>\n{% endfor %}\n\n\u003C!-- Accessing methods -->\n\u003Ch3>Author's Latest Posts:\u003C/h3>\n{% for latest_post in post.author.get_latest_posts %}\n    \u003Ca href=\"{{ latest_post.get_absolute_url }}\">{{ latest_post.title }}\u003C/a>\n{% endfor %}\n",[1054,1808,1809,1814,1836,1853,1870,1874,1879,1896,1901,1933,1938,1942,1947,1964,1969,1999],{"__ignoreMap":1052},[1057,1810,1811],{"class":1059,"line":1060},[1057,1812,1813],{"class":1216},"\u003C!-- Accessing related objects -->\n",[1057,1815,1816,1819,1822,1825,1828,1831,1833],{"class":1059,"line":1067},[1057,1817,1818],{"class":1225},"\u003C",[1057,1820,1022],{"class":1821},"sJFLg",[1057,1823,1824],{"class":1225},">",[1057,1826,1827],{"class":1063},"{{ post.title }}",[1057,1829,1830],{"class":1225},"\u003C/",[1057,1832,1022],{"class":1821},[1057,1834,1835],{"class":1225},">\n",[1057,1837,1838,1840,1842,1844,1847,1849,1851],{"class":1059,"line":1073},[1057,1839,1818],{"class":1225},[1057,1841,1026],{"class":1821},[1057,1843,1824],{"class":1225},[1057,1845,1846],{"class":1063},"By {{ post.author.name }} ({{ post.author.email }})",[1057,1848,1830],{"class":1225},[1057,1850,1026],{"class":1821},[1057,1852,1835],{"class":1225},[1057,1854,1855,1857,1859,1861,1864,1866,1868],{"class":1059,"line":1079},[1057,1856,1818],{"class":1225},[1057,1858,1026],{"class":1821},[1057,1860,1824],{"class":1225},[1057,1862,1863],{"class":1063},"Word count: {{ post.word_count }}",[1057,1865,1830],{"class":1225},[1057,1867,1026],{"class":1821},[1057,1869,1835],{"class":1225},[1057,1871,1872],{"class":1059,"line":1273},[1057,1873,1583],{"emptyLinePlaceholder":1582},[1057,1875,1876],{"class":1059,"line":1296},[1057,1877,1878],{"class":1216},"\u003C!-- Accessing related sets -->\n",[1057,1880,1881,1883,1885,1887,1890,1892,1894],{"class":1059,"line":1330},[1057,1882,1818],{"class":1225},[1057,1884,1035],{"class":1821},[1057,1886,1824],{"class":1225},[1057,1888,1889],{"class":1063},"Tags:",[1057,1891,1830],{"class":1225},[1057,1893,1035],{"class":1821},[1057,1895,1835],{"class":1225},[1057,1897,1898],{"class":1059,"line":1336},[1057,1899,1900],{"class":1063},"{% for tag in post.tags.all %}\n",[1057,1902,1903,1906,1908,1912,1914,1917,1920,1922,1924,1927,1929,1931],{"class":1059,"line":1376},[1057,1904,1905],{"class":1225},"    \u003C",[1057,1907,1057],{"class":1821},[1057,1909,1911],{"class":1910},"s5q8q"," class",[1057,1913,1226],{"class":1225},[1057,1915,1916],{"class":1234},"\"",[1057,1918,1919],{"class":1238},"tag",[1057,1921,1916],{"class":1234},[1057,1923,1824],{"class":1225},[1057,1925,1926],{"class":1063},"{{ tag.name }}",[1057,1928,1830],{"class":1225},[1057,1930,1057],{"class":1821},[1057,1932,1835],{"class":1225},[1057,1934,1935],{"class":1059,"line":1603},[1057,1936,1937],{"class":1063},"{% endfor %}\n",[1057,1939,1940],{"class":1059,"line":1628},[1057,1941,1583],{"emptyLinePlaceholder":1582},[1057,1943,1944],{"class":1059,"line":1678},[1057,1945,1946],{"class":1216},"\u003C!-- Accessing methods -->\n",[1057,1948,1949,1951,1953,1955,1958,1960,1962],{"class":1059,"line":1704},[1057,1950,1818],{"class":1225},[1057,1952,1035],{"class":1821},[1057,1954,1824],{"class":1225},[1057,1956,1957],{"class":1063},"Author's Latest Posts:",[1057,1959,1830],{"class":1225},[1057,1961,1035],{"class":1821},[1057,1963,1835],{"class":1225},[1057,1965,1966],{"class":1059,"line":1709},[1057,1967,1968],{"class":1063},"{% for latest_post in post.author.get_latest_posts %}\n",[1057,1970,1971,1973,1976,1979,1981,1983,1986,1988,1990,1993,1995,1997],{"class":1059,"line":1719},[1057,1972,1905],{"class":1225},[1057,1974,1975],{"class":1821},"a",[1057,1977,1978],{"class":1910}," href",[1057,1980,1226],{"class":1225},[1057,1982,1916],{"class":1234},[1057,1984,1985],{"class":1238},"{{ latest_post.get_absolute_url }}",[1057,1987,1916],{"class":1234},[1057,1989,1824],{"class":1225},[1057,1991,1992],{"class":1063},"{{ latest_post.title }}",[1057,1994,1830],{"class":1225},[1057,1996,1975],{"class":1821},[1057,1998,1835],{"class":1225},[1057,2000,2001],{"class":1059,"line":1733},[1057,2002,1937],{"class":1063},[1030,2004,2006],{"id":2005},"template-tags","Template Tags",[1035,2008,2010],{"id":2009},"conditional-tags","Conditional Tags",[1026,2012,2013],{},[1042,2014,2015],{},"if/elif/else:",[1047,2017,2019],{"className":1049,"code":2018,"language":1051,"meta":1052,"style":1052},"{% if user.is_authenticated %}\n    \u003Cp>Welcome, {{ user.username }}!\u003C/p>\n    {% if user.is_staff %}\n        \u003Ca href=\"{% url 'admin:index' %}\">Admin Panel\u003C/a>\n    {% elif user.is_superuser %}\n        \u003Ca href=\"{% url 'admin:index' %}\">Super Admin\u003C/a>\n    {% endif %}\n{% else %}\n    \u003Cp>\u003Ca href=\"{% url 'login' %}\">Please log in\u003C/a>\u003C/p>\n{% endif %}\n",[1054,2020,2021,2026,2043,2048,2077,2082,2109,2114,2119,2157],{"__ignoreMap":1052},[1057,2022,2023],{"class":1059,"line":1060},[1057,2024,2025],{"class":1063},"{% if user.is_authenticated %}\n",[1057,2027,2028,2030,2032,2034,2037,2039,2041],{"class":1059,"line":1067},[1057,2029,1905],{"class":1225},[1057,2031,1026],{"class":1821},[1057,2033,1824],{"class":1225},[1057,2035,2036],{"class":1063},"Welcome, {{ user.username }}!",[1057,2038,1830],{"class":1225},[1057,2040,1026],{"class":1821},[1057,2042,1835],{"class":1225},[1057,2044,2045],{"class":1059,"line":1073},[1057,2046,2047],{"class":1063},"    {% if user.is_staff %}\n",[1057,2049,2050,2053,2055,2057,2059,2061,2064,2066,2068,2071,2073,2075],{"class":1059,"line":1079},[1057,2051,2052],{"class":1225},"        \u003C",[1057,2054,1975],{"class":1821},[1057,2056,1978],{"class":1910},[1057,2058,1226],{"class":1225},[1057,2060,1916],{"class":1234},[1057,2062,2063],{"class":1238},"{% url 'admin:index' %}",[1057,2065,1916],{"class":1234},[1057,2067,1824],{"class":1225},[1057,2069,2070],{"class":1063},"Admin Panel",[1057,2072,1830],{"class":1225},[1057,2074,1975],{"class":1821},[1057,2076,1835],{"class":1225},[1057,2078,2079],{"class":1059,"line":1273},[1057,2080,2081],{"class":1063},"    {% elif user.is_superuser %}\n",[1057,2083,2084,2086,2088,2090,2092,2094,2096,2098,2100,2103,2105,2107],{"class":1059,"line":1296},[1057,2085,2052],{"class":1225},[1057,2087,1975],{"class":1821},[1057,2089,1978],{"class":1910},[1057,2091,1226],{"class":1225},[1057,2093,1916],{"class":1234},[1057,2095,2063],{"class":1238},[1057,2097,1916],{"class":1234},[1057,2099,1824],{"class":1225},[1057,2101,2102],{"class":1063},"Super Admin",[1057,2104,1830],{"class":1225},[1057,2106,1975],{"class":1821},[1057,2108,1835],{"class":1225},[1057,2110,2111],{"class":1059,"line":1330},[1057,2112,2113],{"class":1063},"    {% endif %}\n",[1057,2115,2116],{"class":1059,"line":1336},[1057,2117,2118],{"class":1063},"{% else %}\n",[1057,2120,2121,2123,2125,2128,2130,2132,2134,2136,2139,2141,2143,2146,2148,2150,2153,2155],{"class":1059,"line":1376},[1057,2122,1905],{"class":1225},[1057,2124,1026],{"class":1821},[1057,2126,2127],{"class":1225},">\u003C",[1057,2129,1975],{"class":1821},[1057,2131,1978],{"class":1910},[1057,2133,1226],{"class":1225},[1057,2135,1916],{"class":1234},[1057,2137,2138],{"class":1238},"{% url 'login' %}",[1057,2140,1916],{"class":1234},[1057,2142,1824],{"class":1225},[1057,2144,2145],{"class":1063},"Please log in",[1057,2147,1830],{"class":1225},[1057,2149,1975],{"class":1821},[1057,2151,2152],{"class":1225},">\u003C/",[1057,2154,1026],{"class":1821},[1057,2156,1835],{"class":1225},[1057,2158,2159],{"class":1059,"line":1603},[1057,2160,2161],{"class":1063},"{% endif %}\n",[1026,2163,2164],{},[1042,2165,2166],{},"Comparison Operators:",[1047,2168,2170],{"className":1049,"code":2169,"language":1051,"meta":1052,"style":1052},"{% if posts.count > 0 %}\n    \u003Cp>Found {{ posts.count }} posts\u003C/p>\n{% endif %}\n\n{% if user.age >= 18 %}\n    \u003Cp>Adult content available\u003C/p>\n{% endif %}\n\n{% if post.status == 'published' %}\n    \u003Cspan class=\"published\">Published\u003C/span>\n{% endif %}\n\n{% if post.author != user %}\n    \u003Cp>This post is by {{ post.author.name }}\u003C/p>\n{% endif %}\n",[1054,2171,2172,2177,2194,2198,2202,2207,2224,2228,2232,2237,2264,2268,2272,2277,2294],{"__ignoreMap":1052},[1057,2173,2174],{"class":1059,"line":1060},[1057,2175,2176],{"class":1063},"{% if posts.count > 0 %}\n",[1057,2178,2179,2181,2183,2185,2188,2190,2192],{"class":1059,"line":1067},[1057,2180,1905],{"class":1225},[1057,2182,1026],{"class":1821},[1057,2184,1824],{"class":1225},[1057,2186,2187],{"class":1063},"Found {{ posts.count }} posts",[1057,2189,1830],{"class":1225},[1057,2191,1026],{"class":1821},[1057,2193,1835],{"class":1225},[1057,2195,2196],{"class":1059,"line":1073},[1057,2197,2161],{"class":1063},[1057,2199,2200],{"class":1059,"line":1079},[1057,2201,1583],{"emptyLinePlaceholder":1582},[1057,2203,2204],{"class":1059,"line":1273},[1057,2205,2206],{"class":1063},"{% if user.age >= 18 %}\n",[1057,2208,2209,2211,2213,2215,2218,2220,2222],{"class":1059,"line":1296},[1057,2210,1905],{"class":1225},[1057,2212,1026],{"class":1821},[1057,2214,1824],{"class":1225},[1057,2216,2217],{"class":1063},"Adult content available",[1057,2219,1830],{"class":1225},[1057,2221,1026],{"class":1821},[1057,2223,1835],{"class":1225},[1057,2225,2226],{"class":1059,"line":1330},[1057,2227,2161],{"class":1063},[1057,2229,2230],{"class":1059,"line":1336},[1057,2231,1583],{"emptyLinePlaceholder":1582},[1057,2233,2234],{"class":1059,"line":1376},[1057,2235,2236],{"class":1063},"{% if post.status == 'published' %}\n",[1057,2238,2239,2241,2243,2245,2247,2249,2251,2253,2255,2258,2260,2262],{"class":1059,"line":1603},[1057,2240,1905],{"class":1225},[1057,2242,1057],{"class":1821},[1057,2244,1911],{"class":1910},[1057,2246,1226],{"class":1225},[1057,2248,1916],{"class":1234},[1057,2250,1562],{"class":1238},[1057,2252,1916],{"class":1234},[1057,2254,1824],{"class":1225},[1057,2256,2257],{"class":1063},"Published",[1057,2259,1830],{"class":1225},[1057,2261,1057],{"class":1821},[1057,2263,1835],{"class":1225},[1057,2265,2266],{"class":1059,"line":1628},[1057,2267,2161],{"class":1063},[1057,2269,2270],{"class":1059,"line":1678},[1057,2271,1583],{"emptyLinePlaceholder":1582},[1057,2273,2274],{"class":1059,"line":1704},[1057,2275,2276],{"class":1063},"{% if post.author != user %}\n",[1057,2278,2279,2281,2283,2285,2288,2290,2292],{"class":1059,"line":1709},[1057,2280,1905],{"class":1225},[1057,2282,1026],{"class":1821},[1057,2284,1824],{"class":1225},[1057,2286,2287],{"class":1063},"This post is by {{ post.author.name }}",[1057,2289,1830],{"class":1225},[1057,2291,1026],{"class":1821},[1057,2293,1835],{"class":1225},[1057,2295,2296],{"class":1059,"line":1719},[1057,2297,2161],{"class":1063},[1026,2299,2300],{},[1042,2301,2302],{},"Logical Operators:",[1047,2304,2306],{"className":1049,"code":2305,"language":1051,"meta":1052,"style":1052},"{% if user.is_authenticated and user.is_active %}\n    \u003Cp>Active user\u003C/p>\n{% endif %}\n\n{% if post.featured or post.sticky %}\n    \u003Cspan class=\"highlight\">Featured\u003C/span>\n{% endif %}\n\n{% if not user.is_anonymous %}\n    \u003Cp>Logged in user\u003C/p>\n{% endif %}\n",[1054,2307,2308,2313,2330,2334,2338,2343,2371,2375,2379,2384,2401],{"__ignoreMap":1052},[1057,2309,2310],{"class":1059,"line":1060},[1057,2311,2312],{"class":1063},"{% if user.is_authenticated and user.is_active %}\n",[1057,2314,2315,2317,2319,2321,2324,2326,2328],{"class":1059,"line":1067},[1057,2316,1905],{"class":1225},[1057,2318,1026],{"class":1821},[1057,2320,1824],{"class":1225},[1057,2322,2323],{"class":1063},"Active user",[1057,2325,1830],{"class":1225},[1057,2327,1026],{"class":1821},[1057,2329,1835],{"class":1225},[1057,2331,2332],{"class":1059,"line":1073},[1057,2333,2161],{"class":1063},[1057,2335,2336],{"class":1059,"line":1079},[1057,2337,1583],{"emptyLinePlaceholder":1582},[1057,2339,2340],{"class":1059,"line":1273},[1057,2341,2342],{"class":1063},"{% if post.featured or post.sticky %}\n",[1057,2344,2345,2347,2349,2351,2353,2355,2358,2360,2362,2365,2367,2369],{"class":1059,"line":1296},[1057,2346,1905],{"class":1225},[1057,2348,1057],{"class":1821},[1057,2350,1911],{"class":1910},[1057,2352,1226],{"class":1225},[1057,2354,1916],{"class":1234},[1057,2356,2357],{"class":1238},"highlight",[1057,2359,1916],{"class":1234},[1057,2361,1824],{"class":1225},[1057,2363,2364],{"class":1063},"Featured",[1057,2366,1830],{"class":1225},[1057,2368,1057],{"class":1821},[1057,2370,1835],{"class":1225},[1057,2372,2373],{"class":1059,"line":1330},[1057,2374,2161],{"class":1063},[1057,2376,2377],{"class":1059,"line":1336},[1057,2378,1583],{"emptyLinePlaceholder":1582},[1057,2380,2381],{"class":1059,"line":1376},[1057,2382,2383],{"class":1063},"{% if not user.is_anonymous %}\n",[1057,2385,2386,2388,2390,2392,2395,2397,2399],{"class":1059,"line":1603},[1057,2387,1905],{"class":1225},[1057,2389,1026],{"class":1821},[1057,2391,1824],{"class":1225},[1057,2393,2394],{"class":1063},"Logged in user",[1057,2396,1830],{"class":1225},[1057,2398,1026],{"class":1821},[1057,2400,1835],{"class":1225},[1057,2402,2403],{"class":1059,"line":1628},[1057,2404,2161],{"class":1063},[1026,2406,2407],{},[1042,2408,2409],{},"Membership Tests:",[1047,2411,2413],{"className":1049,"code":2412,"language":1051,"meta":1052,"style":1052},"{% if 'admin' in user.groups.all %}\n    \u003Cp>Administrator\u003C/p>\n{% endif %}\n\n{% if user in post.likes.all %}\n    \u003Cbutton>Unlike\u003C/button>\n{% else %}\n    \u003Cbutton>Like\u003C/button>\n{% endif %}\n",[1054,2414,2415,2420,2437,2441,2445,2450,2468,2472,2489],{"__ignoreMap":1052},[1057,2416,2417],{"class":1059,"line":1060},[1057,2418,2419],{"class":1063},"{% if 'admin' in user.groups.all %}\n",[1057,2421,2422,2424,2426,2428,2431,2433,2435],{"class":1059,"line":1067},[1057,2423,1905],{"class":1225},[1057,2425,1026],{"class":1821},[1057,2427,1824],{"class":1225},[1057,2429,2430],{"class":1063},"Administrator",[1057,2432,1830],{"class":1225},[1057,2434,1026],{"class":1821},[1057,2436,1835],{"class":1225},[1057,2438,2439],{"class":1059,"line":1073},[1057,2440,2161],{"class":1063},[1057,2442,2443],{"class":1059,"line":1079},[1057,2444,1583],{"emptyLinePlaceholder":1582},[1057,2446,2447],{"class":1059,"line":1273},[1057,2448,2449],{"class":1063},"{% if user in post.likes.all %}\n",[1057,2451,2452,2454,2457,2459,2462,2464,2466],{"class":1059,"line":1296},[1057,2453,1905],{"class":1225},[1057,2455,2456],{"class":1821},"button",[1057,2458,1824],{"class":1225},[1057,2460,2461],{"class":1063},"Unlike",[1057,2463,1830],{"class":1225},[1057,2465,2456],{"class":1821},[1057,2467,1835],{"class":1225},[1057,2469,2470],{"class":1059,"line":1330},[1057,2471,2118],{"class":1063},[1057,2473,2474,2476,2478,2480,2483,2485,2487],{"class":1059,"line":1336},[1057,2475,1905],{"class":1225},[1057,2477,2456],{"class":1821},[1057,2479,1824],{"class":1225},[1057,2481,2482],{"class":1063},"Like",[1057,2484,1830],{"class":1225},[1057,2486,2456],{"class":1821},[1057,2488,1835],{"class":1225},[1057,2490,2491],{"class":1059,"line":1376},[1057,2492,2161],{"class":1063},[1035,2494,2496],{"id":2495},"loop-tags","Loop Tags",[1026,2498,2499],{},[1042,2500,2501],{},"Basic for Loop:",[1047,2503,2505],{"className":1049,"code":2504,"language":1051,"meta":1052,"style":1052},"\u003Cul>\n{% for post in posts %}\n    \u003Cli>{{ post.title }} - {{ post.created_at|date:\"Y-m-d\" }}\u003C/li>\n{% empty %}\n    \u003Cli>No posts available\u003C/li>\n{% endfor %}\n\u003C/ul>\n",[1054,2506,2507,2516,2521,2538,2543,2560,2564],{"__ignoreMap":1052},[1057,2508,2509,2511,2514],{"class":1059,"line":1060},[1057,2510,1818],{"class":1225},[1057,2512,2513],{"class":1821},"ul",[1057,2515,1835],{"class":1225},[1057,2517,2518],{"class":1059,"line":1067},[1057,2519,2520],{"class":1063},"{% for post in posts %}\n",[1057,2522,2523,2525,2527,2529,2532,2534,2536],{"class":1059,"line":1073},[1057,2524,1905],{"class":1225},[1057,2526,1181],{"class":1821},[1057,2528,1824],{"class":1225},[1057,2530,2531],{"class":1063},"{{ post.title }} - {{ post.created_at|date:\"Y-m-d\" }}",[1057,2533,1830],{"class":1225},[1057,2535,1181],{"class":1821},[1057,2537,1835],{"class":1225},[1057,2539,2540],{"class":1059,"line":1079},[1057,2541,2542],{"class":1063},"{% empty %}\n",[1057,2544,2545,2547,2549,2551,2554,2556,2558],{"class":1059,"line":1273},[1057,2546,1905],{"class":1225},[1057,2548,1181],{"class":1821},[1057,2550,1824],{"class":1225},[1057,2552,2553],{"class":1063},"No posts available",[1057,2555,1830],{"class":1225},[1057,2557,1181],{"class":1821},[1057,2559,1835],{"class":1225},[1057,2561,2562],{"class":1059,"line":1296},[1057,2563,1937],{"class":1063},[1057,2565,2566,2568,2570],{"class":1059,"line":1330},[1057,2567,1830],{"class":1225},[1057,2569,2513],{"class":1821},[1057,2571,1835],{"class":1225},[1026,2573,2574],{},[1042,2575,2576],{},"Loop Variables:",[1047,2578,2580],{"className":1049,"code":2579,"language":1051,"meta":1052,"style":1052},"\u003Ctable>\n{% for post in posts %}\n    \u003Ctr class=\"{% if forloop.first %}first{% elif forloop.last %}last{% endif %}\n               {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}\">\n        \u003Ctd>{{ forloop.counter }}\u003C/td>\n        \u003Ctd>{{ post.title }}\u003C/td>\n        \u003Ctd>{{ forloop.revcounter }} remaining\u003C/td>\n    \u003C/tr>\n{% endfor %}\n\u003C/table>\n",[1054,2581,2582,2591,2595,2611,2620,2638,2654,2671,2680,2684],{"__ignoreMap":1052},[1057,2583,2584,2586,2589],{"class":1059,"line":1060},[1057,2585,1818],{"class":1225},[1057,2587,2588],{"class":1821},"table",[1057,2590,1835],{"class":1225},[1057,2592,2593],{"class":1059,"line":1067},[1057,2594,2520],{"class":1063},[1057,2596,2597,2599,2602,2604,2606,2608],{"class":1059,"line":1073},[1057,2598,1905],{"class":1225},[1057,2600,2601],{"class":1821},"tr",[1057,2603,1911],{"class":1910},[1057,2605,1226],{"class":1225},[1057,2607,1916],{"class":1234},[1057,2609,2610],{"class":1238},"{% if forloop.first %}first{% elif forloop.last %}last{% endif %}\n",[1057,2612,2613,2616,2618],{"class":1059,"line":1079},[1057,2614,2615],{"class":1238},"               {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}",[1057,2617,1916],{"class":1234},[1057,2619,1835],{"class":1225},[1057,2621,2622,2624,2627,2629,2632,2634,2636],{"class":1059,"line":1273},[1057,2623,2052],{"class":1225},[1057,2625,2626],{"class":1821},"td",[1057,2628,1824],{"class":1225},[1057,2630,2631],{"class":1063},"{{ forloop.counter }}",[1057,2633,1830],{"class":1225},[1057,2635,2626],{"class":1821},[1057,2637,1835],{"class":1225},[1057,2639,2640,2642,2644,2646,2648,2650,2652],{"class":1059,"line":1296},[1057,2641,2052],{"class":1225},[1057,2643,2626],{"class":1821},[1057,2645,1824],{"class":1225},[1057,2647,1827],{"class":1063},[1057,2649,1830],{"class":1225},[1057,2651,2626],{"class":1821},[1057,2653,1835],{"class":1225},[1057,2655,2656,2658,2660,2662,2665,2667,2669],{"class":1059,"line":1330},[1057,2657,2052],{"class":1225},[1057,2659,2626],{"class":1821},[1057,2661,1824],{"class":1225},[1057,2663,2664],{"class":1063},"{{ forloop.revcounter }} remaining",[1057,2666,1830],{"class":1225},[1057,2668,2626],{"class":1821},[1057,2670,1835],{"class":1225},[1057,2672,2673,2676,2678],{"class":1059,"line":1336},[1057,2674,2675],{"class":1225},"    \u003C/",[1057,2677,2601],{"class":1821},[1057,2679,1835],{"class":1225},[1057,2681,2682],{"class":1059,"line":1376},[1057,2683,1937],{"class":1063},[1057,2685,2686,2688,2690],{"class":1059,"line":1603},[1057,2687,1830],{"class":1225},[1057,2689,2588],{"class":1821},[1057,2691,1835],{"class":1225},[1026,2693,2694],{},[1042,2695,2696],{},"Available forloop Variables:",[2513,2698,2699,2705,2711,2717,2723,2729,2735],{},[1181,2700,2701,2704],{},[1054,2702,2703],{},"forloop.counter"," - Current iteration (1-indexed)",[1181,2706,2707,2710],{},[1054,2708,2709],{},"forloop.counter0"," - Current iteration (0-indexed)",[1181,2712,2713,2716],{},[1054,2714,2715],{},"forloop.revcounter"," - Reverse counter (1-indexed)",[1181,2718,2719,2722],{},[1054,2720,2721],{},"forloop.revcounter0"," - Reverse counter (0-indexed)",[1181,2724,2725,2728],{},[1054,2726,2727],{},"forloop.first"," - True if first iteration",[1181,2730,2731,2734],{},[1054,2732,2733],{},"forloop.last"," - True if last iteration",[1181,2736,2737,2740],{},[1054,2738,2739],{},"forloop.parentloop"," - Parent loop in nested loops",[1026,2742,2743],{},[1042,2744,2745],{},"Nested Loops:",[1047,2747,2749],{"className":1049,"code":2748,"language":1051,"meta":1052,"style":1052},"{% for category in categories %}\n    \u003Ch2>{{ category.name }}\u003C/h2>\n    \u003Cul>\n    {% for post in category.posts.all %}\n        \u003Cli>\n            {{ forloop.parentloop.counter }}.{{ forloop.counter }} \n            {{ post.title }}\n        \u003C/li>\n    {% endfor %}\n    \u003C/ul>\n{% endfor %}\n",[1054,2750,2751,2756,2773,2781,2786,2794,2799,2804,2813,2818,2826],{"__ignoreMap":1052},[1057,2752,2753],{"class":1059,"line":1060},[1057,2754,2755],{"class":1063},"{% for category in categories %}\n",[1057,2757,2758,2760,2762,2764,2767,2769,2771],{"class":1059,"line":1067},[1057,2759,1905],{"class":1225},[1057,2761,1030],{"class":1821},[1057,2763,1824],{"class":1225},[1057,2765,2766],{"class":1063},"{{ category.name }}",[1057,2768,1830],{"class":1225},[1057,2770,1030],{"class":1821},[1057,2772,1835],{"class":1225},[1057,2774,2775,2777,2779],{"class":1059,"line":1073},[1057,2776,1905],{"class":1225},[1057,2778,2513],{"class":1821},[1057,2780,1835],{"class":1225},[1057,2782,2783],{"class":1059,"line":1079},[1057,2784,2785],{"class":1063},"    {% for post in category.posts.all %}\n",[1057,2787,2788,2790,2792],{"class":1059,"line":1273},[1057,2789,2052],{"class":1225},[1057,2791,1181],{"class":1821},[1057,2793,1835],{"class":1225},[1057,2795,2796],{"class":1059,"line":1296},[1057,2797,2798],{"class":1063},"            {{ forloop.parentloop.counter }}.{{ forloop.counter }} \n",[1057,2800,2801],{"class":1059,"line":1330},[1057,2802,2803],{"class":1063},"            {{ post.title }}\n",[1057,2805,2806,2809,2811],{"class":1059,"line":1336},[1057,2807,2808],{"class":1225},"        \u003C/",[1057,2810,1181],{"class":1821},[1057,2812,1835],{"class":1225},[1057,2814,2815],{"class":1059,"line":1376},[1057,2816,2817],{"class":1063},"    {% endfor %}\n",[1057,2819,2820,2822,2824],{"class":1059,"line":1603},[1057,2821,2675],{"class":1225},[1057,2823,2513],{"class":1821},[1057,2825,1835],{"class":1225},[1057,2827,2828],{"class":1059,"line":1628},[1057,2829,1937],{"class":1063},[1035,2831,2833],{"id":2832},"url-and-link-tags","URL and Link Tags",[1026,2835,2836],{},[1042,2837,2838],{},"url Tag:",[1047,2840,2842],{"className":1049,"code":2841,"language":1051,"meta":1052,"style":1052},"\u003C!-- Basic URL generation -->\n\u003Ca href=\"{% url 'blog:post_detail' post.pk %}\">{{ post.title }}\u003C/a>\n\u003Ca href=\"{% url 'blog:category' category.slug %}\">{{ category.name }}\u003C/a>\n\n\u003C!-- URL with multiple arguments -->\n\u003Ca href=\"{% url 'blog:post_by_date' year=2024 month=3 day=15 %}\">March 15, 2024\u003C/a>\n\n\u003C!-- URL with query parameters -->\n\u003Ca href=\"{% url 'blog:post_list' %}?page=2&category={{ category.slug }}\">Next Page\u003C/a>\n\n\u003C!-- Store URL in variable -->\n{% url 'blog:post_detail' post.pk as post_url %}\n\u003Ca href=\"{{ post_url }}\">Read More\u003C/a>\n\u003Cmeta property=\"og:url\" content=\"{{ request.build_absolute_uri }}{{ post_url }}\">\n",[1054,2843,2844,2849,2876,2903,2907,2912,2940,2944,2949,2977,2981,2986,2991,3019],{"__ignoreMap":1052},[1057,2845,2846],{"class":1059,"line":1060},[1057,2847,2848],{"class":1216},"\u003C!-- Basic URL generation -->\n",[1057,2850,2851,2853,2855,2857,2859,2861,2864,2866,2868,2870,2872,2874],{"class":1059,"line":1067},[1057,2852,1818],{"class":1225},[1057,2854,1975],{"class":1821},[1057,2856,1978],{"class":1910},[1057,2858,1226],{"class":1225},[1057,2860,1916],{"class":1234},[1057,2862,2863],{"class":1238},"{% url 'blog:post_detail' post.pk %}",[1057,2865,1916],{"class":1234},[1057,2867,1824],{"class":1225},[1057,2869,1827],{"class":1063},[1057,2871,1830],{"class":1225},[1057,2873,1975],{"class":1821},[1057,2875,1835],{"class":1225},[1057,2877,2878,2880,2882,2884,2886,2888,2891,2893,2895,2897,2899,2901],{"class":1059,"line":1073},[1057,2879,1818],{"class":1225},[1057,2881,1975],{"class":1821},[1057,2883,1978],{"class":1910},[1057,2885,1226],{"class":1225},[1057,2887,1916],{"class":1234},[1057,2889,2890],{"class":1238},"{% url 'blog:category' category.slug %}",[1057,2892,1916],{"class":1234},[1057,2894,1824],{"class":1225},[1057,2896,2766],{"class":1063},[1057,2898,1830],{"class":1225},[1057,2900,1975],{"class":1821},[1057,2902,1835],{"class":1225},[1057,2904,2905],{"class":1059,"line":1079},[1057,2906,1583],{"emptyLinePlaceholder":1582},[1057,2908,2909],{"class":1059,"line":1273},[1057,2910,2911],{"class":1216},"\u003C!-- URL with multiple arguments -->\n",[1057,2913,2914,2916,2918,2920,2922,2924,2927,2929,2931,2934,2936,2938],{"class":1059,"line":1296},[1057,2915,1818],{"class":1225},[1057,2917,1975],{"class":1821},[1057,2919,1978],{"class":1910},[1057,2921,1226],{"class":1225},[1057,2923,1916],{"class":1234},[1057,2925,2926],{"class":1238},"{% url 'blog:post_by_date' year=2024 month=3 day=15 %}",[1057,2928,1916],{"class":1234},[1057,2930,1824],{"class":1225},[1057,2932,2933],{"class":1063},"March 15, 2024",[1057,2935,1830],{"class":1225},[1057,2937,1975],{"class":1821},[1057,2939,1835],{"class":1225},[1057,2941,2942],{"class":1059,"line":1330},[1057,2943,1583],{"emptyLinePlaceholder":1582},[1057,2945,2946],{"class":1059,"line":1336},[1057,2947,2948],{"class":1216},"\u003C!-- URL with query parameters -->\n",[1057,2950,2951,2953,2955,2957,2959,2961,2964,2966,2968,2971,2973,2975],{"class":1059,"line":1376},[1057,2952,1818],{"class":1225},[1057,2954,1975],{"class":1821},[1057,2956,1978],{"class":1910},[1057,2958,1226],{"class":1225},[1057,2960,1916],{"class":1234},[1057,2962,2963],{"class":1238},"{% url 'blog:post_list' %}?page=2&category={{ category.slug }}",[1057,2965,1916],{"class":1234},[1057,2967,1824],{"class":1225},[1057,2969,2970],{"class":1063},"Next Page",[1057,2972,1830],{"class":1225},[1057,2974,1975],{"class":1821},[1057,2976,1835],{"class":1225},[1057,2978,2979],{"class":1059,"line":1603},[1057,2980,1583],{"emptyLinePlaceholder":1582},[1057,2982,2983],{"class":1059,"line":1628},[1057,2984,2985],{"class":1216},"\u003C!-- Store URL in variable -->\n",[1057,2987,2988],{"class":1059,"line":1678},[1057,2989,2990],{"class":1063},"{% url 'blog:post_detail' post.pk as post_url %}\n",[1057,2992,2993,2995,2997,2999,3001,3003,3006,3008,3010,3013,3015,3017],{"class":1059,"line":1704},[1057,2994,1818],{"class":1225},[1057,2996,1975],{"class":1821},[1057,2998,1978],{"class":1910},[1057,3000,1226],{"class":1225},[1057,3002,1916],{"class":1234},[1057,3004,3005],{"class":1238},"{{ post_url }}",[1057,3007,1916],{"class":1234},[1057,3009,1824],{"class":1225},[1057,3011,3012],{"class":1063},"Read More",[1057,3014,1830],{"class":1225},[1057,3016,1975],{"class":1821},[1057,3018,1835],{"class":1225},[1057,3020,3021,3023,3026,3029,3031,3033,3036,3038,3041,3043,3045,3048,3050],{"class":1059,"line":1709},[1057,3022,1818],{"class":1225},[1057,3024,3025],{"class":1821},"meta",[1057,3027,3028],{"class":1910}," property",[1057,3030,1226],{"class":1225},[1057,3032,1916],{"class":1234},[1057,3034,3035],{"class":1238},"og:url",[1057,3037,1916],{"class":1234},[1057,3039,3040],{"class":1910}," content",[1057,3042,1226],{"class":1225},[1057,3044,1916],{"class":1234},[1057,3046,3047],{"class":1238},"{{ request.build_absolute_uri }}{{ post_url }}",[1057,3049,1916],{"class":1234},[1057,3051,1835],{"class":1225},[1035,3053,3055],{"id":3054},"template-loading-tags","Template Loading Tags",[1026,3057,3058],{},[1042,3059,3060],{},"include Tag:",[1047,3062,3064],{"className":1049,"code":3063,"language":1051,"meta":1052,"style":1052},"\u003C!-- Include another template -->\n{% include 'blog/includes/post_card.html' %}\n\n\u003C!-- Include with additional context -->\n{% include 'blog/includes/post_card.html' with featured=True %}\n\n\u003C!-- Include with only specific context -->\n{% include 'blog/includes/post_card.html' with post=featured_post only %}\n",[1054,3065,3066,3071,3076,3080,3085,3090,3094,3099],{"__ignoreMap":1052},[1057,3067,3068],{"class":1059,"line":1060},[1057,3069,3070],{"class":1216},"\u003C!-- Include another template -->\n",[1057,3072,3073],{"class":1059,"line":1067},[1057,3074,3075],{"class":1063},"{% include 'blog/includes/post_card.html' %}\n",[1057,3077,3078],{"class":1059,"line":1073},[1057,3079,1583],{"emptyLinePlaceholder":1582},[1057,3081,3082],{"class":1059,"line":1079},[1057,3083,3084],{"class":1216},"\u003C!-- Include with additional context -->\n",[1057,3086,3087],{"class":1059,"line":1273},[1057,3088,3089],{"class":1063},"{% include 'blog/includes/post_card.html' with featured=True %}\n",[1057,3091,3092],{"class":1059,"line":1296},[1057,3093,1583],{"emptyLinePlaceholder":1582},[1057,3095,3096],{"class":1059,"line":1330},[1057,3097,3098],{"class":1216},"\u003C!-- Include with only specific context -->\n",[1057,3100,3101],{"class":1059,"line":1336},[1057,3102,3103],{"class":1063},"{% include 'blog/includes/post_card.html' with post=featured_post only %}\n",[1026,3105,3106],{},[1042,3107,3108],{},"extends and block Tags:",[1047,3110,3112],{"className":1049,"code":3111,"language":1051,"meta":1052,"style":1052},"\u003C!-- child_template.html -->\n{% extends 'base.html' %}\n\n{% block title %}{{ post.title }} - {{ block.super }}{% endblock %}\n\n{% block content %}\n    \u003Ch1>{{ post.title }}\u003C/h1>\n    \u003Cp>{{ post.content }}\u003C/p>\n{% endblock %}\n\n{% block extra_css %}\n    \u003Clink rel=\"stylesheet\" href=\"{% static 'blog/css/post.css' %}\">\n{% endblock %}\n",[1054,3113,3114,3119,3124,3128,3133,3137,3142,3158,3175,3180,3184,3189,3221],{"__ignoreMap":1052},[1057,3115,3116],{"class":1059,"line":1060},[1057,3117,3118],{"class":1216},"\u003C!-- child_template.html -->\n",[1057,3120,3121],{"class":1059,"line":1067},[1057,3122,3123],{"class":1063},"{% extends 'base.html' %}\n",[1057,3125,3126],{"class":1059,"line":1073},[1057,3127,1583],{"emptyLinePlaceholder":1582},[1057,3129,3130],{"class":1059,"line":1079},[1057,3131,3132],{"class":1063},"{% block title %}{{ post.title }} - {{ block.super }}{% endblock %}\n",[1057,3134,3135],{"class":1059,"line":1273},[1057,3136,1583],{"emptyLinePlaceholder":1582},[1057,3138,3139],{"class":1059,"line":1296},[1057,3140,3141],{"class":1063},"{% block content %}\n",[1057,3143,3144,3146,3148,3150,3152,3154,3156],{"class":1059,"line":1330},[1057,3145,1905],{"class":1225},[1057,3147,1022],{"class":1821},[1057,3149,1824],{"class":1225},[1057,3151,1827],{"class":1063},[1057,3153,1830],{"class":1225},[1057,3155,1022],{"class":1821},[1057,3157,1835],{"class":1225},[1057,3159,3160,3162,3164,3166,3169,3171,3173],{"class":1059,"line":1336},[1057,3161,1905],{"class":1225},[1057,3163,1026],{"class":1821},[1057,3165,1824],{"class":1225},[1057,3167,3168],{"class":1063},"{{ post.content }}",[1057,3170,1830],{"class":1225},[1057,3172,1026],{"class":1821},[1057,3174,1835],{"class":1225},[1057,3176,3177],{"class":1059,"line":1376},[1057,3178,3179],{"class":1063},"{% endblock %}\n",[1057,3181,3182],{"class":1059,"line":1603},[1057,3183,1583],{"emptyLinePlaceholder":1582},[1057,3185,3186],{"class":1059,"line":1628},[1057,3187,3188],{"class":1063},"{% block extra_css %}\n",[1057,3190,3191,3193,3196,3199,3201,3203,3206,3208,3210,3212,3214,3217,3219],{"class":1059,"line":1678},[1057,3192,1905],{"class":1225},[1057,3194,3195],{"class":1821},"link",[1057,3197,3198],{"class":1910}," rel",[1057,3200,1226],{"class":1225},[1057,3202,1916],{"class":1234},[1057,3204,3205],{"class":1238},"stylesheet",[1057,3207,1916],{"class":1234},[1057,3209,1978],{"class":1910},[1057,3211,1226],{"class":1225},[1057,3213,1916],{"class":1234},[1057,3215,3216],{"class":1238},"{% static 'blog/css/post.css' %}",[1057,3218,1916],{"class":1234},[1057,3220,1835],{"class":1225},[1057,3222,3223],{"class":1059,"line":1704},[1057,3224,3179],{"class":1063},[1035,3226,3228],{"id":3227},"utility-tags","Utility Tags",[1026,3230,3231],{},[1042,3232,3233],{},"with Tag:",[1047,3235,3237],{"className":1049,"code":3236,"language":1051,"meta":1052,"style":1052},"\u003C!-- Create local variables -->\n{% with post.author as author %}\n    \u003Cp>{{ author.name }} ({{ author.email }})\u003C/p>\n    \u003Cp>Posts by {{ author.name }}: {{ author.posts.count }}\u003C/p>\n{% endwith %}\n\n\u003C!-- Multiple variables -->\n{% with total=posts.count published=posts.published.count %}\n    \u003Cp>{{ published }} of {{ total }} posts are published\u003C/p>\n{% endwith %}\n",[1054,3238,3239,3244,3249,3266,3283,3288,3292,3297,3302,3319],{"__ignoreMap":1052},[1057,3240,3241],{"class":1059,"line":1060},[1057,3242,3243],{"class":1216},"\u003C!-- Create local variables -->\n",[1057,3245,3246],{"class":1059,"line":1067},[1057,3247,3248],{"class":1063},"{% with post.author as author %}\n",[1057,3250,3251,3253,3255,3257,3260,3262,3264],{"class":1059,"line":1073},[1057,3252,1905],{"class":1225},[1057,3254,1026],{"class":1821},[1057,3256,1824],{"class":1225},[1057,3258,3259],{"class":1063},"{{ author.name }} ({{ author.email }})",[1057,3261,1830],{"class":1225},[1057,3263,1026],{"class":1821},[1057,3265,1835],{"class":1225},[1057,3267,3268,3270,3272,3274,3277,3279,3281],{"class":1059,"line":1079},[1057,3269,1905],{"class":1225},[1057,3271,1026],{"class":1821},[1057,3273,1824],{"class":1225},[1057,3275,3276],{"class":1063},"Posts by {{ author.name }}: {{ author.posts.count }}",[1057,3278,1830],{"class":1225},[1057,3280,1026],{"class":1821},[1057,3282,1835],{"class":1225},[1057,3284,3285],{"class":1059,"line":1273},[1057,3286,3287],{"class":1063},"{% endwith %}\n",[1057,3289,3290],{"class":1059,"line":1296},[1057,3291,1583],{"emptyLinePlaceholder":1582},[1057,3293,3294],{"class":1059,"line":1330},[1057,3295,3296],{"class":1216},"\u003C!-- Multiple variables -->\n",[1057,3298,3299],{"class":1059,"line":1336},[1057,3300,3301],{"class":1063},"{% with total=posts.count published=posts.published.count %}\n",[1057,3303,3304,3306,3308,3310,3313,3315,3317],{"class":1059,"line":1376},[1057,3305,1905],{"class":1225},[1057,3307,1026],{"class":1821},[1057,3309,1824],{"class":1225},[1057,3311,3312],{"class":1063},"{{ published }} of {{ total }} posts are published",[1057,3314,1830],{"class":1225},[1057,3316,1026],{"class":1821},[1057,3318,1835],{"class":1225},[1057,3320,3321],{"class":1059,"line":1603},[1057,3322,3287],{"class":1063},[1026,3324,3325],{},[1042,3326,3327],{},"spaceless Tag:",[1047,3329,3331],{"className":1049,"code":3330,"language":1051,"meta":1052,"style":1052},"{% spaceless %}\n    \u003Cp>\n        \u003Ca href=\"{% url 'home' %}\">Home\u003C/a>\n        \u003Ca href=\"{% url 'about' %}\">About\u003C/a>\n    \u003C/p>\n{% endspaceless %}\n\u003C!-- Output: \u003Cp>\u003Ca href=\"/\">Home\u003C/a>\u003Ca href=\"/about/\">About\u003C/a>\u003C/p> -->\n",[1054,3332,3333,3338,3346,3374,3402,3410,3415],{"__ignoreMap":1052},[1057,3334,3335],{"class":1059,"line":1060},[1057,3336,3337],{"class":1063},"{% spaceless %}\n",[1057,3339,3340,3342,3344],{"class":1059,"line":1067},[1057,3341,1905],{"class":1225},[1057,3343,1026],{"class":1821},[1057,3345,1835],{"class":1225},[1057,3347,3348,3350,3352,3354,3356,3358,3361,3363,3365,3368,3370,3372],{"class":1059,"line":1073},[1057,3349,2052],{"class":1225},[1057,3351,1975],{"class":1821},[1057,3353,1978],{"class":1910},[1057,3355,1226],{"class":1225},[1057,3357,1916],{"class":1234},[1057,3359,3360],{"class":1238},"{% url 'home' %}",[1057,3362,1916],{"class":1234},[1057,3364,1824],{"class":1225},[1057,3366,3367],{"class":1063},"Home",[1057,3369,1830],{"class":1225},[1057,3371,1975],{"class":1821},[1057,3373,1835],{"class":1225},[1057,3375,3376,3378,3380,3382,3384,3386,3389,3391,3393,3396,3398,3400],{"class":1059,"line":1079},[1057,3377,2052],{"class":1225},[1057,3379,1975],{"class":1821},[1057,3381,1978],{"class":1910},[1057,3383,1226],{"class":1225},[1057,3385,1916],{"class":1234},[1057,3387,3388],{"class":1238},"{% url 'about' %}",[1057,3390,1916],{"class":1234},[1057,3392,1824],{"class":1225},[1057,3394,3395],{"class":1063},"About",[1057,3397,1830],{"class":1225},[1057,3399,1975],{"class":1821},[1057,3401,1835],{"class":1225},[1057,3403,3404,3406,3408],{"class":1059,"line":1273},[1057,3405,2675],{"class":1225},[1057,3407,1026],{"class":1821},[1057,3409,1835],{"class":1225},[1057,3411,3412],{"class":1059,"line":1296},[1057,3413,3414],{"class":1063},"{% endspaceless %}\n",[1057,3416,3417],{"class":1059,"line":1330},[1057,3418,3419],{"class":1216},"\u003C!-- Output: \u003Cp>\u003Ca href=\"/\">Home\u003C/a>\u003Ca href=\"/about/\">About\u003C/a>\u003C/p> -->\n",[1026,3421,3422],{},[1042,3423,3424],{},"verbatim Tag:",[1047,3426,3428],{"className":1049,"code":3427,"language":1051,"meta":1052,"style":1052},"{% verbatim %}\n    \u003C!-- This won't be processed by Django -->\n    \u003Cscript>\n        var data = {{ json_data }};  // This stays as literal text\n    \u003C/script>\n{% endverbatim %}\n",[1054,3429,3430,3435,3440,3449,3473,3481],{"__ignoreMap":1052},[1057,3431,3432],{"class":1059,"line":1060},[1057,3433,3434],{"class":1063},"{% verbatim %}\n",[1057,3436,3437],{"class":1059,"line":1067},[1057,3438,3439],{"class":1216},"    \u003C!-- This won't be processed by Django -->\n",[1057,3441,3442,3444,3447],{"class":1059,"line":1073},[1057,3443,1905],{"class":1225},[1057,3445,3446],{"class":1821},"script",[1057,3448,1835],{"class":1225},[1057,3450,3451,3454,3458,3461,3464,3467,3470],{"class":1059,"line":1079},[1057,3452,3453],{"class":1448},"        var",[1057,3455,3457],{"class":3456},"sSC40"," data",[1057,3459,3460],{"class":1225}," =",[1057,3462,3463],{"class":1225}," {{",[1057,3465,3466],{"class":3456}," json_data",[1057,3468,3469],{"class":1225}," }};",[1057,3471,3472],{"class":1216},"  // This stays as literal text\n",[1057,3474,3475,3477,3479],{"class":1059,"line":1273},[1057,3476,2675],{"class":1225},[1057,3478,3446],{"class":1821},[1057,3480,1835],{"class":1225},[1057,3482,3483],{"class":1059,"line":1296},[1057,3484,3485],{"class":1063},"{% endverbatim %}\n",[1030,3487,3489],{"id":3488},"template-filters","Template Filters",[1035,3491,3493],{"id":3492},"string-filters","String Filters",[1026,3495,3496],{},[1042,3497,3498],{},"Text Transformation:",[1047,3500,3502],{"className":1049,"code":3501,"language":1051,"meta":1052,"style":1052},"{{ \"hello world\"|title }}           \u003C!-- Hello World -->\n{{ \"LOUD TEXT\"|lower }}             \u003C!-- loud text -->\n{{ \"quiet text\"|upper }}            \u003C!-- QUIET TEXT -->\n{{ \"  spaced  \"|strip }}            \u003C!-- spaced -->\n{{ \"hello-world\"|slugify }}         \u003C!-- hello-world -->\n",[1054,3503,3504,3512,3520,3528,3536],{"__ignoreMap":1052},[1057,3505,3506,3509],{"class":1059,"line":1060},[1057,3507,3508],{"class":1063},"{{ \"hello world\"|title }}           ",[1057,3510,3511],{"class":1216},"\u003C!-- Hello World -->\n",[1057,3513,3514,3517],{"class":1059,"line":1067},[1057,3515,3516],{"class":1063},"{{ \"LOUD TEXT\"|lower }}             ",[1057,3518,3519],{"class":1216},"\u003C!-- loud text -->\n",[1057,3521,3522,3525],{"class":1059,"line":1073},[1057,3523,3524],{"class":1063},"{{ \"quiet text\"|upper }}            ",[1057,3526,3527],{"class":1216},"\u003C!-- QUIET TEXT -->\n",[1057,3529,3530,3533],{"class":1059,"line":1079},[1057,3531,3532],{"class":1063},"{{ \"  spaced  \"|strip }}            ",[1057,3534,3535],{"class":1216},"\u003C!-- spaced -->\n",[1057,3537,3538,3541],{"class":1059,"line":1273},[1057,3539,3540],{"class":1063},"{{ \"hello-world\"|slugify }}         ",[1057,3542,3543],{"class":1216},"\u003C!-- hello-world -->\n",[1026,3545,3546],{},[1042,3547,3548],{},"Text Truncation:",[1047,3550,3552],{"className":1049,"code":3551,"language":1051,"meta":1052,"style":1052},"{{ post.content|truncatewords:50 }}\n{{ post.title|truncatechars:30 }}\n{{ post.content|truncatewords_html:50 }}\n",[1054,3553,3554,3559,3564],{"__ignoreMap":1052},[1057,3555,3556],{"class":1059,"line":1060},[1057,3557,3558],{"class":1063},"{{ post.content|truncatewords:50 }}\n",[1057,3560,3561],{"class":1059,"line":1067},[1057,3562,3563],{"class":1063},"{{ post.title|truncatechars:30 }}\n",[1057,3565,3566],{"class":1059,"line":1073},[1057,3567,3568],{"class":1063},"{{ post.content|truncatewords_html:50 }}\n",[1026,3570,3571],{},[1042,3572,3573],{},"Text Formatting:",[1047,3575,3577],{"className":1049,"code":3576,"language":1051,"meta":1052,"style":1052},"{{ post.content|linebreaks }}       \u003C!-- Converts \\n to \u003Cp> and \u003Cbr> -->\n{{ post.content|linebreaksbr }}     \u003C!-- Converts \\n to \u003Cbr> -->\n{{ post.content|striptags }}        \u003C!-- Removes HTML tags -->\n{{ post.content|escape }}           \u003C!-- HTML escapes -->\n{{ trusted_html|safe }}             \u003C!-- Marks as safe HTML -->\n",[1054,3578,3579,3587,3595,3603,3611],{"__ignoreMap":1052},[1057,3580,3581,3584],{"class":1059,"line":1060},[1057,3582,3583],{"class":1063},"{{ post.content|linebreaks }}       ",[1057,3585,3586],{"class":1216},"\u003C!-- Converts \\n to \u003Cp> and \u003Cbr> -->\n",[1057,3588,3589,3592],{"class":1059,"line":1067},[1057,3590,3591],{"class":1063},"{{ post.content|linebreaksbr }}     ",[1057,3593,3594],{"class":1216},"\u003C!-- Converts \\n to \u003Cbr> -->\n",[1057,3596,3597,3600],{"class":1059,"line":1073},[1057,3598,3599],{"class":1063},"{{ post.content|striptags }}        ",[1057,3601,3602],{"class":1216},"\u003C!-- Removes HTML tags -->\n",[1057,3604,3605,3608],{"class":1059,"line":1079},[1057,3606,3607],{"class":1063},"{{ post.content|escape }}           ",[1057,3609,3610],{"class":1216},"\u003C!-- HTML escapes -->\n",[1057,3612,3613,3616],{"class":1059,"line":1273},[1057,3614,3615],{"class":1063},"{{ trusted_html|safe }}             ",[1057,3617,3618],{"class":1216},"\u003C!-- Marks as safe HTML -->\n",[1035,3620,3622],{"id":3621},"numeric-filters","Numeric Filters",[1026,3624,3625],{},[1042,3626,3627],{},"Number Formatting:",[1047,3629,3631],{"className":1049,"code":3630,"language":1051,"meta":1052,"style":1052},"{{ 1234.5678|floatformat:2 }}       \u003C!-- 1234.57 -->\n{{ 42|add:8 }}                      \u003C!-- 50 -->\n{{ numbers|length }}                \u003C!-- Count of items -->\n{{ price|floatformat:0 }}           \u003C!-- 1235 -->\n",[1054,3632,3633,3641,3649,3657],{"__ignoreMap":1052},[1057,3634,3635,3638],{"class":1059,"line":1060},[1057,3636,3637],{"class":1063},"{{ 1234.5678|floatformat:2 }}       ",[1057,3639,3640],{"class":1216},"\u003C!-- 1234.57 -->\n",[1057,3642,3643,3646],{"class":1059,"line":1067},[1057,3644,3645],{"class":1063},"{{ 42|add:8 }}                      ",[1057,3647,3648],{"class":1216},"\u003C!-- 50 -->\n",[1057,3650,3651,3654],{"class":1059,"line":1073},[1057,3652,3653],{"class":1063},"{{ numbers|length }}                ",[1057,3655,3656],{"class":1216},"\u003C!-- Count of items -->\n",[1057,3658,3659,3662],{"class":1059,"line":1079},[1057,3660,3661],{"class":1063},"{{ price|floatformat:0 }}           ",[1057,3663,3664],{"class":1216},"\u003C!-- 1235 -->\n",[1035,3666,3668],{"id":3667},"date-and-time-filters","Date and Time Filters",[1026,3670,3671],{},[1042,3672,3673],{},"Date Formatting:",[1047,3675,3677],{"className":1049,"code":3676,"language":1051,"meta":1052,"style":1052},"{{ post.created_at|date:\"Y-m-d\" }}              \u003C!-- 2024-03-15 -->\n{{ post.created_at|date:\"F d, Y\" }}             \u003C!-- March 15, 2024 -->\n{{ post.created_at|time:\"H:i\" }}                \u003C!-- 14:30 -->\n{{ post.created_at|timesince }}                 \u003C!-- 2 hours ago -->\n{{ post.created_at|timeuntil }}                 \u003C!-- in 3 days -->\n",[1054,3678,3679,3687,3695,3703,3711],{"__ignoreMap":1052},[1057,3680,3681,3684],{"class":1059,"line":1060},[1057,3682,3683],{"class":1063},"{{ post.created_at|date:\"Y-m-d\" }}              ",[1057,3685,3686],{"class":1216},"\u003C!-- 2024-03-15 -->\n",[1057,3688,3689,3692],{"class":1059,"line":1067},[1057,3690,3691],{"class":1063},"{{ post.created_at|date:\"F d, Y\" }}             ",[1057,3693,3694],{"class":1216},"\u003C!-- March 15, 2024 -->\n",[1057,3696,3697,3700],{"class":1059,"line":1073},[1057,3698,3699],{"class":1063},"{{ post.created_at|time:\"H:i\" }}                ",[1057,3701,3702],{"class":1216},"\u003C!-- 14:30 -->\n",[1057,3704,3705,3708],{"class":1059,"line":1079},[1057,3706,3707],{"class":1063},"{{ post.created_at|timesince }}                 ",[1057,3709,3710],{"class":1216},"\u003C!-- 2 hours ago -->\n",[1057,3712,3713,3716],{"class":1059,"line":1273},[1057,3714,3715],{"class":1063},"{{ post.created_at|timeuntil }}                 ",[1057,3717,3718],{"class":1216},"\u003C!-- in 3 days -->\n",[1026,3720,3721],{},[1042,3722,3723],{},"Custom Date Formats:",[1047,3725,3727],{"className":1049,"code":3726,"language":1051,"meta":1052,"style":1052},"{{ post.created_at|date:\"l, F j, Y \\a\\t P\" }}  \u003C!-- Friday, March 15, 2024 at 2:30 p.m. -->\n{{ post.created_at|date:\"c\" }}                  \u003C!-- 2024-03-15T14:30:00+00:00 -->\n",[1054,3728,3729,3737],{"__ignoreMap":1052},[1057,3730,3731,3734],{"class":1059,"line":1060},[1057,3732,3733],{"class":1063},"{{ post.created_at|date:\"l, F j, Y \\a\\t P\" }}  ",[1057,3735,3736],{"class":1216},"\u003C!-- Friday, March 15, 2024 at 2:30 p.m. -->\n",[1057,3738,3739,3742],{"class":1059,"line":1067},[1057,3740,3741],{"class":1063},"{{ post.created_at|date:\"c\" }}                  ",[1057,3743,3744],{"class":1216},"\u003C!-- 2024-03-15T14:30:00+00:00 -->\n",[1035,3746,3748],{"id":3747},"list-and-dictionary-filters","List and Dictionary Filters",[1026,3750,3751],{},[1042,3752,3753],{},"List Operations:",[1047,3755,3757],{"className":1049,"code":3756,"language":1051,"meta":1052,"style":1052},"{{ posts|first }}                   \u003C!-- First item -->\n{{ posts|last }}                    \u003C!-- Last item -->\n{{ posts|length }}                  \u003C!-- Count -->\n{{ posts|slice:\":5\" }}              \u003C!-- First 5 items -->\n{{ posts|slice:\"5:\" }}              \u003C!-- Items from 5th onward -->\n{{ tags|join:\", \" }}                \u003C!-- Join with comma -->\n",[1054,3758,3759,3767,3775,3783,3791,3799],{"__ignoreMap":1052},[1057,3760,3761,3764],{"class":1059,"line":1060},[1057,3762,3763],{"class":1063},"{{ posts|first }}                   ",[1057,3765,3766],{"class":1216},"\u003C!-- First item -->\n",[1057,3768,3769,3772],{"class":1059,"line":1067},[1057,3770,3771],{"class":1063},"{{ posts|last }}                    ",[1057,3773,3774],{"class":1216},"\u003C!-- Last item -->\n",[1057,3776,3777,3780],{"class":1059,"line":1073},[1057,3778,3779],{"class":1063},"{{ posts|length }}                  ",[1057,3781,3782],{"class":1216},"\u003C!-- Count -->\n",[1057,3784,3785,3788],{"class":1059,"line":1079},[1057,3786,3787],{"class":1063},"{{ posts|slice:\":5\" }}              ",[1057,3789,3790],{"class":1216},"\u003C!-- First 5 items -->\n",[1057,3792,3793,3796],{"class":1059,"line":1273},[1057,3794,3795],{"class":1063},"{{ posts|slice:\"5:\" }}              ",[1057,3797,3798],{"class":1216},"\u003C!-- Items from 5th onward -->\n",[1057,3800,3801,3804],{"class":1059,"line":1296},[1057,3802,3803],{"class":1063},"{{ tags|join:\", \" }}                ",[1057,3805,3806],{"class":1216},"\u003C!-- Join with comma -->\n",[1026,3808,3809],{},[1042,3810,3811],{},"Dictionary Operations:",[1047,3813,3815],{"className":1049,"code":3814,"language":1051,"meta":1052,"style":1052},"{{ user_data|dictsort:\"name\" }}     \u003C!-- Sort by 'name' key -->\n{{ categories|dictsortreversed:\"count\" }}  \u003C!-- Reverse sort -->\n",[1054,3816,3817,3825],{"__ignoreMap":1052},[1057,3818,3819,3822],{"class":1059,"line":1060},[1057,3820,3821],{"class":1063},"{{ user_data|dictsort:\"name\" }}     ",[1057,3823,3824],{"class":1216},"\u003C!-- Sort by 'name' key -->\n",[1057,3826,3827,3830],{"class":1059,"line":1067},[1057,3828,3829],{"class":1063},"{{ categories|dictsortreversed:\"count\" }}  ",[1057,3831,3832],{"class":1216},"\u003C!-- Reverse sort -->\n",[1035,3834,3836],{"id":3835},"conditional-filters","Conditional Filters",[1026,3838,3839],{},[1042,3840,3841],{},"Default Values:",[1047,3843,3845],{"className":1049,"code":3844,"language":1051,"meta":1052,"style":1052},"{{ post.excerpt|default:\"No excerpt available\" }}\n{{ user.get_full_name|default:user.username }}\n{{ post.image|default_if_none:\"placeholder.jpg\" }}\n",[1054,3846,3847,3852,3857],{"__ignoreMap":1052},[1057,3848,3849],{"class":1059,"line":1060},[1057,3850,3851],{"class":1063},"{{ post.excerpt|default:\"No excerpt available\" }}\n",[1057,3853,3854],{"class":1059,"line":1067},[1057,3855,3856],{"class":1063},"{{ user.get_full_name|default:user.username }}\n",[1057,3858,3859],{"class":1059,"line":1073},[1057,3860,3861],{"class":1063},"{{ post.image|default_if_none:\"placeholder.jpg\" }}\n",[1026,3863,3864],{},[1042,3865,3866],{},"Conditional Display:",[1047,3868,3870],{"className":1049,"code":3869,"language":1051,"meta":1052,"style":1052},"{{ post.is_featured|yesno:\"Featured,Regular\" }}\n{{ post.is_published|yesno:\"Published,Draft,Unknown\" }}\n",[1054,3871,3872,3877],{"__ignoreMap":1052},[1057,3873,3874],{"class":1059,"line":1060},[1057,3875,3876],{"class":1063},"{{ post.is_featured|yesno:\"Featured,Regular\" }}\n",[1057,3878,3879],{"class":1059,"line":1067},[1057,3880,3881],{"class":1063},"{{ post.is_published|yesno:\"Published,Draft,Unknown\" }}\n",[1035,3883,3885],{"id":3884},"chaining-filters","Chaining Filters",[1047,3887,3889],{"className":1049,"code":3888,"language":1051,"meta":1052,"style":1052},"{{ post.content|striptags|truncatewords:50|title }}\n{{ post.created_at|date:\"Y-m-d\"|default:\"Unknown date\" }}\n{{ user.email|lower|default:\"No email\" }}\n",[1054,3890,3891,3896,3901],{"__ignoreMap":1052},[1057,3892,3893],{"class":1059,"line":1060},[1057,3894,3895],{"class":1063},"{{ post.content|striptags|truncatewords:50|title }}\n",[1057,3897,3898],{"class":1059,"line":1067},[1057,3899,3900],{"class":1063},"{{ post.created_at|date:\"Y-m-d\"|default:\"Unknown date\" }}\n",[1057,3902,3903],{"class":1059,"line":1073},[1057,3904,3905],{"class":1063},"{{ user.email|lower|default:\"No email\" }}\n",[1030,3907,3909],{"id":3908},"advanced-template-features","Advanced Template Features",[1035,3911,3913],{"id":3912},"custom-template-tags-and-filters","Custom Template Tags and Filters",[1026,3915,3916],{},[1042,3917,3918],{},"Creating Custom Filters:",[1047,3920,3922],{"className":1207,"code":3921,"language":1209,"meta":1052,"style":1052},"# blog/templatetags/blog_extras.py\nfrom django import template\nfrom django.utils.safestring import mark_safe\nimport markdown\n\nregister = template.Library()\n\n@register.filter\ndef markdown_to_html(text):\n    \"\"\"Convert markdown to HTML.\"\"\"\n    return mark_safe(markdown.markdown(text))\n\n@register.filter\ndef reading_time(text):\n    \"\"\"Calculate reading time in minutes.\"\"\"\n    word_count = len(text.split())\n    minutes = word_count // 200  # Average reading speed\n    return max(1, minutes)\n",[1054,3923,3924,3929,3943,3965,3972,3976,3993,3997,4010,4026,4039,4063,4067,4077,4090,4099,4118,4138],{"__ignoreMap":1052},[1057,3925,3926],{"class":1059,"line":1060},[1057,3927,3928],{"class":1216},"# blog/templatetags/blog_extras.py\n",[1057,3930,3931,3934,3937,3940],{"class":1059,"line":1067},[1057,3932,3933],{"class":1542},"from",[1057,3935,3936],{"class":1063}," django ",[1057,3938,3939],{"class":1542},"import",[1057,3941,3942],{"class":1063}," template\n",[1057,3944,3945,3947,3950,3952,3955,3957,3960,3962],{"class":1059,"line":1073},[1057,3946,3933],{"class":1542},[1057,3948,3949],{"class":1063}," django",[1057,3951,1251],{"class":1225},[1057,3953,3954],{"class":1063},"utils",[1057,3956,1251],{"class":1225},[1057,3958,3959],{"class":1063},"safestring ",[1057,3961,3939],{"class":1542},[1057,3963,3964],{"class":1063}," mark_safe\n",[1057,3966,3967,3969],{"class":1059,"line":1079},[1057,3968,3939],{"class":1542},[1057,3970,3971],{"class":1063}," markdown\n",[1057,3973,3974],{"class":1059,"line":1273},[1057,3975,1583],{"emptyLinePlaceholder":1582},[1057,3977,3978,3981,3983,3986,3988,3991],{"class":1059,"line":1296},[1057,3979,3980],{"class":1063},"register ",[1057,3982,1226],{"class":1225},[1057,3984,3985],{"class":1063}," template",[1057,3987,1251],{"class":1225},[1057,3989,3990],{"class":1483},"Library",[1057,3992,1515],{"class":1225},[1057,3994,3995],{"class":1059,"line":1330},[1057,3996,1583],{"emptyLinePlaceholder":1582},[1057,3998,3999,4002,4005,4007],{"class":1059,"line":1336},[1057,4000,4001],{"class":1225},"@",[1057,4003,4004],{"class":1528},"register",[1057,4006,1251],{"class":1225},[1057,4008,4009],{"class":1528},"filter\n",[1057,4011,4012,4015,4018,4020,4024],{"class":1059,"line":1376},[1057,4013,4014],{"class":1448},"def",[1057,4016,4017],{"class":1528}," markdown_to_html",[1057,4019,1456],{"class":1225},[1057,4021,4023],{"class":4022},"sCyAa","text",[1057,4025,1468],{"class":1225},[1057,4027,4028,4032,4036],{"class":1059,"line":1603},[1057,4029,4031],{"class":4030},"sm7ve","    \"\"\"",[1057,4033,4035],{"class":4034},"sVyVU","Convert markdown to HTML.",[1057,4037,4038],{"class":4030},"\"\"\"\n",[1057,4040,4041,4044,4047,4049,4052,4054,4056,4058,4060],{"class":1059,"line":1628},[1057,4042,4043],{"class":1542},"    return",[1057,4045,4046],{"class":1483}," mark_safe",[1057,4048,1456],{"class":1225},[1057,4050,4051],{"class":1483},"markdown",[1057,4053,1251],{"class":1225},[1057,4055,4051],{"class":1483},[1057,4057,1456],{"class":1225},[1057,4059,4023],{"class":1483},[1057,4061,4062],{"class":1225},"))\n",[1057,4064,4065],{"class":1059,"line":1678},[1057,4066,1583],{"emptyLinePlaceholder":1582},[1057,4068,4069,4071,4073,4075],{"class":1059,"line":1704},[1057,4070,4001],{"class":1225},[1057,4072,4004],{"class":1528},[1057,4074,1251],{"class":1225},[1057,4076,4009],{"class":1528},[1057,4078,4079,4081,4084,4086,4088],{"class":1059,"line":1709},[1057,4080,4014],{"class":1448},[1057,4082,4083],{"class":1528}," reading_time",[1057,4085,1456],{"class":1225},[1057,4087,4023],{"class":4022},[1057,4089,1468],{"class":1225},[1057,4091,4092,4094,4097],{"class":1059,"line":1719},[1057,4093,4031],{"class":4030},[1057,4095,4096],{"class":4034},"Calculate reading time in minutes.",[1057,4098,4038],{"class":4030},[1057,4100,4101,4104,4106,4108,4110,4112,4114,4116],{"class":1059,"line":1733},[1057,4102,4103],{"class":1063},"    word_count ",[1057,4105,1226],{"class":1225},[1057,4107,1739],{"class":1738},[1057,4109,1456],{"class":1225},[1057,4111,4023],{"class":1483},[1057,4113,1251],{"class":1225},[1057,4115,1753],{"class":1483},[1057,4117,1756],{"class":1225},[1057,4119,4120,4123,4125,4128,4132,4135],{"class":1059,"line":1759},[1057,4121,4122],{"class":1063},"    minutes ",[1057,4124,1226],{"class":1225},[1057,4126,4127],{"class":1063}," word_count ",[1057,4129,4131],{"class":4130},"sVsLi","//",[1057,4133,4134],{"class":1350}," 200",[1057,4136,4137],{"class":1216},"  # Average reading speed\n",[1057,4139,4140,4142,4145,4147,4149,4151,4154],{"class":1059,"line":1764},[1057,4141,4043],{"class":1542},[1057,4143,4144],{"class":1738}," max",[1057,4146,1456],{"class":1225},[1057,4148,1351],{"class":1350},[1057,4150,1318],{"class":1225},[1057,4152,4153],{"class":1483}," minutes",[1057,4155,1498],{"class":1225},[1026,4157,4158],{},[1042,4159,4160],{},"Using Custom Filters:",[1047,4162,4164],{"className":1049,"code":4163,"language":1051,"meta":1052,"style":1052},"{% load blog_extras %}\n\n\u003Cdiv class=\"content\">\n    {{ post.content|markdown_to_html }}\n\u003C/div>\n\u003Cp class=\"meta\">Reading time: {{ post.content|reading_time }} minutes\u003C/p>\n",[1054,4165,4166,4171,4175,4194,4199,4207],{"__ignoreMap":1052},[1057,4167,4168],{"class":1059,"line":1060},[1057,4169,4170],{"class":1063},"{% load blog_extras %}\n",[1057,4172,4173],{"class":1059,"line":1067},[1057,4174,1583],{"emptyLinePlaceholder":1582},[1057,4176,4177,4179,4182,4184,4186,4188,4190,4192],{"class":1059,"line":1073},[1057,4178,1818],{"class":1225},[1057,4180,4181],{"class":1821},"div",[1057,4183,1911],{"class":1910},[1057,4185,1226],{"class":1225},[1057,4187,1916],{"class":1234},[1057,4189,1748],{"class":1238},[1057,4191,1916],{"class":1234},[1057,4193,1835],{"class":1225},[1057,4195,4196],{"class":1059,"line":1079},[1057,4197,4198],{"class":1063},"    {{ post.content|markdown_to_html }}\n",[1057,4200,4201,4203,4205],{"class":1059,"line":1273},[1057,4202,1830],{"class":1225},[1057,4204,4181],{"class":1821},[1057,4206,1835],{"class":1225},[1057,4208,4209,4211,4213,4215,4217,4219,4221,4223,4225,4228,4230,4232],{"class":1059,"line":1296},[1057,4210,1818],{"class":1225},[1057,4212,1026],{"class":1821},[1057,4214,1911],{"class":1910},[1057,4216,1226],{"class":1225},[1057,4218,1916],{"class":1234},[1057,4220,3025],{"class":1238},[1057,4222,1916],{"class":1234},[1057,4224,1824],{"class":1225},[1057,4226,4227],{"class":1063},"Reading time: {{ post.content|reading_time }} minutes",[1057,4229,1830],{"class":1225},[1057,4231,1026],{"class":1821},[1057,4233,1835],{"class":1225},[1026,4235,4236],{},[1042,4237,4238],{},"Creating Custom Tags:",[1047,4240,4242],{"className":1207,"code":4241,"language":1209,"meta":1052,"style":1052},"# blog/templatetags/blog_extras.py\n@register.simple_tag\ndef get_recent_posts(count=5):\n    \"\"\"Get recent published posts.\"\"\"\n    return Post.objects.filter(published=True)[:count]\n\n@register.inclusion_tag('blog/includes/recent_posts.html')\ndef show_recent_posts(count=5):\n    \"\"\"Render recent posts widget.\"\"\"\n    posts = Post.objects.filter(published=True)[:count]\n    return {'posts': posts}\n\n@register.simple_tag(takes_context=True)\ndef current_url_with_params(context, **kwargs):\n    \"\"\"Get current URL with additional parameters.\"\"\"\n    request = context['request']\n    params = request.GET.copy()\n    for key, value in kwargs.items():\n        params[key] = value\n    return f\"{request.path}?{params.urlencode()}\"\n",[1054,4243,4244,4248,4259,4277,4286,4315,4319,4341,4358,4367,4398,4418,4422,4444,4466,4475,4497,4518,4545,4563],{"__ignoreMap":1052},[1057,4245,4246],{"class":1059,"line":1060},[1057,4247,3928],{"class":1216},[1057,4249,4250,4252,4254,4256],{"class":1059,"line":1067},[1057,4251,4001],{"class":1225},[1057,4253,4004],{"class":1528},[1057,4255,1251],{"class":1225},[1057,4257,4258],{"class":1528},"simple_tag\n",[1057,4260,4261,4263,4266,4268,4271,4273,4275],{"class":1059,"line":1073},[1057,4262,4014],{"class":1448},[1057,4264,4265],{"class":1528}," get_recent_posts",[1057,4267,1456],{"class":1225},[1057,4269,4270],{"class":4022},"count",[1057,4272,1226],{"class":4130},[1057,4274,1574],{"class":1350},[1057,4276,1468],{"class":1225},[1057,4278,4279,4281,4284],{"class":1059,"line":1079},[1057,4280,4031],{"class":4030},[1057,4282,4283],{"class":4034},"Get recent published posts.",[1057,4285,4038],{"class":4030},[1057,4287,4288,4290,4292,4294,4297,4299,4301,4303,4305,4307,4309,4311,4313],{"class":1059,"line":1273},[1057,4289,4043],{"class":1542},[1057,4291,1590],{"class":1063},[1057,4293,1251],{"class":1225},[1057,4295,4296],{"class":1254},"objects",[1057,4298,1251],{"class":1225},[1057,4300,1557],{"class":1483},[1057,4302,1456],{"class":1225},[1057,4304,1562],{"class":1489},[1057,4306,1226],{"class":1225},[1057,4308,1568],{"class":1567},[1057,4310,1571],{"class":1225},[1057,4312,4270],{"class":1063},[1057,4314,1577],{"class":1225},[1057,4316,4317],{"class":1059,"line":1296},[1057,4318,1583],{"emptyLinePlaceholder":1582},[1057,4320,4321,4323,4325,4327,4330,4332,4334,4337,4339],{"class":1059,"line":1330},[1057,4322,4001],{"class":1225},[1057,4324,4004],{"class":1528},[1057,4326,1251],{"class":1225},[1057,4328,4329],{"class":1528},"inclusion_tag",[1057,4331,1456],{"class":1225},[1057,4333,1242],{"class":1234},[1057,4335,4336],{"class":1238},"blog/includes/recent_posts.html",[1057,4338,1242],{"class":1234},[1057,4340,1498],{"class":1225},[1057,4342,4343,4345,4348,4350,4352,4354,4356],{"class":1059,"line":1336},[1057,4344,4014],{"class":1448},[1057,4346,4347],{"class":1528}," show_recent_posts",[1057,4349,1456],{"class":1225},[1057,4351,4270],{"class":4022},[1057,4353,1226],{"class":4130},[1057,4355,1574],{"class":1350},[1057,4357,1468],{"class":1225},[1057,4359,4360,4362,4365],{"class":1059,"line":1376},[1057,4361,4031],{"class":4030},[1057,4363,4364],{"class":4034},"Render recent posts widget.",[1057,4366,4038],{"class":4030},[1057,4368,4369,4372,4374,4376,4378,4380,4382,4384,4386,4388,4390,4392,4394,4396],{"class":1059,"line":1603},[1057,4370,4371],{"class":1063},"    posts ",[1057,4373,1226],{"class":1225},[1057,4375,1590],{"class":1063},[1057,4377,1251],{"class":1225},[1057,4379,4296],{"class":1254},[1057,4381,1251],{"class":1225},[1057,4383,1557],{"class":1483},[1057,4385,1456],{"class":1225},[1057,4387,1562],{"class":1489},[1057,4389,1226],{"class":1225},[1057,4391,1568],{"class":1567},[1057,4393,1571],{"class":1225},[1057,4395,4270],{"class":1063},[1057,4397,1577],{"class":1225},[1057,4399,4400,4402,4405,4407,4409,4411,4413,4416],{"class":1059,"line":1628},[1057,4401,4043],{"class":1542},[1057,4403,4404],{"class":1225}," {",[1057,4406,1242],{"class":1234},[1057,4408,1552],{"class":1238},[1057,4410,1242],{"class":1234},[1057,4412,1245],{"class":1225},[1057,4414,4415],{"class":1063}," posts",[1057,4417,1379],{"class":1225},[1057,4419,4420],{"class":1059,"line":1678},[1057,4421,1583],{"emptyLinePlaceholder":1582},[1057,4423,4424,4426,4428,4430,4433,4435,4438,4440,4442],{"class":1059,"line":1704},[1057,4425,4001],{"class":1225},[1057,4427,4004],{"class":1528},[1057,4429,1251],{"class":1225},[1057,4431,4432],{"class":1528},"simple_tag",[1057,4434,1456],{"class":1225},[1057,4436,4437],{"class":1489},"takes_context",[1057,4439,1226],{"class":1225},[1057,4441,1568],{"class":1567},[1057,4443,1498],{"class":1225},[1057,4445,4446,4448,4451,4453,4456,4458,4461,4464],{"class":1059,"line":1709},[1057,4447,4014],{"class":1448},[1057,4449,4450],{"class":1528}," current_url_with_params",[1057,4452,1456],{"class":1225},[1057,4454,4455],{"class":4022},"context",[1057,4457,1318],{"class":1225},[1057,4459,4460],{"class":4130}," **",[1057,4462,4463],{"class":4022},"kwargs",[1057,4465,1468],{"class":1225},[1057,4467,4468,4470,4473],{"class":1059,"line":1719},[1057,4469,4031],{"class":4030},[1057,4471,4472],{"class":4034},"Get current URL with additional parameters.",[1057,4474,4038],{"class":4030},[1057,4476,4477,4480,4482,4485,4488,4490,4493,4495],{"class":1059,"line":1733},[1057,4478,4479],{"class":1063},"    request ",[1057,4481,1226],{"class":1225},[1057,4483,4484],{"class":1063}," context",[1057,4486,4487],{"class":1225},"[",[1057,4489,1242],{"class":1234},[1057,4491,4492],{"class":1238},"request",[1057,4494,1242],{"class":1234},[1057,4496,1577],{"class":1225},[1057,4498,4499,4502,4504,4506,4508,4511,4513,4516],{"class":1059,"line":1759},[1057,4500,4501],{"class":1063},"    params ",[1057,4503,1226],{"class":1225},[1057,4505,1248],{"class":1063},[1057,4507,1251],{"class":1225},[1057,4509,4510],{"class":1659},"GET",[1057,4512,1251],{"class":1225},[1057,4514,4515],{"class":1483},"copy",[1057,4517,1515],{"class":1225},[1057,4519,4520,4523,4526,4528,4531,4534,4537,4539,4542],{"class":1059,"line":1764},[1057,4521,4522],{"class":1542},"    for",[1057,4524,4525],{"class":1063}," key",[1057,4527,1318],{"class":1225},[1057,4529,4530],{"class":1063}," value ",[1057,4532,4533],{"class":1542},"in",[1057,4535,4536],{"class":1063}," kwargs",[1057,4538,1251],{"class":1225},[1057,4540,4541],{"class":1483},"items",[1057,4543,4544],{"class":1225},"():\n",[1057,4546,4547,4550,4552,4555,4558,4560],{"class":1059,"line":1782},[1057,4548,4549],{"class":1063},"        params",[1057,4551,4487],{"class":1225},[1057,4553,4554],{"class":1063},"key",[1057,4556,4557],{"class":1225},"]",[1057,4559,3460],{"class":1225},[1057,4561,4562],{"class":1063}," value\n",[1057,4564,4566,4568,4571,4573,4577,4579,4581,4584,4587,4590,4592,4595,4597,4600,4603,4605],{"class":1059,"line":4565},20,[1057,4567,4043],{"class":1542},[1057,4569,4570],{"class":1448}," f",[1057,4572,1916],{"class":1238},[1057,4574,4576],{"class":4575},"s3h35","{",[1057,4578,4492],{"class":1063},[1057,4580,1251],{"class":1225},[1057,4582,4583],{"class":1254},"path",[1057,4585,4586],{"class":4575},"}",[1057,4588,4589],{"class":1238},"?",[1057,4591,4576],{"class":4575},[1057,4593,4594],{"class":1063},"params",[1057,4596,1251],{"class":1225},[1057,4598,4599],{"class":1483},"urlencode",[1057,4601,4602],{"class":1225},"()",[1057,4604,4586],{"class":4575},[1057,4606,4607],{"class":1238},"\"\n",[1026,4609,4610],{},[1042,4611,4612],{},"Using Custom Tags:",[1047,4614,4616],{"className":1049,"code":4615,"language":1051,"meta":1052,"style":1052},"{% load blog_extras %}\n\n\u003C!-- Simple tag -->\n{% get_recent_posts 3 as recent %}\n{% for post in recent %}\n    \u003Ca href=\"{{ post.get_absolute_url }}\">{{ post.title }}\u003C/a>\n{% endfor %}\n\n\u003C!-- Inclusion tag -->\n{% show_recent_posts 5 %}\n\n\u003C!-- Context-aware tag -->\n\u003Ca href=\"{% current_url_with_params page=2 %}\">Next Page\u003C/a>\n",[1054,4617,4618,4622,4626,4631,4636,4641,4668,4672,4676,4681,4686,4690,4695],{"__ignoreMap":1052},[1057,4619,4620],{"class":1059,"line":1060},[1057,4621,4170],{"class":1063},[1057,4623,4624],{"class":1059,"line":1067},[1057,4625,1583],{"emptyLinePlaceholder":1582},[1057,4627,4628],{"class":1059,"line":1073},[1057,4629,4630],{"class":1216},"\u003C!-- Simple tag -->\n",[1057,4632,4633],{"class":1059,"line":1079},[1057,4634,4635],{"class":1063},"{% get_recent_posts 3 as recent %}\n",[1057,4637,4638],{"class":1059,"line":1273},[1057,4639,4640],{"class":1063},"{% for post in recent %}\n",[1057,4642,4643,4645,4647,4649,4651,4653,4656,4658,4660,4662,4664,4666],{"class":1059,"line":1296},[1057,4644,1905],{"class":1225},[1057,4646,1975],{"class":1821},[1057,4648,1978],{"class":1910},[1057,4650,1226],{"class":1225},[1057,4652,1916],{"class":1234},[1057,4654,4655],{"class":1238},"{{ post.get_absolute_url }}",[1057,4657,1916],{"class":1234},[1057,4659,1824],{"class":1225},[1057,4661,1827],{"class":1063},[1057,4663,1830],{"class":1225},[1057,4665,1975],{"class":1821},[1057,4667,1835],{"class":1225},[1057,4669,4670],{"class":1059,"line":1330},[1057,4671,1937],{"class":1063},[1057,4673,4674],{"class":1059,"line":1336},[1057,4675,1583],{"emptyLinePlaceholder":1582},[1057,4677,4678],{"class":1059,"line":1376},[1057,4679,4680],{"class":1216},"\u003C!-- Inclusion tag -->\n",[1057,4682,4683],{"class":1059,"line":1603},[1057,4684,4685],{"class":1063},"{% show_recent_posts 5 %}\n",[1057,4687,4688],{"class":1059,"line":1628},[1057,4689,1583],{"emptyLinePlaceholder":1582},[1057,4691,4692],{"class":1059,"line":1678},[1057,4693,4694],{"class":1216},"\u003C!-- Context-aware tag -->\n",[1057,4696,4697,4699,4701,4703,4705,4707,4710,4712,4714,4716,4718,4720],{"class":1059,"line":1704},[1057,4698,1818],{"class":1225},[1057,4700,1975],{"class":1821},[1057,4702,1978],{"class":1910},[1057,4704,1226],{"class":1225},[1057,4706,1916],{"class":1234},[1057,4708,4709],{"class":1238},"{% current_url_with_params page=2 %}",[1057,4711,1916],{"class":1234},[1057,4713,1824],{"class":1225},[1057,4715,2970],{"class":1063},[1057,4717,1830],{"class":1225},[1057,4719,1975],{"class":1821},[1057,4721,1835],{"class":1225},[1035,4723,4725],{"id":4724},"template-inheritance-patterns","Template Inheritance Patterns",[1026,4727,4728],{},[1042,4729,4730],{},"Multi-level Inheritance:",[1047,4732,4734],{"className":1049,"code":4733,"language":1051,"meta":1052,"style":1052},"\u003C!-- base.html -->\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003Ctitle>{% block title %}My Site{% endblock %}\u003C/title>\n    {% block extra_css %}{% endblock %}\n\u003C/head>\n\u003Cbody>\n    {% block content %}{% endblock %}\n    {% block extra_js %}{% endblock %}\n\u003C/body>\n\u003C/html>\n\n\u003C!-- blog_base.html -->\n{% extends 'base.html' %}\n\n{% block title %}Blog - {{ block.super }}{% endblock %}\n\n{% block extra_css %}\n    \u003Clink rel=\"stylesheet\" href=\"{% static 'blog/css/blog.css' %}\">\n{% endblock %}\n\n{% block content %}\n    \u003Cdiv class=\"blog-container\">\n        {% block blog_content %}{% endblock %}\n    \u003C/div>\n{% endblock %}\n\n\u003C!-- post_detail.html -->\n{% extends 'blog/blog_base.html' %}\n\n{% block title %}{{ post.title }} - {{ block.super }}{% endblock %}\n\n{% block blog_content %}\n    \u003Carticle>\n        \u003Ch1>{{ post.title }}\u003C/h1>\n        \u003Cp>{{ post.content }}\u003C/p>\n    \u003C/article>\n{% endblock %}\n",[1054,4735,4736,4741,4754,4762,4771,4788,4793,4801,4810,4815,4820,4828,4836,4840,4845,4849,4853,4858,4862,4866,4895,4900,4905,4910,4930,4936,4945,4950,4955,4961,4967,4972,4977,4982,4988,4998,5015,5032,5041],{"__ignoreMap":1052},[1057,4737,4738],{"class":1059,"line":1060},[1057,4739,4740],{"class":1216},"\u003C!-- base.html -->\n",[1057,4742,4743,4746,4749,4752],{"class":1059,"line":1067},[1057,4744,4745],{"class":1225},"\u003C!",[1057,4747,4748],{"class":1821},"DOCTYPE",[1057,4750,4751],{"class":1910}," html",[1057,4753,1835],{"class":1225},[1057,4755,4756,4758,4760],{"class":1059,"line":1073},[1057,4757,1818],{"class":1225},[1057,4759,1051],{"class":1821},[1057,4761,1835],{"class":1225},[1057,4763,4764,4766,4769],{"class":1059,"line":1079},[1057,4765,1818],{"class":1225},[1057,4767,4768],{"class":1821},"head",[1057,4770,1835],{"class":1225},[1057,4772,4773,4775,4777,4779,4782,4784,4786],{"class":1059,"line":1273},[1057,4774,1905],{"class":1225},[1057,4776,1279],{"class":1821},[1057,4778,1824],{"class":1225},[1057,4780,4781],{"class":1063},"{% block title %}My Site{% endblock %}",[1057,4783,1830],{"class":1225},[1057,4785,1279],{"class":1821},[1057,4787,1835],{"class":1225},[1057,4789,4790],{"class":1059,"line":1296},[1057,4791,4792],{"class":1063},"    {% block extra_css %}{% endblock %}\n",[1057,4794,4795,4797,4799],{"class":1059,"line":1330},[1057,4796,1830],{"class":1225},[1057,4798,4768],{"class":1821},[1057,4800,1835],{"class":1225},[1057,4802,4803,4805,4808],{"class":1059,"line":1336},[1057,4804,1818],{"class":1225},[1057,4806,4807],{"class":1821},"body",[1057,4809,1835],{"class":1225},[1057,4811,4812],{"class":1059,"line":1376},[1057,4813,4814],{"class":1063},"    {% block content %}{% endblock %}\n",[1057,4816,4817],{"class":1059,"line":1603},[1057,4818,4819],{"class":1063},"    {% block extra_js %}{% endblock %}\n",[1057,4821,4822,4824,4826],{"class":1059,"line":1628},[1057,4823,1830],{"class":1225},[1057,4825,4807],{"class":1821},[1057,4827,1835],{"class":1225},[1057,4829,4830,4832,4834],{"class":1059,"line":1678},[1057,4831,1830],{"class":1225},[1057,4833,1051],{"class":1821},[1057,4835,1835],{"class":1225},[1057,4837,4838],{"class":1059,"line":1704},[1057,4839,1583],{"emptyLinePlaceholder":1582},[1057,4841,4842],{"class":1059,"line":1709},[1057,4843,4844],{"class":1216},"\u003C!-- blog_base.html -->\n",[1057,4846,4847],{"class":1059,"line":1719},[1057,4848,3123],{"class":1063},[1057,4850,4851],{"class":1059,"line":1733},[1057,4852,1583],{"emptyLinePlaceholder":1582},[1057,4854,4855],{"class":1059,"line":1759},[1057,4856,4857],{"class":1063},"{% block title %}Blog - {{ block.super }}{% endblock %}\n",[1057,4859,4860],{"class":1059,"line":1764},[1057,4861,1583],{"emptyLinePlaceholder":1582},[1057,4863,4864],{"class":1059,"line":1782},[1057,4865,3188],{"class":1063},[1057,4867,4868,4870,4872,4874,4876,4878,4880,4882,4884,4886,4888,4891,4893],{"class":1059,"line":4565},[1057,4869,1905],{"class":1225},[1057,4871,3195],{"class":1821},[1057,4873,3198],{"class":1910},[1057,4875,1226],{"class":1225},[1057,4877,1916],{"class":1234},[1057,4879,3205],{"class":1238},[1057,4881,1916],{"class":1234},[1057,4883,1978],{"class":1910},[1057,4885,1226],{"class":1225},[1057,4887,1916],{"class":1234},[1057,4889,4890],{"class":1238},"{% static 'blog/css/blog.css' %}",[1057,4892,1916],{"class":1234},[1057,4894,1835],{"class":1225},[1057,4896,4898],{"class":1059,"line":4897},21,[1057,4899,3179],{"class":1063},[1057,4901,4903],{"class":1059,"line":4902},22,[1057,4904,1583],{"emptyLinePlaceholder":1582},[1057,4906,4908],{"class":1059,"line":4907},23,[1057,4909,3141],{"class":1063},[1057,4911,4913,4915,4917,4919,4921,4923,4926,4928],{"class":1059,"line":4912},24,[1057,4914,1905],{"class":1225},[1057,4916,4181],{"class":1821},[1057,4918,1911],{"class":1910},[1057,4920,1226],{"class":1225},[1057,4922,1916],{"class":1234},[1057,4924,4925],{"class":1238},"blog-container",[1057,4927,1916],{"class":1234},[1057,4929,1835],{"class":1225},[1057,4931,4933],{"class":1059,"line":4932},25,[1057,4934,4935],{"class":1063},"        {% block blog_content %}{% endblock %}\n",[1057,4937,4939,4941,4943],{"class":1059,"line":4938},26,[1057,4940,2675],{"class":1225},[1057,4942,4181],{"class":1821},[1057,4944,1835],{"class":1225},[1057,4946,4948],{"class":1059,"line":4947},27,[1057,4949,3179],{"class":1063},[1057,4951,4953],{"class":1059,"line":4952},28,[1057,4954,1583],{"emptyLinePlaceholder":1582},[1057,4956,4958],{"class":1059,"line":4957},29,[1057,4959,4960],{"class":1216},"\u003C!-- post_detail.html -->\n",[1057,4962,4964],{"class":1059,"line":4963},30,[1057,4965,4966],{"class":1063},"{% extends 'blog/blog_base.html' %}\n",[1057,4968,4970],{"class":1059,"line":4969},31,[1057,4971,1583],{"emptyLinePlaceholder":1582},[1057,4973,4975],{"class":1059,"line":4974},32,[1057,4976,3132],{"class":1063},[1057,4978,4980],{"class":1059,"line":4979},33,[1057,4981,1583],{"emptyLinePlaceholder":1582},[1057,4983,4985],{"class":1059,"line":4984},34,[1057,4986,4987],{"class":1063},"{% block blog_content %}\n",[1057,4989,4991,4993,4996],{"class":1059,"line":4990},35,[1057,4992,1905],{"class":1225},[1057,4994,4995],{"class":1821},"article",[1057,4997,1835],{"class":1225},[1057,4999,5001,5003,5005,5007,5009,5011,5013],{"class":1059,"line":5000},36,[1057,5002,2052],{"class":1225},[1057,5004,1022],{"class":1821},[1057,5006,1824],{"class":1225},[1057,5008,1827],{"class":1063},[1057,5010,1830],{"class":1225},[1057,5012,1022],{"class":1821},[1057,5014,1835],{"class":1225},[1057,5016,5018,5020,5022,5024,5026,5028,5030],{"class":1059,"line":5017},37,[1057,5019,2052],{"class":1225},[1057,5021,1026],{"class":1821},[1057,5023,1824],{"class":1225},[1057,5025,3168],{"class":1063},[1057,5027,1830],{"class":1225},[1057,5029,1026],{"class":1821},[1057,5031,1835],{"class":1225},[1057,5033,5035,5037,5039],{"class":1059,"line":5034},38,[1057,5036,2675],{"class":1225},[1057,5038,4995],{"class":1821},[1057,5040,1835],{"class":1225},[1057,5042,5044],{"class":1059,"line":5043},39,[1057,5045,3179],{"class":1063},[1035,5047,5049],{"id":5048},"template-context-manipulation","Template Context Manipulation",[1026,5051,5052],{},[1042,5053,5054],{},"Modifying Context in Templates:",[1047,5056,5058],{"className":1049,"code":5057,"language":1051,"meta":1052,"style":1052},"{% with posts.count as total_posts %}\n    {% if total_posts > 10 %}\n        \u003Cp>Showing first 10 of {{ total_posts }} posts\u003C/p>\n        {% for post in posts|slice:\":10\" %}\n            \u003C!-- Display post -->\n        {% endfor %}\n    {% else %}\n        {% for post in posts %}\n            \u003C!-- Display all posts -->\n        {% endfor %}\n    {% endif %}\n{% endwith %}\n",[1054,5059,5060,5065,5070,5087,5092,5097,5102,5107,5112,5117,5121,5125],{"__ignoreMap":1052},[1057,5061,5062],{"class":1059,"line":1060},[1057,5063,5064],{"class":1063},"{% with posts.count as total_posts %}\n",[1057,5066,5067],{"class":1059,"line":1067},[1057,5068,5069],{"class":1063},"    {% if total_posts > 10 %}\n",[1057,5071,5072,5074,5076,5078,5081,5083,5085],{"class":1059,"line":1073},[1057,5073,2052],{"class":1225},[1057,5075,1026],{"class":1821},[1057,5077,1824],{"class":1225},[1057,5079,5080],{"class":1063},"Showing first 10 of {{ total_posts }} posts",[1057,5082,1830],{"class":1225},[1057,5084,1026],{"class":1821},[1057,5086,1835],{"class":1225},[1057,5088,5089],{"class":1059,"line":1079},[1057,5090,5091],{"class":1063},"        {% for post in posts|slice:\":10\" %}\n",[1057,5093,5094],{"class":1059,"line":1273},[1057,5095,5096],{"class":1216},"            \u003C!-- Display post -->\n",[1057,5098,5099],{"class":1059,"line":1296},[1057,5100,5101],{"class":1063},"        {% endfor %}\n",[1057,5103,5104],{"class":1059,"line":1330},[1057,5105,5106],{"class":1063},"    {% else %}\n",[1057,5108,5109],{"class":1059,"line":1336},[1057,5110,5111],{"class":1063},"        {% for post in posts %}\n",[1057,5113,5114],{"class":1059,"line":1376},[1057,5115,5116],{"class":1216},"            \u003C!-- Display all posts -->\n",[1057,5118,5119],{"class":1059,"line":1603},[1057,5120,5101],{"class":1063},[1057,5122,5123],{"class":1059,"line":1628},[1057,5124,2113],{"class":1063},[1057,5126,5127],{"class":1059,"line":1678},[1057,5128,3287],{"class":1063},[1026,5130,5131],{},[1042,5132,5133],{},"Complex Context Processing:",[1047,5135,5137],{"className":1049,"code":5136,"language":1051,"meta":1052,"style":1052},"{% for category in categories %}\n    {% with category.posts.published as published_posts %}\n        {% if published_posts %}\n            \u003Ch2>{{ category.name }} ({{ published_posts.count }})\u003C/h2>\n            {% for post in published_posts|slice:\":5\" %}\n                \u003Ca href=\"{{ post.get_absolute_url }}\">{{ post.title }}\u003C/a>\n            {% endfor %}\n        {% endif %}\n    {% endwith %}\n{% endfor %}\n",[1054,5138,5139,5143,5148,5153,5171,5176,5203,5208,5213,5218],{"__ignoreMap":1052},[1057,5140,5141],{"class":1059,"line":1060},[1057,5142,2755],{"class":1063},[1057,5144,5145],{"class":1059,"line":1067},[1057,5146,5147],{"class":1063},"    {% with category.posts.published as published_posts %}\n",[1057,5149,5150],{"class":1059,"line":1073},[1057,5151,5152],{"class":1063},"        {% if published_posts %}\n",[1057,5154,5155,5158,5160,5162,5165,5167,5169],{"class":1059,"line":1079},[1057,5156,5157],{"class":1225},"            \u003C",[1057,5159,1030],{"class":1821},[1057,5161,1824],{"class":1225},[1057,5163,5164],{"class":1063},"{{ category.name }} ({{ published_posts.count }})",[1057,5166,1830],{"class":1225},[1057,5168,1030],{"class":1821},[1057,5170,1835],{"class":1225},[1057,5172,5173],{"class":1059,"line":1273},[1057,5174,5175],{"class":1063},"            {% for post in published_posts|slice:\":5\" %}\n",[1057,5177,5178,5181,5183,5185,5187,5189,5191,5193,5195,5197,5199,5201],{"class":1059,"line":1296},[1057,5179,5180],{"class":1225},"                \u003C",[1057,5182,1975],{"class":1821},[1057,5184,1978],{"class":1910},[1057,5186,1226],{"class":1225},[1057,5188,1916],{"class":1234},[1057,5190,4655],{"class":1238},[1057,5192,1916],{"class":1234},[1057,5194,1824],{"class":1225},[1057,5196,1827],{"class":1063},[1057,5198,1830],{"class":1225},[1057,5200,1975],{"class":1821},[1057,5202,1835],{"class":1225},[1057,5204,5205],{"class":1059,"line":1330},[1057,5206,5207],{"class":1063},"            {% endfor %}\n",[1057,5209,5210],{"class":1059,"line":1336},[1057,5211,5212],{"class":1063},"        {% endif %}\n",[1057,5214,5215],{"class":1059,"line":1376},[1057,5216,5217],{"class":1063},"    {% endwith %}\n",[1057,5219,5220],{"class":1059,"line":1603},[1057,5221,1937],{"class":1063},[1030,5223,5225],{"id":5224},"performance-optimization","Performance Optimization",[1035,5227,5229],{"id":5228},"template-caching","Template Caching",[1026,5231,5232],{},[1042,5233,5234],{},"Fragment Caching:",[1047,5236,5238],{"className":1049,"code":5237,"language":1051,"meta":1052,"style":1052},"{% load cache %}\n\n{% cache 300 post_sidebar post.pk %}\n    \u003Cdiv class=\"sidebar\">\n        \u003Ch3>Related Posts\u003C/h3>\n        {% for related in post.get_related_posts %}\n            \u003Ca href=\"{{ related.get_absolute_url }}\">{{ related.title }}\u003C/a>\n        {% endfor %}\n    \u003C/div>\n{% endcache %}\n",[1054,5239,5240,5245,5249,5254,5273,5290,5295,5323,5327,5335],{"__ignoreMap":1052},[1057,5241,5242],{"class":1059,"line":1060},[1057,5243,5244],{"class":1063},"{% load cache %}\n",[1057,5246,5247],{"class":1059,"line":1067},[1057,5248,1583],{"emptyLinePlaceholder":1582},[1057,5250,5251],{"class":1059,"line":1073},[1057,5252,5253],{"class":1063},"{% cache 300 post_sidebar post.pk %}\n",[1057,5255,5256,5258,5260,5262,5264,5266,5269,5271],{"class":1059,"line":1079},[1057,5257,1905],{"class":1225},[1057,5259,4181],{"class":1821},[1057,5261,1911],{"class":1910},[1057,5263,1226],{"class":1225},[1057,5265,1916],{"class":1234},[1057,5267,5268],{"class":1238},"sidebar",[1057,5270,1916],{"class":1234},[1057,5272,1835],{"class":1225},[1057,5274,5275,5277,5279,5281,5284,5286,5288],{"class":1059,"line":1273},[1057,5276,2052],{"class":1225},[1057,5278,1035],{"class":1821},[1057,5280,1824],{"class":1225},[1057,5282,5283],{"class":1063},"Related Posts",[1057,5285,1830],{"class":1225},[1057,5287,1035],{"class":1821},[1057,5289,1835],{"class":1225},[1057,5291,5292],{"class":1059,"line":1296},[1057,5293,5294],{"class":1063},"        {% for related in post.get_related_posts %}\n",[1057,5296,5297,5299,5301,5303,5305,5307,5310,5312,5314,5317,5319,5321],{"class":1059,"line":1330},[1057,5298,5157],{"class":1225},[1057,5300,1975],{"class":1821},[1057,5302,1978],{"class":1910},[1057,5304,1226],{"class":1225},[1057,5306,1916],{"class":1234},[1057,5308,5309],{"class":1238},"{{ related.get_absolute_url }}",[1057,5311,1916],{"class":1234},[1057,5313,1824],{"class":1225},[1057,5315,5316],{"class":1063},"{{ related.title }}",[1057,5318,1830],{"class":1225},[1057,5320,1975],{"class":1821},[1057,5322,1835],{"class":1225},[1057,5324,5325],{"class":1059,"line":1336},[1057,5326,5101],{"class":1063},[1057,5328,5329,5331,5333],{"class":1059,"line":1376},[1057,5330,2675],{"class":1225},[1057,5332,4181],{"class":1821},[1057,5334,1835],{"class":1225},[1057,5336,5337],{"class":1059,"line":1603},[1057,5338,5339],{"class":1063},"{% endcache %}\n",[1026,5341,5342],{},[1042,5343,5344],{},"Conditional Caching:",[1047,5346,5348],{"className":1049,"code":5347,"language":1051,"meta":1052,"style":1052},"{% if user.is_authenticated %}\n    \u003C!-- Don't cache for authenticated users -->\n    \u003Cdiv class=\"user-specific-content\">\n        Welcome, {{ user.username }}!\n    \u003C/div>\n{% else %}\n    {% cache 600 anonymous_header %}\n        \u003Cdiv class=\"header\">\n            \u003Ch1>Welcome to our site!\u003C/h1>\n        \u003C/div>\n    {% endcache %}\n{% endif %}\n",[1054,5349,5350,5354,5359,5378,5383,5391,5395,5400,5419,5436,5444,5449],{"__ignoreMap":1052},[1057,5351,5352],{"class":1059,"line":1060},[1057,5353,2025],{"class":1063},[1057,5355,5356],{"class":1059,"line":1067},[1057,5357,5358],{"class":1216},"    \u003C!-- Don't cache for authenticated users -->\n",[1057,5360,5361,5363,5365,5367,5369,5371,5374,5376],{"class":1059,"line":1073},[1057,5362,1905],{"class":1225},[1057,5364,4181],{"class":1821},[1057,5366,1911],{"class":1910},[1057,5368,1226],{"class":1225},[1057,5370,1916],{"class":1234},[1057,5372,5373],{"class":1238},"user-specific-content",[1057,5375,1916],{"class":1234},[1057,5377,1835],{"class":1225},[1057,5379,5380],{"class":1059,"line":1079},[1057,5381,5382],{"class":1063},"        Welcome, {{ user.username }}!\n",[1057,5384,5385,5387,5389],{"class":1059,"line":1273},[1057,5386,2675],{"class":1225},[1057,5388,4181],{"class":1821},[1057,5390,1835],{"class":1225},[1057,5392,5393],{"class":1059,"line":1296},[1057,5394,2118],{"class":1063},[1057,5396,5397],{"class":1059,"line":1330},[1057,5398,5399],{"class":1063},"    {% cache 600 anonymous_header %}\n",[1057,5401,5402,5404,5406,5408,5410,5412,5415,5417],{"class":1059,"line":1336},[1057,5403,2052],{"class":1225},[1057,5405,4181],{"class":1821},[1057,5407,1911],{"class":1910},[1057,5409,1226],{"class":1225},[1057,5411,1916],{"class":1234},[1057,5413,5414],{"class":1238},"header",[1057,5416,1916],{"class":1234},[1057,5418,1835],{"class":1225},[1057,5420,5421,5423,5425,5427,5430,5432,5434],{"class":1059,"line":1376},[1057,5422,5157],{"class":1225},[1057,5424,1022],{"class":1821},[1057,5426,1824],{"class":1225},[1057,5428,5429],{"class":1063},"Welcome to our site!",[1057,5431,1830],{"class":1225},[1057,5433,1022],{"class":1821},[1057,5435,1835],{"class":1225},[1057,5437,5438,5440,5442],{"class":1059,"line":1603},[1057,5439,2808],{"class":1225},[1057,5441,4181],{"class":1821},[1057,5443,1835],{"class":1225},[1057,5445,5446],{"class":1059,"line":1628},[1057,5447,5448],{"class":1063},"    {% endcache %}\n",[1057,5450,5451],{"class":1059,"line":1678},[1057,5452,2161],{"class":1063},[1035,5454,5456],{"id":5455},"efficient-template-patterns","Efficient Template Patterns",[1026,5458,5459],{},[1042,5460,5461],{},"Minimize Database Queries:",[1047,5463,5465],{"className":1049,"code":5464,"language":1051,"meta":1052,"style":1052},"\u003C!-- Good: Use select_related/prefetch_related in view -->\n{% for post in posts %}\n    \u003Ch3>{{ post.title }}\u003C/h3>\n    \u003Cp>By {{ post.author.name }}\u003C/p>  \u003C!-- No additional query -->\n    \u003Cp>Category: {{ post.category.name }}\u003C/p>  \u003C!-- No additional query -->\n{% endfor %}\n\n\u003C!-- Bad: This causes N+1 queries -->\n{% for post in posts %}\n    \u003Ch3>{{ post.title }}\u003C/h3>\n    \u003Cp>Comments: {{ post.comments.count }}\u003C/p>  \u003C!-- Query per post -->\n{% endfor %}\n",[1054,5466,5467,5472,5476,5492,5512,5531,5535,5539,5544,5548,5564,5584],{"__ignoreMap":1052},[1057,5468,5469],{"class":1059,"line":1060},[1057,5470,5471],{"class":1216},"\u003C!-- Good: Use select_related/prefetch_related in view -->\n",[1057,5473,5474],{"class":1059,"line":1067},[1057,5475,2520],{"class":1063},[1057,5477,5478,5480,5482,5484,5486,5488,5490],{"class":1059,"line":1073},[1057,5479,1905],{"class":1225},[1057,5481,1035],{"class":1821},[1057,5483,1824],{"class":1225},[1057,5485,1827],{"class":1063},[1057,5487,1830],{"class":1225},[1057,5489,1035],{"class":1821},[1057,5491,1835],{"class":1225},[1057,5493,5494,5496,5498,5500,5503,5505,5507,5509],{"class":1059,"line":1079},[1057,5495,1905],{"class":1225},[1057,5497,1026],{"class":1821},[1057,5499,1824],{"class":1225},[1057,5501,5502],{"class":1063},"By {{ post.author.name }}",[1057,5504,1830],{"class":1225},[1057,5506,1026],{"class":1821},[1057,5508,1824],{"class":1225},[1057,5510,5511],{"class":1216},"  \u003C!-- No additional query -->\n",[1057,5513,5514,5516,5518,5520,5523,5525,5527,5529],{"class":1059,"line":1273},[1057,5515,1905],{"class":1225},[1057,5517,1026],{"class":1821},[1057,5519,1824],{"class":1225},[1057,5521,5522],{"class":1063},"Category: {{ post.category.name }}",[1057,5524,1830],{"class":1225},[1057,5526,1026],{"class":1821},[1057,5528,1824],{"class":1225},[1057,5530,5511],{"class":1216},[1057,5532,5533],{"class":1059,"line":1296},[1057,5534,1937],{"class":1063},[1057,5536,5537],{"class":1059,"line":1330},[1057,5538,1583],{"emptyLinePlaceholder":1582},[1057,5540,5541],{"class":1059,"line":1336},[1057,5542,5543],{"class":1216},"\u003C!-- Bad: This causes N+1 queries -->\n",[1057,5545,5546],{"class":1059,"line":1376},[1057,5547,2520],{"class":1063},[1057,5549,5550,5552,5554,5556,5558,5560,5562],{"class":1059,"line":1603},[1057,5551,1905],{"class":1225},[1057,5553,1035],{"class":1821},[1057,5555,1824],{"class":1225},[1057,5557,1827],{"class":1063},[1057,5559,1830],{"class":1225},[1057,5561,1035],{"class":1821},[1057,5563,1835],{"class":1225},[1057,5565,5566,5568,5570,5572,5575,5577,5579,5581],{"class":1059,"line":1628},[1057,5567,1905],{"class":1225},[1057,5569,1026],{"class":1821},[1057,5571,1824],{"class":1225},[1057,5573,5574],{"class":1063},"Comments: {{ post.comments.count }}",[1057,5576,1830],{"class":1225},[1057,5578,1026],{"class":1821},[1057,5580,1824],{"class":1225},[1057,5582,5583],{"class":1216},"  \u003C!-- Query per post -->\n",[1057,5585,5586],{"class":1059,"line":1678},[1057,5587,1937],{"class":1063},[1026,5589,5590],{},[1042,5591,5592],{},"Efficient Conditional Rendering:",[1047,5594,5596],{"className":1049,"code":5595,"language":1051,"meta":1052,"style":1052},"\u003C!-- Good: Check once, render accordingly -->\n{% with user_posts=user.posts.published %}\n    {% if user_posts %}\n        \u003Ch3>Your Published Posts ({{ user_posts.count }})\u003C/h3>\n        {% for post in user_posts %}\n            \u003Ca href=\"{{ post.get_absolute_url }}\">{{ post.title }}\u003C/a>\n        {% endfor %}\n    {% else %}\n        \u003Cp>You haven't published any posts yet.\u003C/p>\n    {% endif %}\n{% endwith %}\n",[1054,5597,5598,5603,5608,5613,5630,5635,5661,5665,5669,5686,5690],{"__ignoreMap":1052},[1057,5599,5600],{"class":1059,"line":1060},[1057,5601,5602],{"class":1216},"\u003C!-- Good: Check once, render accordingly -->\n",[1057,5604,5605],{"class":1059,"line":1067},[1057,5606,5607],{"class":1063},"{% with user_posts=user.posts.published %}\n",[1057,5609,5610],{"class":1059,"line":1073},[1057,5611,5612],{"class":1063},"    {% if user_posts %}\n",[1057,5614,5615,5617,5619,5621,5624,5626,5628],{"class":1059,"line":1079},[1057,5616,2052],{"class":1225},[1057,5618,1035],{"class":1821},[1057,5620,1824],{"class":1225},[1057,5622,5623],{"class":1063},"Your Published Posts ({{ user_posts.count }})",[1057,5625,1830],{"class":1225},[1057,5627,1035],{"class":1821},[1057,5629,1835],{"class":1225},[1057,5631,5632],{"class":1059,"line":1273},[1057,5633,5634],{"class":1063},"        {% for post in user_posts %}\n",[1057,5636,5637,5639,5641,5643,5645,5647,5649,5651,5653,5655,5657,5659],{"class":1059,"line":1296},[1057,5638,5157],{"class":1225},[1057,5640,1975],{"class":1821},[1057,5642,1978],{"class":1910},[1057,5644,1226],{"class":1225},[1057,5646,1916],{"class":1234},[1057,5648,4655],{"class":1238},[1057,5650,1916],{"class":1234},[1057,5652,1824],{"class":1225},[1057,5654,1827],{"class":1063},[1057,5656,1830],{"class":1225},[1057,5658,1975],{"class":1821},[1057,5660,1835],{"class":1225},[1057,5662,5663],{"class":1059,"line":1330},[1057,5664,5101],{"class":1063},[1057,5666,5667],{"class":1059,"line":1336},[1057,5668,5106],{"class":1063},[1057,5670,5671,5673,5675,5677,5680,5682,5684],{"class":1059,"line":1376},[1057,5672,2052],{"class":1225},[1057,5674,1026],{"class":1821},[1057,5676,1824],{"class":1225},[1057,5678,5679],{"class":1063},"You haven't published any posts yet.",[1057,5681,1830],{"class":1225},[1057,5683,1026],{"class":1821},[1057,5685,1835],{"class":1225},[1057,5687,5688],{"class":1059,"line":1603},[1057,5689,2113],{"class":1063},[1057,5691,5692],{"class":1059,"line":1628},[1057,5693,3287],{"class":1063},[1026,5695,5696],{},"The Django Template Language provides a powerful, secure foundation for creating dynamic web pages. Understanding its syntax, features, and optimization techniques enables you to build efficient, maintainable templates that scale with your application.",[5698,5699,5700],"style",{},"html pre.shiki code .sftqT, html code.shiki .sftqT{--shiki-light:#90A4AE;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}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 .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 .sbYkP, html code.shiki .sbYkP{--shiki-light:#39ADB5;--shiki-default:#B5695977;--shiki-dark:#C98A7D77}html pre.shiki code .sTbE_, html code.shiki .sTbE_{--shiki-light:#91B859;--shiki-default:#B56959;--shiki-dark:#C98A7D}html pre.shiki code .sBPpx, html code.shiki .sBPpx{--shiki-light:#E53935;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}html pre.shiki code .s7CZa, html code.shiki .s7CZa{--shiki-light:#F76D47;--shiki-default:#2F798A;--shiki-dark:#4C9A91}html pre.shiki code .s5Kfy, html code.shiki .s5Kfy{--shiki-light:#9C3EDA;--shiki-default:#AB5959;--shiki-dark:#CB7676}html pre.shiki code .sD-vU, html code.shiki .sD-vU{--shiki-light:#E2931D;--shiki-default:#2E8F82;--shiki-dark:#5DA994}html pre.shiki code .sYn-s, html code.shiki .sYn-s{--shiki-light:#E2931D;--shiki-default:#59873A;--shiki-dark:#80A665}html pre.shiki code .siWMO, html code.shiki .siWMO{--shiki-light:#6182B8;--shiki-default:#393A34;--shiki-dark:#DBD7CAEE}html pre.shiki code .sqOPj, html code.shiki .sqOPj{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#B07D48;--shiki-default-font-style:inherit;--shiki-dark:#BD976A;--shiki-dark-font-style:inherit}html pre.shiki code .sljsM, html code.shiki .sljsM{--shiki-light:#6182B8;--shiki-default:#59873A;--shiki-dark:#80A665}html pre.shiki code .sRjD_, html code.shiki .sRjD_{--shiki-light:#E53935;--shiki-light-font-style:italic;--shiki-default:#393A34;--shiki-default-font-style:inherit;--shiki-dark:#DBD7CAEE;--shiki-dark-font-style:inherit}html pre.shiki code .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 .se3Ec, html code.shiki .se3Ec{--shiki-light:#90A4AE;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .s8XtY, html code.shiki .s8XtY{--shiki-light:#39ADB5;--shiki-default:#1E754F;--shiki-dark:#4D9375}html pre.shiki code .sFGJz, html code.shiki .sFGJz{--shiki-light:#E53935;--shiki-default:#A65E2B;--shiki-dark:#C99076}html pre.shiki code .sa2tF, html code.shiki .sa2tF{--shiki-light:#E2931D;--shiki-default:#998418;--shiki-dark:#B8A965}html pre.shiki code .sJdAF, html code.shiki .sJdAF{--shiki-light:#6182B8;--shiki-default:#998418;--shiki-dark:#B8A965}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 .sSC40, html code.shiki .sSC40{--shiki-light:#90A4AE;--shiki-default:#B07D48;--shiki-dark:#BD976A}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 .sm7ve, html code.shiki .sm7ve{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#B5695977;--shiki-default-font-style:inherit;--shiki-dark:#C98A7D77;--shiki-dark-font-style:inherit}html pre.shiki code .sVyVU, html code.shiki .sVyVU{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#B56959;--shiki-default-font-style:inherit;--shiki-dark:#C98A7D;--shiki-dark-font-style:inherit}html pre.shiki code .sVsLi, html code.shiki .sVsLi{--shiki-light:#39ADB5;--shiki-default:#AB5959;--shiki-dark:#CB7676}html pre.shiki code .s3h35, html code.shiki .s3h35{--shiki-light:#F76D47;--shiki-default:#A65E2B;--shiki-dark:#C99076}",{"title":1052,"searchDepth":1060,"depth":1067,"links":5702},[5703,5706,5710,5717,5725,5730],{"id":1032,"depth":1067,"text":1033,"children":5704},[5705],{"id":1037,"depth":1073,"text":1038},{"id":1168,"depth":1067,"text":1169,"children":5707},[5708,5709],{"id":1172,"depth":1073,"text":1173},{"id":1432,"depth":1073,"text":1433},{"id":2005,"depth":1067,"text":2006,"children":5711},[5712,5713,5714,5715,5716],{"id":2009,"depth":1073,"text":2010},{"id":2495,"depth":1073,"text":2496},{"id":2832,"depth":1073,"text":2833},{"id":3054,"depth":1073,"text":3055},{"id":3227,"depth":1073,"text":3228},{"id":3488,"depth":1067,"text":3489,"children":5718},[5719,5720,5721,5722,5723,5724],{"id":3492,"depth":1073,"text":3493},{"id":3621,"depth":1073,"text":3622},{"id":3667,"depth":1073,"text":3668},{"id":3747,"depth":1073,"text":3748},{"id":3835,"depth":1073,"text":3836},{"id":3884,"depth":1073,"text":3885},{"id":3908,"depth":1067,"text":3909,"children":5726},[5727,5728,5729],{"id":3912,"depth":1073,"text":3913},{"id":4724,"depth":1073,"text":4725},{"id":5048,"depth":1073,"text":5049},{"id":5224,"depth":1067,"text":5225,"children":5731},[5732,5733],{"id":5228,"depth":1073,"text":5229},{"id":5455,"depth":1073,"text":5456},"md",null,{},{"title":100,"description":1028},"ChyLHRFqiJ6oRiegBi7lBXRUBbP2taK_CfVkBkJ7fTU",[5740,5742],{"title":96,"path":97,"stem":98,"description":5741,"children":-1},"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.",{"title":104,"path":105,"stem":106,"description":5743,"children":-1},"Template inheritance is one of Django's most powerful features, allowing you to build a base \"skeleton\" template that contains common elements and define blocks that child templates can override. This promotes code reuse, maintainability, and consistent design across your application.",1772474905398]