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
1 answer

TemplateDoesNotExist on Django 3.2.2

I am getting the below error when, I am trying to add new application: TemplateDoesNotExist at /listings/ listings/listings.html Request Method: GET Request URL: http://127.0.0.1:8000/listings/ Django Version: 3.2.2 Exception Type:…
User27854
  • 824
  • 1
  • 16
  • 40
0
votes
1 answer

Allow end user to add / remove fields from model in Django

Please consider this situation: I've several clients on my website and each one can create employee from his dashboard. But each of them may want different fields in there form or user model. Example: Client_1 wants name, email, phone in there…
0
votes
2 answers

Could not parse the remainder in Django If/else statements in templates

I have a couple if/else statements that all seem to return this same parse error regardless of what page or other content exists on the page. For all intents and purposes have dumbed it down. My actual logic makes sense, don't worry, I just want to…
djmonkey
  • 13
  • 3
0
votes
1 answer

Display all Employees with present and absent status

I Have Two models User Model and DailyPresent model with user as foreign_key in DailyPresent model. class DailyPresentReport(models.Model): PRESENT = 'present' ABSENT = 'absent' ON_LEAVE = 'on_leave' PRESENT_CHOICES = ( …
0
votes
0 answers

Django error when annotating with StringAgg plus another function

I'm trying to get a flat list of site names associated with each user. The results will be written to a CSV file: email,sites a@b.com,site1|site2|site3 b@b.com,site3 StringAgg works to flatten sites in an annotation. Both has_flag and is_admin work…
earthtone0ne
  • 3
  • 1
  • 2
0
votes
1 answer

Django: Generate a custom series number upon saving the model

I am new to django. I have an Item model which has a property_number field and a FK location field to Location model. property_number has a format like this 0000-00-00-0000-00 which is [year] - [sub account] - [gl account] - [series number] -…
Markmeplease
  • 145
  • 14
-2
votes
1 answer

NameError: name 'AUTH' is not defined

from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin class User(AbstractBaseUser, PermissionsMixin): email = models.EmailField(unique=True) name = models.CharField(max_length=150) objects =…
Darwin
  • 1,695
  • 1
  • 19
  • 29
1 2 3
8
9