Sam
I am new to Django. Can anyone suggest me first what to learn basic concepts in Django
Learn Python basics first then proceed to Django. You'll be good to go
Arezoo
Hi how can I create list serializer of dict and call this serializer into other serializer
Charanjit Singh
Nested serializer
Eugene
i have imagefield like that ' models.ImageField(null=True) ' And i want to get,in template, button that changes photos. There is nothing like that in documentation
Eugene
What exactly you want to achieve?
i want to change that button in css, but there is no way i can show you what exactly i want to with that,because i can't send image here.
Вин Король Саксов
i want to change that button in css, but there is no way i can show you what exactly i want to with that,because i can't send image here.
Just change the state of button dorectly in template, you can send context variable to template that will allow you to change button depending on that value
Eugene
But it gave me access to all field from image, not to this one
Fer
Hi guys! I ran into a problem, I've tried everything and still not working... Whenever I try to apply migrations, even though the database is completely empty, it says 'no migrations to apply' Can someone help me please? Django 3.2 PostgreSQL 13
Fer
Yes, 2 apps, 2 models, 2 database routing files, 2 databases, 1 mongodb, 1 PostgreSQL
Muhammadamin
I have this problem HTTP Error 405
Muhammadamin
Please Help me!!!!!
Sunny
Hi, I have one issue in converting BeautifulSoup object in json which is exactly a BeautifulSoup tag object. I have to send that object through JSON response but it is unable to convert BeautifulSoup tag object to JSON serializable object. Can someone help me on this please.
Alex
Hi, I have one issue in converting BeautifulSoup object in json which is exactly a BeautifulSoup tag object. I have to send that object through JSON response but it is unable to convert BeautifulSoup tag object to JSON serializable object. Can someone help me on this please.
As well as the BS lib, me myself don't now how to convert parsed DOM into json representation. But, had I a task to transfer html by API, i would simply transfer it as is - as text.
Sunny
I'm preparing one <p> tag object using BeautifulSoup so it can apply same tag on HTML page
Mo
Hi every one, Does pip freeze code for showing required packages always correct? how we can cross check for finding redundant library packages?
Charly
Hi every one, Does pip freeze code for showing required packages always correct? how we can cross check for finding redundant library packages?
Freeze only shows installed packages regardless of being a required package for your project or no
Maxim
Hi every one, Does pip freeze code for showing required packages always correct? how we can cross check for finding redundant library packages?
when I really need to, I start with an empty list and add dependencies according to import error messages, but this is a very long and cumbersome way
dolly
If any one good in validation of django please let me know
dolly
I have ran in to an issue in my project
dolly
For solving that i need to send the snap which is not allowed here
Charly
For solving that i need to send the snap which is not allowed here
Read the rules you can send code and errors in other ways
dolly
just explain the requiremebt
Registration page is taking the data n saving in django backend which is Sqlite 3 when i am trying to do validation for login its not validating
dolly
If i directly click login its getting logged in without validating the empty data or invalid creditionals
dolly
Anyone solution?
Charly
Anyone solution?
Show us the code
Maxim
Anyone solution?
really read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
dolly
Fine my mistake for asking help thanks alotttttttt for helping u plo r acting as if its some goverment depart
Pandit
Why my messages are getting deleted?
dolly
You can use builtin Login View in url
I want to make customized template
Optimus
You can use builtin Login View in url
it will authenticate automatically for empty input and other kind of validation
Optimus
I want to make customized template
yes you can do that also
Charly
Its not happening
then if you don't give enough details no one will able to help you
Charly
No thanks no need of your help
I mean in the group, I wasn't offering my help, but anyway's do whatever you want
dolly
I mean in the group, I wasn't offering my help, but anyway's do whatever you want
Exactly im minding my business same way dont poke your nose if you don't know
Charly
Exactly im minding my business same way dont poke your nose if you don't know
I was talkind as an admin of the group, so it's my bussines even if i don't care about your problem
Owolabi
Hello guys I'm trying to integrate a payment gateway in a project, the total cost must be an integer but the cost of purchased items is in decimal, please how can I work this out in Python Django as calling the int() on total cost literally chop off the decimal part which I'm not quite comfortable with. Thanks.
Charly
Hello guys I'm trying to integrate a payment gateway in a project, the total cost must be an integer but the cost of purchased items is in decimal, please how can I work this out in Python Django as calling the int() on total cost literally chop off the decimal part which I'm not quite comfortable with. Thanks.
You are not reading the documentation of your payment providers, some python providers exxpect the amount in cents so you can send integers without losing any payable decimal, but don't do that before confirming that on the docs of your provider
Mohammad
Should we guess what is your code or something?
Jitendra Kumar
Without forms validation can we use normally validate the field.how is possible any please?
Anshu
Without forms validation can we use normally validate the field.how is possible any please?
You can use javascript to validate the fields on client side, but it can be easily bypass by turning off javascript so it is recommended to do the validation on server side
The
do bulk mails sending using mail chimp go to spam?
The
Im planning to integrate mail chimp to my django project
Anonymous
Hello guys I have a form in template My form have a image field and when i save the form django save just image title (image.png) and dont save pic But if save image with admin image saved can you help me
Anonymous
Image = request.FILES.get(image) User.objects.update(image=image) Models: Image = models.imagefield(upload_to='media' , null=True) Template <form method="POST" encrypte=multi....> {% csrf_token> <input type=file name="image" > <\form>
Maxim
do bulk mails sending using mail chimp go to spam?
useless for offtopic questions only try in @pythonofftopic
Prakhar de
Can anyone tell if I use DRF for user registration and login?
Gordrick
Can anyone tell if I use DRF for user registration and login?
If you’re asking how to use DRF for this I’d recommend using The Djoser package Has most of the functionality you’d need for user management
Fer
Autosaving from?
ꪉꫝꪖꪹᦋꪖꪜ
Django doesn't not applying readymade template correctly, how to solve it can anyone pls tell me?
Doragonsureiyā
Django doesn't not applying readymade template correctly, how to solve it can anyone pls tell me?
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
Maan
can anyone help me in developing converter svg to png using svglib
dolly
Hii i want to know to display stored data in django to frontend(gui)
dolly
Procedure or code any one
dolly
do you mean in the browser?
I mean see django admin template is there right in that some data will be there i want that to display on the form of user side
Vk
Anyone running code-server in termux.
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Hello Everyone how can I embed a python interpreter in my website developed by Django?
Maan
Hii i want to know to display stored data in django to frontend(gui)
write a function in view and use url file to get all data from DB