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
26
votes
4 answers

Django 3.2 exception: django.core.exceptions.ImproperlyConfigured

I'm upgrading to django 3.2 but as per it's release notes, it says: The SECRET_KEY setting is now checked for a valid value upon first access, rather than when settings are first loaded. This enables running management commands that do not rely on…
vivekpadia70
  • 1,039
  • 3
  • 10
  • 30
10
votes
1 answer

Can UUIDField be used as default_auto_field in Django 3.2.^?

I have been using UUIDField as my primary key in Django. My project has a hierarchy of models with inherited fields, and at the top, I have the following superclass: import uuid from django.db import models class HasIDMixin(models.Model): id =…
Anne Haley
  • 160
  • 2
  • 10
5
votes
1 answer

AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'

I've been upgrading our Django/Python app to Python 3.9.7 and Django 3.2.7 (from Python 3.5 and Django 1.11.23). Currently if I try to run python manage.py createsuperuser I get the following error Traceback (most recent call last): File…
Jonathan Viccary
  • 722
  • 1
  • 9
  • 27
4
votes
3 answers

Issue while trying to set enum data type in MySQL database

What am I trying to do? Django does not support setting enum data type in mysql database. Using below code, I tried to set enum data type. Error Details _mysql.connection.query(self, query) django.db.utils.ProgrammingError: (1064, "You have an…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
4
votes
4 answers

disable dark mode in django admin

The Problem I installed Django after couple of months. Current version is 3.2.4. Earlier Django-admin was just light-mode. Current Django-admin switches automatically to dark or light according to system theme. Well, I do not want this behaviour. I…
ajinzrathod
  • 925
  • 10
  • 28
3
votes
1 answer

Settings in Django run repeat when runserver

I don't know why my django app run settings/base.py 2 times. I think it would make my app slow down In my settings/base.py I printed print('this is base_dir') print(BASE_DIR) output is: this is base_dir F:\7.Django\BLOG_PROJECT\src_blog this is…
3
votes
1 answer

Issue while creating Foreign Key constraint

Issue Details 'Can't create table django.clientauth_tblusers (errno: 150 "Foreign key constraint is incorrectly formed")') What am I doing? I created a tinyint auto increment field below but when referencing it in another table causing issue. Code…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
3
votes
2 answers

Django: how to find which CHECK constraint failed

I am using django 3. sqlite database. I have a situation in which an an instance in one of my models will not save. I get an integrity error and "CHECK constraint failed", followed by the name of my model ("post" in my "press" app: press_post). I…
anp925
  • 59
  • 4
3
votes
1 answer

Change DateTimeField FORMAT in Django version 3.2.2

I'm trying to change DateTime format for all date time objects in my project. I want to format : 21-06-2021 14:02:12 My settings DATETIME_FORMAT = '%d-%m-%Y %H:%M:%S' TIME_ZONE = 'Africa/Tunis' USE_I18N = True USE_L10N = False USE_TZ = True…
3
votes
0 answers

django.template.library.InvalidTemplateLibrary: Invalid template library specified in Django3.2

django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'django.contrib.admin.templatetags.admin_static': cannot import name 'RemovedInDjango30Warning' from…
2
votes
0 answers

gdal_config_error: [Errno 2] No such file or directory: 'gdal-config'

I'm running Django rest api with the django 3.2 on GCPUbuntu 20.04.5 LTS (GNU/Linux 5.15.0-1025-gcp x86_64). I'm getting an error when i run my docker containers. I need to use GDAL in one of my project modules. I'm pasting log from one the the…
2
votes
1 answer

ImportError: cannot import name 'KeyTextTransform' from 'django.contrib.postgres.fields.jsonb'

What is the new import for: ImportError: cannot import name 'KeyTextTransform' from 'django.contrib.postgres.fields.jsonb' I did some internet searching and didn't find an immediate result for the error. I am trying to upgrade from django 3.2 to…
jmunsch
  • 22,771
  • 11
  • 93
  • 114
2
votes
0 answers

How to adjust the Django PymemcacheCache limit to be over 1MB

A similar question was posted here regarding adjusting the 1mb limit of memcached storage in Django settings. However, the answer was referring to django.core.cache.backends.memcached.MemcacheCache, which has since been deprecated. I tried…
2
votes
0 answers

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @0.1.0 serve: `vue-cli-service serve` npm ERR! vuedirectory@0.1.0 serve: `vue-cli-service serve`

I installed django with vuejs. i got this error: npm run serve > vuedirectory@0.1.0 serve djangoprojectdirectory/vuedirectory > vue-cli-service serve INFO Starting development server... ERROR TypeError: Cannot read property 'vuetify' of…
Darwin
  • 1,695
  • 1
  • 19
  • 29
2
votes
0 answers

How to deal with django migration postgres deadlock?

So, I was deploying the django app to production and then the infamous postgres deadlock situation happened. This happens during the django migration. Django version: 3.2 Postgres 13 Google cloud sql postgres. OperationalError deadlock…
Maverick
  • 2,738
  • 24
  • 91
  • 157
1
2 3
8 9