Questions tagged [django-2.2]

Django 2.2 is a version of the Django framework, released April 2019. It is a Long Term Support (LTS) release, and will be supported until at least April 2022. Please only use this tag if your question relates specifically to this version.

Django 2.2 works with Python 3.5, 3.6, 3.7, 3.8, and 3.9.

release notes

261 questions
-1
votes
1 answer

Double filter on detail view

I'm trying to create a detail view using function based view. This view must make visible only the already published posts and the non draft posts. def singlePost(request, slug_post, slug_category): post_category =…
MaxDragonheart
  • 1,117
  • 13
  • 34
-1
votes
1 answer

Why executing form.is_valid() cause deleting of the instance fields that aren't in the form in django?

Suppose this view that is for edit record: def edit_post(request, slug): post = get_object_or_404(Post, slug=slug) if request.method == "POST": form = AddPostForm(request.POST, request.FILES, instance=post) # 1 if…
rahnama7m
  • 865
  • 10
  • 38
-1
votes
1 answer

How to deploy django web app to google cloud?

how can i deploy python/django web app to Google Cloud ? i am using django 2.2 and python 3.7.3.
-3
votes
2 answers

How to save json in django database?

I need to save json file from API in database (postgresql) using django. I have classic model which extends the AbstractUser with the default fields for first name, last name and etc. I made a research but can't find how to achieve saved json from…
user14497680
-3
votes
2 answers

Being a superuser, How can l see objects saved of other users?

Being a superuser, How can I access the objects saved in the database of other users.
Manish
  • 501
  • 4
  • 11
-5
votes
1 answer

how to create the correct context in Django

from django.shortcuts import render def index(request): context = { 'title' : 'test' } return render(request,'index.html',context) TabError: inconsistent use of tabs and spaces in indentation
halo
  • 9
  • 1
1 2 3
17
18