Questions tagged [django-3.2]

Django 3.2 is the current LTS version of the Django framework, released April 2021. It is a Long Term Support (LTS) release, and will be supported until April 2024. Please only use this tag if your question relates specifically to this version.

Django 3.2 works with Python 3.6, 3.7, 3.8, 3.9, and 3.10.

Here are some of the salient features of Django 3.2:

Django 3.2 was released in April 2021 and is supported until April 2024.

128 questions
0
votes
2 answers

check_password not verifying database stored password successfully

I am using Python 3.9.7 and Django 3.2.7. Issue details The following code is being used to verify the submitted password. I can confirm that the submitted password has a valid value and user.password is a hashed password stored in the…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
0
votes
1 answer

Django3.2 python migration not setting default value

My database is MySQL. I am trying to set default value to current date time to created_at field below in the migration code. Due to some reasons, the default value is showing nothing in the database side, likewise, is_Active is having same issue. Am…
Abcdef
  • 43
  • 7
0
votes
1 answer

Return keyword arguments with None values to the views in django 3.2

As per Django 3 changelogs: RegexPattern, used by re_path(), no longer returns keyword arguments with None values to be passed to the view for the optional named groups that are missing. Recently upgraded from Django 2.2 to 3.2 after which I'm…
Somraj Chowdhury
  • 983
  • 1
  • 6
  • 14
0
votes
1 answer

Link does not work, throwing NoReverseMatchError

NoReverseMatch at /category/1/ Reverse for 'category' with arguments '('',)' not found. 1 pattern(s) tried: ['category/(?P[0-9]+)/$'] This error is displayed when navigating to a site category from the home page. On googling I found…
0
votes
1 answer

Extra context is no passed to /accounts/login in django 3

I want to pass some configurable data to the login template and all other account template. Currently, I am trying it like this: # urls.py path('accounts/', include('django.contrib.auth.urls'), {'extra_context': {'home_title': settings.HOME_TITLE, …
Soerendip
  • 7,684
  • 15
  • 61
  • 128
0
votes
1 answer

Django3 multiple files submit to database

I actually had an idea to make an app where a bulk of files upload can be possible at once, but I got some difficulties on how to implement that on the model and for now I'm in need of help. And I'm currently trying to solve this error. I get these…
0
votes
1 answer

Django 3 + websocket (asgi, uvicorn) (circular import error for all imports in production server)

The project is running on the local server, but when I try to run on the production server, it gives an error ImportError: cannot import name 'LastModMixin' from partially initialized module 'snippets.models.abstracts' (most likely due to a circular…
0
votes
1 answer

cannot import name 'Product' from 'products.models'

I am new to django, i am following a tutorial i do same things but got an error Im trying to make view for products app this is products.models from django.db import models # Create your models here. class Product(models.Model): title =…
0
votes
0 answers

cant run django server

I am getting this error and cant start the server. Please help me ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ModuleNotFoundError: No module named…
techedifice
  • 163
  • 1
  • 11
0
votes
1 answer

can't get Image field from another model "TypeError at /api/users/profile argument of type 'ImageFileDescriptor' is not iterable"

i am using django default user model created UserExtended model for storing extra details of user so that I can store extra user data and call them when needed here is the model class UserExtended(models.Model): extended_id =…
techedifice
  • 163
  • 1
  • 11
0
votes
0 answers

Django>=3.2 and dbshell

Did something change with Django>=3.2 with respect to MySQL. I have not changed my database credentials. Credentials work Trying to connect with the old credentials via mysql --user=user -p and the original password works. Django admin commands…
Vishal
  • 2,097
  • 6
  • 27
  • 45
0
votes
1 answer

Vue code doesn't show up with Webpack Bundle Tracker

I run both the vue and the django. I have installed webpack_loader and have it in installed apps. I have the WEBPACK_LOADER in settings.py WEBPACK_LOADER = { 'DEFAULT': { 'BUNDLE_DIR_NAME': 'dist/', 'STATS_FILE':…
AnonymousUser
  • 690
  • 7
  • 26
0
votes
0 answers

Django 3, model textField returns byte string while saved a string

I have updated my Django version from Django 2.1.4 to Django 3.2.3 Now I am facing a weird behavior of my apps. I am saving string data in my textFiled of the model, but when I retrieve data from model it returns byte string which is not…
Ali k.
  • 27
  • 2
  • 11
0
votes
0 answers

Problem with decimal field in django v3.2

After upgrading from version 3.1 to version 3.2, I found precision problem in using decimal field. Following example is a small code which could regenerate problem. from django.db import models class Foo(models.Model): amount =…
motam
  • 677
  • 1
  • 6
  • 24
0
votes
0 answers

Accessing files from custom directories to Django

I am fairly new to Django. Currently, I am making a Django 3.2 web server. Here is the concerned directory structure: https://i.stack.imgur.com/5LtJ6.png Problem I want to display the images in the generated\images folder in results.html. What…
Anuran Roy
  • 1
  • 1
  • 3
1 2 3
8
9