saran
Invalid form data ?
Anonymous
Hii
Anonymous
I stuck in my project,so can anyone help me, here I'm unable ot not allowtto send photos
Anonymous
Kindly Reply me so I can DM you personally my error
cj
Kindly Reply me so I can DM you personally my error
the group is intended to be used to ask questions here
▀▄▀▄▀▄___🅃🅁🄼__▀▄▀▄▀▄
Any good resource to start with django book preferably
Doragonsureiyā
Any good resource to start with django book preferably
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
the group is intended to be used to ask questions here
How you will understand my error without all my files?
cj
How you will understand my error without all my files?
you should share them ¯\_(ツ)_/¯
Tushar
I am getting an error while trying to use cryspy forms It's saying TemplateDoesNotExist at /emp/ bootstrap4/field.html
Игорь
People kind, please help me, I can't understand at all. I set up a django project, ready-made, setting up the environment, testing the project, everything is cool. Then I install daphne, configure it, try to run it and see this problem: (flatinn_env) [user@box-725864 ~]$ sudo systemctl status gunicorn ● gunicorn.service - gunicorn daemon Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2023-03-02 09:33:11 MSK; 21s ago Process: 4735 ExecStart=/home/user/project/flatinn_env/bin/gunicorn --workers 3 --bind unix:/home/user/project/flatinn/core.sock core.wsgi:application (code=exited, status=203/EXEC) Main PID: 4735 (code=exited, status=203/EXEC) From the logs and the error code, I understood that I simply do not have core.sock in the project folder. I googled that it should be created when the project is first launched, but why it is not there.... Can you tell me why this can be and what settings depend on it?
donc3
Hi all, I'm new in Django, I have written an app and I want to serve it with gunicorn + Apache. If I configure static and media folders in Apache and Django as /static and /media works fine. But if I do it in /test/media , /test/static the files can't be found. Can anyone help me?
Siuuuu!!
How to install django package offline
Download zip, extract and add to path
Akash
You have any idea how to deploy django project with help of docker
Shoosh
You have any idea how to deploy django project with help of docker
Search it up on yt , there are many well explained tutorials from smaller ytbrs on this topic
donc3
I think you have to specify in settings.py static and media folder names
Are already specified, I have solved it with Whitenoise
donc3
And media files with an alias in Apache
SantiU
is there any way to make the images sent by rest framework api have smaller size?
cj
is there any way to make the images sent by rest framework api have smaller size?
a REST API should not send images, it may, instead, send the URL of an image, so there you can decide which image to use and choose the one with a small size
SantiU
but that url returns a 1mb image, and it is very heavy.
Anonymous
capt. Levi
Does anyone has knowledge about knox token
capt. Levi
Generation
capt. Levi
I m not able to generate token when user register himself
capt. Levi
It throws error
capt. Levi
"authtoken.user" must be a "user" instance.
Hello everyone How can I logout user with JWT without using simplejwt blacklist?
Just change the settings in settings.py
How? I want to logout user without using blacklist
virat kohli
How to add server logs into database in django Can anyone give me proper example and code
How to add server logs into database in django Can anyone give me proper example and code
https://stackoverflow.com/questions/11887816/store-django-log-messages-in-a-database
virat kohli
Anyone part from this
RAG
Any best resource to learn Django
Doragonsureiyā
Any best resource to learn Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Meme
How? I want to logout user without using blacklist
Without using blacklist I think it doesn't bring the concept of log out to your project . Refresh token have to be removed in order to be logged out properly
Meme
I saved it in redis cache
Okay ,I am not sure may ,but deleting the tokens will logout the user .
enansi
Okay ,I am not sure may ,but deleting the tokens will logout the user .
Where exactly can you delete a JWT token when using DRF? Is that even possible?
enansi
How? I want to logout user without using blacklist
If you have very short-lived JWT tokens, and then on the endpoint you use to issue a refresh token, you just have some functionality/middleware that checks which user is requesting a REFRESH token and you either issue one or don't based on some flag on the User object (like is_active = True/False)
Vasea
Hi Guys, Can sombody help me with an advice. I have a django project with mysql database which is containing users and user data like firstname and lastname are rendered in template. The problems is when i add a new user in database or delete it (from django-admin) and i reload the page to see that user is added in template it is not added and not deleted until i restart server, i use Django version 4.1.7 Thanks in advance!!!
Ilgiz
Is it a good solution to use celery to zip videofiles/extract audio from video?
Soumyadeep
i can't migrate my app using Django.the error they are showing is " argspec = inspect.getargspec(receiver) ^^^^^^^^^^^^^^^^^^ AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?" what should i do now?? Thanks in advance
 Aryas
Hi there. I have deployed a django+React project on "pythonanywhere" but it doesn't render the project even without an error. Could you help me with that, please?
Baba
Hi, my static files are not showing during production. Pls help Thanks
Baba
Yeah, it thrown me an error "function not implemented"
Мark
Is it possible to host django app on 4host?
Rajeev
Can django handle 50000 transaction parallel at the same time
Игорь
Can django handle 50000 transaction parallel at the same time
Yes, Django is capable of handling large numbers of transactions in parallel. However, it is important to note that the actual performance of the system will depend on the underlying hardware, software, and network infrastructure. Additionally, it is important to consider the scalability of the application, as the number of requests increases.
cj
Can django handle 50000 transaction parallel at the same time
yes but it will depends on your hardware capacity more than if Django can or can't do it by itself alone
Rajeev
yes but it will depends on your hardware capacity more than if Django can or can't do it by itself alone
What will be the minimum infrastructure requirement that can handle the request...
cj
What will be the minimum infrastructure requirement that can handle the request...
it depends on what is the request actually, the payload ant things and other factors your IT team should evaluate and decide it
Alexey
What will be the minimum infrastructure requirement that can handle the request...
At same time 50k processes it must compute somehow at same time, u need 50k processors, and u make 50k workers, and big amount of apps. 100 workers per 1 app is 500 apps.
Yazan
how can i don't let anyone to access the django api links in the browser?
Yazan
like kinda "lock" it
cj
debug=False on settings
that's non-sense, has nothing to do with what the OP want to achieve
FOR YOU
hi! Maybe you can help me with upload files.. I want serialize FileField from request, receive FileField from validated_data, but dont save in model (this column(FileField) doesnt exist in model), only read data from file. How can i do this?
Someone
like kinda "lock" it
You can't do much about it, but that's why we have authentication and authorization systems. They can open the url in the browser, but can't do much with it.
cj
hi! Maybe you can help me with upload files.. I want serialize FileField from request, receive FileField from validated_data, but dont save in model (this column(FileField) doesnt exist in model), only read data from file. How can i do this?
add that field in the serializer only, it does no necessarily have to exist in the model if you just want the field to be part of the payload if you want to manually work with that in your view and not touching the DB with that part of the data
Yazan
another question in admin panel: I have: country model material model subject model it's one to many "foreign key" from top to bottom for example if I have 2 materials same name but different parent "country" in subject when I want to choose a material how to know what is the parent without re open the parent once more
FOR YOU
add that field in the serializer only, it does no necessarily have to exist in the model if you just want the field to be part of the payload if you want to manually work with that in your view and not touching the DB with that part of the data
yes, but after deleted file(column) from model (Fileobject), i receive this TypeError - "TypeError: FileObject() got unexpected keyword arguments: 'file'"
R
Anyone knows how to add the phone number field to the django default table
Christo
from phonenumber_field.modelfields import PhoneNumberField class Client(models.Model, Importable): phone = PhoneNumberField(null=False, blank=False, unique=True)
Ilgiz
Can someone help with django celery? Is it ok to have a celery task which add files to zip or delete them? Is there good practices to look for?
Mazin
Why should i use django over other technologies?
Mazin
Doragonsureiyā
Thanks😃
¯\_(ツ)_/¯