Dark
Thanks @Carlangueitor
Secret situation😎
Hi guys How can fix this error? Gaierror in django
Charly
Hi guys How can fix this error? Gaierror in django
Show the full error and say when you get that error
Secret situation😎
Show the full error and say when you get that error
I can not send picture send to your pv?
Charly
I can not send picture send to your pv?
No pictures for things that are text
Doragonsureiyā
I can not send picture send to your pv?
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://dpaste.org, https://hastebin.com, https://bin.kv2.dev or your favorite one!
Secret situation😎
No pictures for things that are text
Ok error about sending email I add all email settings to setting.py but does not work
Charly
Ok error about sending email I add all email settings to setting.py but does not work
well we can't help if you don't show the error ¯\_(ツ)_/¯
Doragonsureiyā
Hi guys How can fix this error? Gaierror in django
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase.
Secret situation😎
Secret situation😎
https://hastebin.com/share/halujedoso.python
When runserver this code i got error
Charly
cj
When runserver this code i got error
but... what is the error?
naveen
How to connect nginx with unix for django websocket
Charly
How to connect nginx with unix for django websocket
With unix? What do you mean by that?
naveen
In runserver perfectly working in nginx. Suppose with https. Example I give the path and kits.sock thats it. For wsgi hosting perfectly works. But for websocket not working
Ahmed
How to connect nginx with unix for django websocket
https://stackoverflow.com/questions/12102110/nginx-to-reverse-proxy-websockets-and-enable-ssl-wss
Martha
Hello everyone! Has anyone here used Django with AWS and DynamoDB? I'm interested to know if you've worked with these technologies and what your experience has been like. Thank you!
Emile
Hello everyone, I am trying to solve a Django problem concerning the reception of cookies in my authentication project, I use vue js to be able to make a request which is supposed to allow me with Django to retrieve the token which is in the client's cookies and to carry out other operations there when I do the tests with postman the api which is associated with it works correctly but with a browser the cookies always appear empty in Django however they are present at the browser level. Can somebody help me please?
Hayes $CFI
What is the full error?
I later fixed it It was a directory issue
Secret situation😎
https://hastebin.com/share/ajetadexif.python This error in django about sending email. Who can fix it?
Charly
Yes
Can you share that config (without any password0?
Secret situation😎
Secret situation😎
https://hastebin.com/share/aqufocoxeb.ini
Secret situation😎
Duvan
I have a question, I want to create a virtual store but I don't know whether to completely use django restframework or use the jwt plugin for verification.
Duvan
Thank you
aditi
hii , i have a question. i want to learn django from beginner to advance level , from where i learn , which is best or suitable?
𝑨𝒏𝒖𝒓𝒂𝒈
hii , i have a question. i want to learn django from beginner to advance level , from where i learn , which is best or suitable?
Or you can watch django tutorial of geeky shows.. he explained everything in deep about django, django rest framework all in hindi
Sahnoon
I hope it's okay to ask for some guidance here. I'm currently learning Python using the book Python Crash Course, and I’ve completed the basics. The next projects in the book involve Pygame, Matplotlib, and Plotly. However, I'm a bit confused about whether I should skip the first two projects to dive directly into Django, or if it would be beneficial to complete them first. Given your experience, what do you suggest?
shashi
Can anyone help me to suggest which online platforms give Django course free with certificate?
Varun
I don't want primary key column in a model table,how to restrict it.as it contain foreign key
Mamad
I don't want primary key column in a model table,how to restrict it.as it contain foreign key
primary is a necessity best you can do is use one of your unique columns as a pm
Bujji
Create  a standalone phython file nams send _email.py function name send_email_ notification Function parameters ( sender, instance,created) Follow logic If created is true send a mail with and enail subject comment created message _body comment added with comment _details fileld send to a member as set by the member
Bujji
Please help me anybody know how to write code
Artemis
Hello, I want to start cyber security with Django, do you know a good tutorial or reference that you can introduce to me?
Nada
Who have used stripe? I wanna use test mode for free but it's required to add my bank account or it doesn't work😞!
cv
Im using Django to create a backend api and I'm using simple jwt for authentication as it was given in docs but on each request while verifying the token it actually calls DB and gets the user instance but..... My main reason for using jwt only to avoid the db call for verification... Can anyone plz suggest to me how to fix it? Thank you!
Sam
Guys i want to create some simple but creative projects either Django or DRF can you recommend some ?
cv
Guys i want to create some simple but creative projects either Django or DRF can you recommend some ?
try to find any problem from your or your frnds daily life that can get solve using tech.... solve that ig it ll be more creative and interesting :)))
احمد
secret token
do you know what's encoded in the token?
cv
Id and username
cv
as payload
احمد
so how will you sure that the id is in your DB ?
احمد
so how will you sure that the id is in your DB ?
or the username without query the DB
Sam
try to find any problem from your or your frnds daily life that can get solve using tech.... solve that ig it ll be more creative and interesting :)))
One question.... have you seen the youtube`s video player? (which you are able to change the videos` quality live) can i make that thing with Django or python
cv
so how will you sure that the id is in your DB ?
okay, see lets assume I need to get the that user's post okay so I will search using the id that is in the token
cv
if its there then only ll return
cv
yes you can wether username or id anyone can work
yeah so at this point I don't need to call the user's table right?
cv
but because of jwt, its do
احمد
but because of jwt, its do
Here is a general overview of how JWTs work: A user provides their credentials (e.g., username and password) and sends them to the server. The server validates the credentials. If they are correct, the server generates a JWT containing the user's information (in a claim) and signs it with a secret key. The server sends the JWT back to the user. The user stores the JWT (usually in the browser's local storage or as a cookie) and includes it in the Authorization header in subsequent requests to the server. If you’re using Descope, you can change how the JWT is stored here, under Token Response Method. When the user sends a new request with the JWT, the server decodes the JWT, and verifies its signature. If the token is valid, then it extract the field you want to get the user with. the server processes the request and returns the appropriate response.
cv
and I want to modify the code so it don't call the user's table just verify the token only my problem is how to do this?
cv
are you using library?
as of now I'm just using the simplejwt
cv
https://django-rest-framework-simplejwt.readthedocs.io/en/latest/getting_started.html#installation
احمد
https://django-rest-framework-simplejwt.readthedocs.io/en/latest/getting_started.html#installation
check the docs I'm sure there's a way how to extend authenticate method then in there you can choose to just return whatever you want without query user table
cv
https://django-rest-framework-simplejwt.readthedocs.io/en/latest/stateless_user_authentication.html??
cv
it's what you want?
ig it may work, I actually didn't read whole docs, Thanks :)))
Isaac
Hello
Isaac
I have an error which says Did you forget to load this tag Required endblock. Trying to add image to my website
Isaac
Can anyone help me out here