Anonymous
You I created venv
Try to describe your problem as written here: https://stackoverflow.com/help/how-to-ask
Lui
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pillow Running setup.py clean for pillow Failed to build pillow ERROR: Could not build wheels for pillow, which is required to install pyproject.toml-based projects
cj
I use like 3.11
read my message again until you understand it
Aby
user is getting logged out as soon as he is redirected to Login component I am using react The code was working perfectly in html , but when I integrated it with react , the issue start Link: https://github.com/AbyvargheseMandapathel/django-jwt-auth/blob/react/jwt_auth_app/views.py
Doragonsureiyā
Drey
Are you having issue relating with static? Can you please explain better what you want to achieve so we can help you?
Drey
Okay, is bootstrap currently added to your app? Have you tested any other bootstrap class to see if it’s working?
Drey
Are you trying to use the data-bs-toggle class for a drop down?
Drey
Yes
Mahesh
Please suggest best Python with django online class
Doragonsureiyā
Please suggest best Python with django online class
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
K
Hello Django Experts, I want to filter the queryset by the id and details column. The details column is a list of dictionaries in which there are dates. How do I get a specific id and dictionary for the last date?
Mani
django project setup or the file structure setup ?
Mani
what will be the file structure setup for django project ?
K
django project setup or the file structure setup ?
File structure setup. Model have column [{},{},…{}]. I want the last item from the list to be in the queryset
Charly
django project setup or the file structure setup ?
Django provides a file structure by default use it
<\Hany>
Hello How should we have access to requests in signals?
Masta
Hello community, I want to be able to update the quantity of product in stock whenever items are received or sold. Have anybody implemented this before or have an idea on how to do it? (If possible without using signals.) Thank you very much for your feedbacks.
Helin
I noticed such a problem that when I simply get something from my api, the response comes in the region of 200 ms, but if I connect to the web socket and start asking, the response time increases to 1000 ms Is my PC weak, or is it a problem in the code? if I start 4 connections to the web socket, the response time is 4000ms the web socket code is asynchronous, the request to the database is only once when connected, and then it is wrapped in a method with the decorator @database_sync_to_async start asgi Uvicorn
.
give me code for category wised display product in django
Doragonsureiyā
give me code for category wised display product in django
We&#39;re not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
The Inspired
Hello How should we have access to requests in signals?
Not possible. Use your request in your view
V
I have get error when I send message to another , I get connection refused error, if someone sort out this issues
Danny
Hello good morning, I have a query: I have a complete website made with django, which includes the possibility of registering and entering a user area, and I have another project also made in djago for a social network. The question I have is... how could these two projects be combined? So that when the user registers and enters with his login, instead of the user&#39;s page, the web takes him to the social network Theoretically is it possible? If someone can explain to me in theory how it should be done
<\Hany>
Why do you need this?
I need to run a class that requires requests
The Inspired
usually the reason is there
Ahmad
Code: class Profile(models.Model): ........... ............ ............ photo = models.ImageField(upload_to=user_directory_path, null=True, blank=True) .................. ....... I specify null=True and blank=True. But it is still giving me ( the &#39;photo&#39; attribute has no file associated with it) I don&#39;t have custom forms for it. Kindly if someone knows then help me. Thanks in advance.😇
José Jorge
Hi, how I Can install PostgreSQL in a VPS with Ubuntu in A2 Hosting. I received this error: The server must be started under an unprivileged user ID to prevent possible system security compromise. See the documentation for more information on how to properly start the server.
cj
Is for a Django project that I Can&#39;t connect with MySQL
it doesn&#39;t matter, you don&#39;t have an issue/problem with django, you have a problem installing something in a VPS, so it&#39;s offtopic from this group
Federico
What is the right way to reset every migration? Even losing all the data
Federico
I&#39;m having a lot of problems with those
Charly
What is the right way to reset every migration? Even losing all the data
Is not right to do that. But the easiest way is drop de database
Charly
Why not?
Because losing all the data is not something ytou want to do in a production environmente and migrations are supossed to run there
Federico
Anyway sorry I have another question... What is the correct way to extend auth_user data?
Muflone
Federico
Extend AbstractUser or BaseAbstractUser is the right way
Then what? I just make the migrations or I need to do some other steps?
Muflone
Then what? I just make the migrations or I need to do some other steps?
Specify in the settings the class name to handle the user authorization
Mitsubishi
Good evening, there is no link to the formset solution on creating 3 FK models Type Test - Questions - Answers It doesn&#39;t work, I wanted to see what solutions there are)
Charly
Then what? I just make the migrations or I need to do some other steps?
Migrations are needed everytime you modify models
Muflone
Charly
Yes I know
So what was the question then?
Federico
Correct
AttributeError: type object &#39;GymUser&#39; has no attribute &#39;USERNAME_FIELD&#39; Why this?
Charly
Yes
Show what you done
Federico
Oh no sorry I solved, I just had to estend AbstractUser and not AbstractBaseUser 🙏
Muflone
Oh no sorry I solved, I just had to estend AbstractUser and not AbstractBaseUser 🙏
ABU is for defining your authentication system, for example not using user and password pairs
Federico
I&#39;ve tried and it doesn&#39;t create any custom User class: class GymUser(AbstractUser): pass ( I have added no fields for now but basically this is the code )
Federico
Sorry, I meant it doesn&#39;t create any table of my custom class. No migration is created
Muflone
Add some fields and run migrations
Federico
Add some fields and run migrations
&quot;No changes detected&quot; after i did it
Muflone
Where&#39;s your code?
Federico
Where&#39;s your code?
You mean my Model?
Muflone
Federico
MyApp -&gt; MyApp -&gt; models.py
Muflone
Show the code