Questions tagged [django-2.0]

Django 2.0 is a version of the Django framework, released December 2017. Please only use this tag if your question relates specifically to this version.

Django 2.0 requires Python 3.4, 3.5, or 3.6. It is the first version of Django to support only Python 3.

Here are some of the salient features of Django 2.0:

Django 2.0 was released in December 2017 and was supported until April 2019.

423 questions
-1
votes
2 answers

For loop in Django template not processing

I create a dictionary, and pass it to my Django template: my_dict = {'boo': {'id':'42'}, 'hi': {'id':'42'}} t = get_template('my_site.html') html = t.render(my_dict) print(html) return HttpResponse(html) My Django template looks like…
Jeanne Lane
  • 495
  • 1
  • 9
  • 26
-1
votes
2 answers

How to use template context variable's value inside Django template tags?

In Django, I have seen the trans tag, it is useful to place translation strings in templates. {% trans 'Rishikesh' %} But I want to use dynamic value in place of 'Rishikesh' that is being passed by my view function. Let you assume my view function…
hygull
  • 8,464
  • 2
  • 43
  • 52
-2
votes
1 answer

TypeError: is_valid() missing 1 required positional argument

***strong text***I have write models and form files successfully but still showing some error in views after passing argument is the self is not defined after defining self it is showing NoneType' object has no attribute 'is_bound from…
kaps
  • 11
  • 7
1 2 3
28
29