Django Template Inheritance Causes A Bus Error
Solution 1:
The bus error is being manifested by the naming of the files, because there are two templates of the same name, with one of them trying to extend from the other.
In another_site/base.html, I have {% extends "base.html" %}
, but this file is also called base.html.
So basically, I can't have a tempalte called X, and another tempalte called X which extends template X. Perhaps my question wasn't phrased quite right which is why this wasn't picked up on.
The child template needs to have a unique name. I did this for all of my template files and now it works fine.
Solution 2:
From a thread in the django-users group:
A bus error occurs due to unaligned memory access, or access to a non existent memory address. In the absence of an actual bug (which others would see), this clearly indicates that one or another of the C libraries used by python conflicts with it.
This could happen if you compiled a C library to use with python, like one of the many python packages that consist of a small C library (mysql and postgresql DB adaptors, PIL, many others), and use it with a different python than it was compiled against.
This is almost certainly nothing to do with your template inheritance. Check your Python and Django installation, reinstalling if necessary. Please also provide more details about your environment and, as Jonas says, the full stack trace.
Post a Comment for "Django Template Inheritance Causes A Bus Error"