Another approach would be to build a list of dictionaries based on the
query and pass this to the template instead of the pure llst of books:
[{
publisher: 'Publisher X',
books: ['Book A', 'Book B']
}],
So the logic remains in the code and not in the template.
Kai
Am 13.07.2015
When switching to debug=False I had also problems connecting my
debug-server. For me I had to specify the server IP-address in the settings:
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '192.168.1.21']
Maybe this helps.
Kai
Am 16.07.2015 um 20:28 schrieb John :
try:
python manage.py [::
Hi,
this may be a bit off-topic, but:
How are expressions like:
var1 = var2 = var3
called Python. Without a hint I cannot goolge this.
Thanks
Kai
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop recei
3 matches
Mail list logo