ford
Unknown
Hi everyone I am a beginner in python
Beka
Hi everyone I am a beginner in python
Hi, what's your problem?
Purna rao
Hie I am purna from Hyderabad I am a new to django i have a an doubt can any one solve
Beka
Why not to ask ?
Beka
What did you try?
Purna rao
How to create a urls.py
محمد دلشاد
open your editor type ctrl+n then ctrl+s and type urls.py and select to all files types LOL
Mirco
🙏
as u can see, by reading documentation you can solve most of your issues
Beka
How to create a urls.py
Watch YouTube tutorials.
Ilya
Hi there, guys. How to make a view which i can use in any template. For example, i wanna make a simple sidebar with articles list, it will be inherited in any templates, obviously, but it will be work only at ListView, what should i do if i try to show it in DetailView.
Ilya
Im doing this tutorial https://djangocentral.com/building-a-blog-application-with-django/, and sidebar works only at homepages, doesnt in detailview, thank you!
Beka
Use another template for detail view as it shows in article.
Saksham Mittal
If Yes, please Guide me too, I couldn't find a tutorial for it
محمد دلشاد
have you used Google Social Login ?
i hv seen some in youtube just try there
Saksham Mittal
i hv seen some in youtube just try there
Need with rest API I couldn't find any, please share if you remember any
Mirco
have you used Google Social Login ?
I've used python-social-auth
محمد دلشاد
Need with rest API I couldn't find any, please share if you remember any
https://www.django-rest-framework.org/api-guide/authentication/ maybe this will help
Saksham Mittal
I've used python-social-auth
Okay can you share something so that I can refer
محمد دلشاد
https://www.youtube.com/watch?v=kjp8jYJhujA and this too
Saksham Mittal
Okay I will go through them
Saksham Mittal
Also I am facing staticfiles issue on deployment
Saksham Mittal
I am deploying to Ubuntu VPS
Saksham Mittal
And done collectstatic also
Isaías
Hello
Isaías
How to get the value of the <qtd> tag using regex
Isaías
x = '''<?xml version="1.0"?> <data> <qtd>1<qtd> </data>'''
Mehmet
With re module. You can use https://regex101.com/ for testing.
Isaías
Resolved.
Isaías
👌
The mint of Linux **
Hey Django experts I need some help
Doragonsureiyā
Hey Django experts I need some help
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
The mint of Linux **
Attribute error at login Annonymoysuser has no attribute with meta
The mint of Linux **
I can't share pic here
محمد دلشاد
Attribute error at login Annonymoysuser has no attribute with meta
user is not logged in and you are trying to access some stuff of User table maybe
The mint of Linux **
I was using same function ...but I don't know how things automatically go wrong
The mint of Linux **
No attribute __meta in init.py ?? Why should I do?
The mint of Linux **
The mint of Linux **
Is there any kind hearted person to help?😢😢
محمد دلشاد
send error via hastebin man
محمد دلشاد
Is there any kind hearted person to help?😢😢
poor you don't worry here are a lot
The mint of Linux **
محمد دلشاد
Sorry how ?
go to hatebin.com paste your code save it copy the link paste here
The mint of Linux **
https://hatebin.com/zfgtqzloqe
The mint of Linux **
Please check
The mint of Linux **
And my views.py is
The mint of Linux **
https://hatebin.com/qraiqkmqfz
R
Hi buddies the url redirects with payment options . path('payment/<option>/' ,PayView.as_view() ) How do I check the <option> passed in a class based view ?
محمد دلشاد
https://hatebin.com/qraiqkmqfz
why are you using email instead of username ??
The mint of Linux **
Because I am logging in user via email.
The mint of Linux **
I thought it would be helpful some ways
محمد دلشاد
Because I am logging in user via email.
id think authenticate works that way for this you need to override the authenticate method
The mint of Linux **
But it was working properly as I included logout and something changes..
The mint of Linux **
It got dameged..
The mint of Linux **
Actually I don't know if any user will forget their username how will they regain it ?
Darth✧
Actually I don't know if any user will forget their username how will they regain it ?
Reset it 🤷‍♂..... Django inbuilt pass recovery view will send you link through the email on which you have registered ....u can change it
Sumit
Hi, I want dynamic checking of usernames in django, how can I achieve this?
Saksham Mittal
Also I am facing staticfiles issue on deployment I am deploying to Ubuntu VPS And done collectstatic also
Sumit
One more thing, I am getting error while using ashi the error is sync_to_async , how to get rid of this?
Doragonsureiyā
One more thing, I am getting error while using ashi the error is sync_to_async , how to get rid of this?
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Anonymous
how to do aggregation on two fields. i want data for chart. my model have created_at and closing Mode, closing mode can have either 0 and 1 only. now in one date there can be any number of 0 and 1. so i want to aggregate date like date, closingmode_0: count, closingmode_1: count. so i can make graph please help its urgent
Anonymous
anyone home?
Anonymous
Hello Guys I have Rezervation form my save fonctioun working but if ı enter same name and same last name or date ı cant saved ? why .. anyoneknow this problem ?????
Anonymous
How to style django formset. I am able to style the simple forms with widget in Form class. But I am not able to style the inline formset with widget. Thanks for the help.
Anonymous
https://hastebin.com/mapuliyaxu.cs
Anonymous
My code is here help me please
Anonymous
Also posted on stackoverflow https://stackoverflow.com/questions/63817736/style-is-not-applied-with-inlineformset-but-works-perfectly-with-simple-form
Manuel
can somebody help me with something
Manuel
in drf how can I delete from a table in the same function of the class based views and insert on another table
Manuel
?
devops
[...req.body]
devops
What is this thing call can anyone help