Mirco
ford
Unknown
Hi everyone I am a beginner in python
Beka
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
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
Saksham Mittal
If Yes, please Guide me too, I couldn't find a tutorial for it
Mirco
محمد دلشاد
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
Anonymous
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
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
محمد دلشاد
The mint of Linux **
Mirco
محمد دلشاد
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 ?
R
The mint of Linux **
Because I am logging in user via email.
The mint of Linux **
I thought it would be helpful some ways
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 ?
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?
Darth✧
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