templatetags

Django regroup tag get fields values

Django regroup tag get fields values Question: I have a web page where I have two models for Products and Categories. I have this navbar where you can filter the Productos by categories, so in order to make it dynamic I passed the categories to the navbar and then applied a regroup since I’m getting …

Total answers: 1

Django: TemplateSyntaxError: Could not parse the remainder

Django: TemplateSyntaxError: Could not parse the remainder Question: I am getting this issue when I type localhost:8000/admin/. `TemplateSyntaxError: Could not parse the remainder: ‘:password_change’ from ‘admin:password_change’. The syntax of ‘url’ changed in Django 1.5, see the docs. Here’s part of my settings.py: INSTALLED_APPS = ( ‘django.contrib.auth’, ‘django.contrib.contenttypes’, ‘django.contrib.sessions’, ‘django.contrib.sites’, ‘django.contrib.messages’, ‘django.contrib.staticfiles’, ‘grappelli’, ‘filebrowser’, # Uncomment …

Total answers: 10