Questions tagged [django-4.1]

Django 4.1 is the latest version of the Django framework, released in August 2022. Please only use this tag if your question relates specifically to this version.

Django 4.1 works with Python 3.8, 3.9, 3.10, and 3.11.

Here are some of the salient features of Django 4.1:

Django 4.1 was released in August 2022 and is supported until December 2023.

41 questions
0
votes
2 answers

how to show avaliable sizes of clothes on the form? Django

I'm developing online clothing store on Django. Now I faced the issue: I have a form which helps user to add to his cart some clothes. I need to show which sizes of this clothes are avaliable. To do this, I need to refer to the database. But how to…
pizhlo
  • 107
  • 6
0
votes
1 answer

Apple SSO breaks after Django 4 upgrade

After upgrading from django 3 to django 4, the "Sign in with Apple" feature started breaking with the following error Your request could not be completed because of an error. Please try again later. The javascript, the frontend html, and the…
wonton
  • 7,568
  • 9
  • 56
  • 93
0
votes
0 answers

Django-admin startproject , Doesn't generate asgi.py file

I am trying to create a websocket app with django, But since i updated to django 4.1 when i am generating a new project with django-admin startproject 'name' , it does not generate an asgi.py file. And when I'm trying to create one, and configure it…
0
votes
0 answers

Serving Django with apache2 fails with ModuleNotFoundError: No module named 'djangoProject'

I am trying to setup a Django server running on Ubuntu 20.04 using Python 3.10.6 and Django 4.1.1 When Django tries to run get_wsgi_application() it throws the error: ModuleNotFoundError: No module named 'djangoProject' I'm NOT running in a virtual…
Arana
  • 179
  • 1
  • 14
0
votes
1 answer

How to tell Django it has to read a some_folder/local.py file as settings.py

I am building an app in Django 4.1.2, and I am following a tutorial of an app made with Django 1.10.3. Right at the start, the teacher replaces settings.py with a directory settings containing the files. local.py production.py base.py each of…
Tms91
  • 3,456
  • 6
  • 40
  • 74
0
votes
0 answers

Django 4 By Example code doesn't show body-contents at all

I'm reading a book the title is Django 4 By Example. I tried to make chapter01 & 02. I wrote codes following the explanation of the book, everything is okay without bugs, but the result was not good. In my case, the body is empty. So I download &…
Haru
  • 1,884
  • 2
  • 12
  • 30
0
votes
1 answer

ModuleNotFoundError: No module named '_curses' erorr during import views in Django 4

I'm new in Django 4, trying to learn it via the book. I get error ModuleNotFoundError: No module named '_curses' when I import views in url.py and run server with python manage.py runserver. For some time it worked fine without any errors but…
OM26R
  • 127
  • 1
  • 9
0
votes
0 answers

How i can use nested include and block tag in django templates?

I want to show list of books in page. But below code does not do it. base.html {% include 'core/main.html' %} main.html
Darwin
  • 1,695
  • 1
  • 19
  • 29
0
votes
1 answer

Django issue, Categories Page can't be uploaded with products in it

$ hello, I tried load category products list by django as shown in codes below, and it never load , and always give error, even the "Int : id" of the category doesn't seen, please I need some help to figure out what is my problem, ... hello, I…
0
votes
1 answer

Django alias for static file path

I have a Django 4.1 project and want to make an alias to the directory with static files. So, in settings.py I have STATIC_URL = "static/" All my static files are in the example.com/static/.... I want to make a shortcut to one of directories of…
Uwu
  • 5
  • 2
-1
votes
2 answers

Django /static/ files not found, 404 error

I have a problem with loading static files. It wont load images on my page at all. When i look for the address it says /apps/assets/img..... But it should be /static/assets/img like on the home page and login page. (/apps/ is my view name but i…
1 2
3