Skip to content

[Bug] /affiliations and 404 error handler serve raw unrendered Django/Jinja template source code #1073

Closed

Description

@tarunagnihotri534

Summary

When visiting the /affiliations page (linked in the site footer under ABOUT & LEGAL) or triggering a 404 error on any invalid route (such as /sitemap.xml or /some-nonexistent-page), the web server serves the raw, unrendered template source code rather than executing the Django rendering pipeline.

Visitors see literal bracketed template tags ({% extends "base.html" %}, {% block title %}, {{ requested_path }}), unstyled typography, and no navigation header or footer.


Confirmation of Related 404 Behavior

As suspected, this issue affects both the public /affiliations route and the production 404 error handler:

  • https://alphaonelabs.com/affiliations: Returns HTTP 200 OK, but the body is the unrendered template affiliations.html.
  • https://alphaonelabs.com/sitemap.xml: Returns HTTP 404 Not Found, but the body is the unrendered template 404.html (displaying literal {{ requested_path }}).
  • https://alphaonelabs.com/any-invalid-url: Returns HTTP 404 Not Found with the exact same unrendered template syntax.

Steps to Reproduce

Case A: The /affiliations Route

  1. Navigate to https://alphaonelabs.com/.
  2. Scroll to the footer under ABOUT & LEGAL and click Affiliations (or directly open https://alphaonelabs.com/affiliations).
  3. Observe the top and bottom of the viewport.

Case B: The 404 Error Handler

  1. Navigate to https://alphaonelabs.com/sitemap.xml or any non-existent path like https://alphaonelabs.com/nonexistent-test-page.
  2. Inspect the rendered response.

Expected vs Actual Behavior

For /affiliations:

  • Expected: A fully rendered HTML document extending base.html, complete with brand styling, standard navigation header (site-navbar), dark mode styles, and the footer.
  • Actual: The raw template source is served as plain text/HTML (HTTP 200 OK), displaying:
    {% extends "base.html" %}
    {% block title %}Affiliations - Alpha One Labs{% endblock %}
    {% block meta_description %}Organizations and initiatives affiliated with Alpha One Labs.{% endblock %}
    {% block body_class %}min-h-screen flex flex-col bg-white text-gray-900 dark:bg-black dark:text-gray-100 overflow-x-hidden{% endblock %}
    {% block content %}
    ...
    {% endblock %}
    
Image Image

Activity

  1. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

    👋 Hi @tarunagnihotri534, thank you for your interest in contributing!

    We do not accept issues from external contributors. Instead, please open a Pull Request directly with your proposed changes.

    If you have a bug fix, new feature, or improvement in mind, feel free to fork the repository and submit a PR — we'd love to review it! 🚀

  2. added
    2026-10
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2026-10good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions