Yash
When going through the entry point
Yash
I am just getting the get option
Yash
Nothing else
Mirco
☣
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 ?
Muflone
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
Carbon
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
Muflone
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...))
Muflone
☣
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
Amir
Anonymous
I am facing issue "No reverse matched"
☣
Anonymous
I have done all the possible solution, I can get on internet
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
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 ?
☣
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
Tobi
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!)
User
Anders (izzno / gooood) 🇳🇴
Think about your problem another 8 hours and you've lost ;)
User
User
Anders (izzno / gooood) 🇳🇴
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.
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) 🇳🇴
Anders (izzno / gooood) 🇳🇴
im out
User
👌
Adonis
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
cj
official documentation is the best source where you can learn Django
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?
Muflone
Anonymous
Anonymous
still the same error