Yash
When going through the entry point
Yash
I am just getting the get option
Yash
Nothing else
Doragonsureiyā
Ohkay sending media is not allowed
Read the rules before any activity: @PythonRules
Hello everyone Is that ok, that Django reads only query string when accepting an ajax POST request? +: It's literally POST in logs, but only request.GET contains data, if you added data to querystring +: I know what rest_framework is, I just wonder why the thing above is like that and how to disable it
No effect if you pass post data in body
Roman
Hi guys , should I gitIgnore migrations files ?
Roman
no
Btw that's what made me error , I did migration on server and it messed up the stuff
Muflone
I just told you before: you must never delete migrations files, until you know exactly what you're doing
Carbon
1) in qty i want option whether that is calculate by 6 or 12 for example 23 * 6 or 23 * 12 (it's user choice) 2)after that answer is come in unit(pics) then again calculate unit(pics)*rate(price) that answer come in amount 3) then all item amount calculate give the answer in total amount 4)after that it calculate c.gst (1.5%) and s.gst (1.5%) roundoff the value give answer in grand total 5)grand total amount answer which is in number its changes to word get the result in total invoice amount in word
sm
Can sombody please help me with this problem https://stackoverflow.com/questions/61346019/django-radio-button-on-request-post-is-not-working?noredirect=1#comment108525613_61346019
Marlvin
How can i use dynamic charts with django
look up at https://simpleisbetterthancomplex.com/tutorial/2020/01/19/how-to-use-chart-js-with-django.html
Muflone
look up at https://simpleisbetterthancomplex.com/tutorial/2020/01/19/how-to-use-chart-js-with-django.html
oh thank you, I was using it already but I was populating data and labels using a loop
Marlvin
you can use an ajax request too, I'm sure there's an example there too
Amir
Gys where can i find a tamplate for admin(( I downloaded some, but they wasn’t fine...))
I send data to the server like this : axios.post(url, data, config) config contains application/json header It reaches the server , but post and get query dicts are empty The only way to pass data is via querystring, so that it's visible on the server, but that is limited What am I doing wrong?
I use django
Anonymous
I am facing issue "No reverse matched"
I am facing issue "No reverse matched"
check for the name in django.urls.path that u use in url definitions
I am facing issue "No reverse matched"
it searches by name - namespace:your-url-name, not a path
Anonymous
I have done all the possible solution, I can get on internet
Doragonsureiyā
I have done all the possible solution, I can get on internet
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
Mayank
Hi guys
Mayank
Anyone here has information on the best way to implement multiple use types with custom user model
Anonymous
https://del.dog/ysagnerami
Anonymous
Mayank
For custom user?
Anonymous
Can i deploy an api based messenger bot on local host?
Tobi
Hi everyone, hope you are doing fine, does someone know how to define a one time signal, a signal that fire up only one time. I have a model with a FileField, this Field can be blank but when a file is upload for the first time I need to send an email, how can I achieve this ?
Tobi
store a flag somewhere and send a signal conditionally
I've think of that and I was wondering if there isn't a better way 🤔, but thanks
Roman
Is there any packes to improve Admin so I do sql query or something like that?
User
Can I pass dictionaries into context? How it works?
Mirco
Yup u can
User
What will the key "people" look like in the "blabla" dictionary when the whole context looks like this: context = {'blabla': {'people': 1, 'test', 2}}
User
In the template
User
As far as I'm concerned, this does not work.
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Maybe you should paste a taste of what does not work ?
Anders (izzno / gooood) 🇳🇴
As far as I'm concerned, this does not work.
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Home_page Then scroll down to "The index template", maybe this would give you a better understanding.
Anders (izzno / gooood) 🇳🇴
And maybe do that tutorial from start to finish... Takes a day, might give you a career ... 🤷‍♂️
Anders (izzno / gooood) 🇳🇴
(Some things may have changed in Django 3.0!)
Anders (izzno / gooood) 🇳🇴
Think about your problem another 8 hours and you've lost ;)
User
Anders (izzno / gooood) 🇳🇴
I don’t seem to understand :/
Then there's 2 of us.
Anders (izzno / gooood) 🇳🇴
What's your problem
User
They tell me that I can pass the dictionary to "contex", but so far I have not received an answer on how to access the key value in the same transferred dictionary.
User
Think about your problem another 8 hours and you've lost ;)
I'm not in a hurry, and I can endure 8 hours looking at a static chat with red eyes, but I'm not sure if this will help.
Anders (izzno / gooood) 🇳🇴
"pass the dictionary to context" I think this is a problem of understanding. Paste your view method and your template,
User
I’m in a hurry to prepare a development environment. Just a minute
Anders (izzno / gooood) 🇳🇴
User
You missed the point. 8 hours doing a build... The mozilla tutorial covers this....
If I tried to joke in English right now, I would object and say that building Mozzila Firefox 75.0 took me less time :)
Anders (izzno / gooood) 🇳🇴
im out
User
👌
L
Hey everyon! Let's suppose I'm making a courses site, where in order to access any course DetailView, you'll first have to ve a member of this course, which shall be done by clicking an html button that says for instance "Join Course". Logically, our template will be in charge to check if the browsing user is in the Member table, which is the intermediate joint table between a ManyToMany relationship beteen the Course model and the Django User model. Do you guys know how can I create a row in this membership table for the user whenever the user clicks on this "Join Course" button? By the way, I'm using a generic DetailView to render the course detail page, which will ask the user to join the course if he hasn't already joined. So I guess that I should to these things: 1) Somehow put a <form> inside an html button, and 2) Inside my DetailView, write a query to make a row in my Member table with the user's id in it.
LONER🐺
Any Site i can learn more abt Django models apart from the original documentation?...am new to it
Doragonsureiyā
Any Site i can learn more abt Django models apart from the original documentation?...am new to it
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
official documentation is the best source where you can learn Django
LONER🐺
official documentation is the best source where you can learn Django
Just want more understanding of its models...i find it difficult with the docs
cj
Just want more understanding of its models...i find it difficult with the docs
what kind of difficulty? 🤔 Django is one of the bests (if not the best) documented Python projects
Anonymous
Hi! Someone asked where to order ChatBots for Telegram. The guys did it to me. The result is awesome. Who needs contacts I will answer in messages. So that there is no spam
Hari
i tried date format in html if two dates start and end date are there same format showing in all languages lo but if only start date is there date is changing to that particular language any idea how to fix this
Gaurav
just read their robots.txt file
Sunil
Hi All, I have created an app which creates multiple files and then for editing I load those file in xlwings and all formatting but while saving I am getting an Microsoft Azure Information Protection pop-up. I want to select Confidential while saving the file.
Anonymous
Working on a django project and getting this error :( NoReverseMatch at /359438/add_answer Error: https://pastebin.com/41g0tmbT template: https://pastebin.com/Ns7ZKP61 views. py: https://pastebin.com/Dg2pukFm urls. py: https://pastebin.com/pS7rcVFU Can someone pls help?
Dhruva
My template works in temp mail but in Gmail it shows up the html code any help PLZZ?
Anonymous
still the same error