Questions about the template engine of Django, which is intended to separate the presentation of a document from its data.
I am trying to display uploaded images to a template for my imaginary vegetable catalogue. I have a page to …
django django-templates pillow django-related-managerI am trying to use django-multilingual and setup it properly. But what I found is that everything is clear for …
django django-templates django-multilingualI need a javascript templating system and i think handlebars.js does an excellent job in this case. I'm having …
django django-templates handlebars.jsI am attempting to access ForeignKeys in Class Based Views CreateView. I would like to be able to dynamically set …
django django-templates foreign-keys django-class-based-viewsIn template, when I use {% if topic.creator.is_authenticated %} Online {% else %} Offline {% endif %} the users turn out to be …
django django-templates django-sessionsI want to set a social link at the end of my post in the Django template. how to use …
python django django-templates facebook-social-plugins python-social-authWhen defining a FormView derived class: class PrefsView(FormView): template_name = "prefs.html" form_class = MyForm # What's wrong with this? …
django view django-templates formview django-contextI am already trying to concatenate like this: {% for choice in choice_dict %} {% if choice =='2' %} {% with "mod"|add:…
python django django-templates for-loop string-concatenationHow can I set in ModelChoiceField optgroup tag? This is example: models.py class Link(models.Model): config = models.ForeignKey(…
python django django-templates django-formsI have a model which I want to display as a Detail view, I have created a list view that …
django django-templates django-views django-class-based-views