Answer the question
In order to leave comments, you need to log in
Can't get the hang of Django's templating system. I ask for help
Dear colleagues. I began to actively study the Django framework and immediately ran into a few stupid things. I wanted to ask you about one of them. Python v 2.7, Django v. 1.6
I am writing:
from django.template import Template
t=Template("My name is {{Name}}")
print t
Answer the question
In order to leave comments, you need to log in
It looks like (according to the log) that you are running the code from the Python console, and not from the Jang one. Accordingly, the entire dzhangovskaya machinery is not initialized and your code tries to work in a bare environment.
Try
$ python ./manage.py shell
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question