#33519: include X in X leads to silent crash
-------------------------------------+-------------------------------------
               Reporter:  Brambor    |          Owner:  nobody
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:  Core       |        Version:  3.2
  (Management commands)              |       Keywords:  template include
               Severity:  Normal     |  crash
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 index.html
 {{{
 {% load static %}

 {% include "index.html" %}
 }}}

 view:
 {{{
 def index(request, **kwargs):
         template = loader.get_template('index.html')

         return HttpResponse(template.render({}, request))
 }}}

 `url(r'^index$', index)` is in urlpatterns in urls.py

 When running the server with
 `python manage.py runserver`
 and accessing `http://localhost:8000/index`
 The server just stops, not printing anything

 cmd line looks like this:
 {{{
 >>>python manage.py runserver
 Watching for file changes with StatReloader
 Performing system checks...

 System check identified no issues (0 silenced).
 February 17, 2022 - 11:33:10
 Django version 3.2.12, using settings 'settings'
 Starting development server at http://127.0.0.1:8000/
 Quit the server with CTRL-BREAK.

 >>>
 }}}

 I also tried `python manage.py runserver -v 3`, which too didn't print
 anything.

 If I have seen a simple "Ran out of memory" Exception or something, it
 would occur to me that I did include X in X. Without that error message, I
 wondered, whether the issue is that something is called `index` and that
 word is reserved somewhere.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33519>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.a70b5180974df489952e65779e13c2d1%40djangoproject.com.

Reply via email to