Mirco
cj
John
Is it possible to use tailwindcss styling with django-crispy-form or must it only be bootstrap?
John
I just want to know if it's possible before I start looking for a way to tweak it
Mirco
Yash
Anyone has integrated tinymce with react/Django ? I need help regarding image upload.
Shu
Mirco
Shu
Its hard to edit bootstrap so im learning tailwind to block the pitfall of boitstrap
Mirco
It's a good package but not required
John
Hello
pythonista
Is it a good idea to store big text like blog directly to database in django. Or is there any better way?
Anonymous
cj
Shreehari
Shreehari
It does not completely support mongo and not recommended.
Django has better support for ORM
Artyom
Can anyone tell me. I need to configure the model for the form so that if two fields are filled in, it gives an error, and if both fields are empty, then it is also an error, either the first field or the second should be filled in, what parameters should I write?
Artyom
https://pastebin.com/0VW0esft
Peak
{'age_max' : 35}
I need to display just the number (35) from output of aggregate method, how can i do that?
thanks
Sai
You need to get the value of age_max
If aggregate_result = { ''age_max" : 35}
Excepted_value= aggregate_result[" age_max"]
Jun
Sorry that was not my intention. i will delete the post
Sadra
Mohammadreza
Artyom
Ty a lot
Mohammadreza
Yw
*_*
Hi, can anyone please tell me how to configure multiple database and using it
*_*
And how to create table under specific db...
Doragonsureiyā
And how to create table under specific db...
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box, write down the same words you asked here
Step 4: Read the first results
Artyom
I need to make a separate page where i can resize the image and set the height and width of my choice, I don't know how to implement this correctly, I would be very grateful
https://pastebin.com/WBJKBR5P
Vitaliy
Artyom
I need to use only backend
Doragonsureiyā
🚫 mark [985534002] is already banned.
Vitaliy
Artyom
I need create view this PIL?
Peak
I searched a lot for a good Chart library for django
but i could not decide which one is simpler and more popular, because i haven't used any of them yet.
which one do you preffer if you used and found it simple and suitable for a simple project.
Mirco
Peak
honestly i saw chart.js, chartit and highchart but i can not choose one because i used none of them yet.
i was asking for best if sb have some experiences about them.
Girum
hello guys was trying to make multi language app and faced this error when running this code
django-admin makemessages -l es
CommandError
: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.
can someone help me how I can install gettext in windows 10
Mirco
✙ Ukraine siegt an allen fronten! 🇺🇦
Hello everyone! Help me in search a bug please.
I was made localisation on the site, all .po files are configurated, but srver don`t work. System write next error:
AttributeError: 'tuple' object has no attribute 'find'
LOCALE_PATHS in settings.py is looking as this: LOCALE_PATHS = (os.path.join(BASE_DIR, 'locale'),)
.po files are contain in projectname/locale/...... dir
*_*
Anonymous
And how to create table under specific db...
I'm pretty new to django and AFAIK, you have to pre-create tables then map them in your models.
And as for the multiple dbs, i havent got that far to playing with multiple dbs.😅
Daisuke
Anonymous
Daisuke
KARANAM
Hello any one can help me when i am saving data from the form to the model i am getting a type error how could i solve it
Anonymous
Check the data types u were saving
Anonymous
For string u might be sending numbers or viceversa
Beka
Украинский
Виктор
Hello everyone. Help me please. I dont know about url to media files on DRF, how set "mysite.com", now return 127.0.0.1
{
"image": "http://127.0.0.1:8000/media/promotion/images/man-wearing-blue-dress-shirt-2896840.jpg"
}
I using serializers.ImageFIeld to serialize this
*_*
Shubham
should we use router for mapping APIView or no need ?
Марина
Hi, can anyone help? I try to use chained select (smart-select), it works from the admin panel, but doesn't work from template (html).
https://pastebin.com/MWJJMfPF
Bunty chhatri wala..
Kaia
Is there guide or link on GitHub how to implement comments with infinite replies using closure table in Django?
Kaia
Meba
Can you elaborate more??
Meba
Sure
Meba
yes I'll check
Kartikeya
Hey guys, I'm new to Python and Django and when I created my first project, it showed an unresolved import error when I was importing from Django packages. Can anyone tell me how to fix that?
Tridip
Hello guys, needed a help. Actually I am building an app, where before registering, an user have to login with his phone number and verify it by otp. Can anyone help me how to approach with it?? I tried every thing but could not get a proper resource . Please help. Me out guys. It's urgent
Artyom
https://stackoverflow.com/questions/64283496/how-do-i-load-an-image-by-url-in-the-django-model-and-then-how-do-i-write-a-for
I've been fiddling with this all day and have no ideas, can you help? I will be very grateful
Saurabh
I am not able to add admin functionality in my Django project. Oauth with Google is already implemented there.
Saurabh
After following standard steps, localhost/admin redirect me to Google login page
Kaia
Saurabh
Yes
Kaia
But if you implement google oauth in django project you just need to make some changes in settings.py It is not related to admin.py I think the problem is not about oauth
Saurabh
Whenever I put url localhost:port/admin it is redirected to localhost:port/admin/login/?next=/admin/
Kaia
Did you put this url in developer.google.com?
Saurabh
And on webpage, it asks for login with google