Mirco
First things First, do not use Django 2.2
👎 LTSs are always a good choice
Yuvraj
👎 LTSs are always a good choice
After all, the last word's yours
cj
It is reassuringly safe but there are some considerable amount of minor changes here and there. Going for a version slightly below the latest version is always a wiser choice. 2.2 MAY cause discomfort in development in future. I am not confusing people. No foul intentions.
maybe when you start working you'll understand why LTS versions exist 🤷🏻‍♂️ meanwhile don't confuse people saying "Don't use 2.2" without any valid reason
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
Yash
Anyone has integrated tinymce with react/Django ? I need help regarding image upload.
John
I don't think crispy form supports Tailwind
Thanks. But please any idea on how one can style a django form with tailwind
Mirco
Thanks. But please any idea on how one can style a django form with tailwind
Once installed Tailwind, if render manually the form you can add normal css classes otherwise you can inject them by using widgets inside Django form
Shu
Once installed Tailwind, if render manually the form you can add normal css classes otherwise you can inject them by using widgets inside Django form
Im learning tailwind from yesterday...i think its tough to remember those all classes...once we get used to it...it will be very easy to fly
Shu
You don't have to remember them, you have to check docs
Oh really...yap im begeinner hope i will do this thing with fluidity
Shu
Its hard to edit bootstrap so im learning tailwind to block the pitfall of boitstrap
John
Once installed Tailwind, if render manually the form you can add normal css classes otherwise you can inject them by using widgets inside Django form
Okay one last thing. I just found django-widget package here: https://github.com/jazzband/django-widget-tweaks Will it be okay to use it with tailwind as I render my django form manually?
Mirco
It's a good package but not required
pythonista
Is it a good idea to store big text like blog directly to database in django. Or is there any better way?
pythonista
I think Mongodb is better for this
Yes any nosql db. But mongo db dont have good support for django. Is there a way? How everyone store their text?
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
Sorry that was not my intention. i will delete the post
You asked about HTTPS on pythonanywhere?
Jun
You asked about HTTPS on pythonanywhere?
Yup, but i think that will again be an off-topic.
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
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.
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
✙ 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.😅
Anonymous
Excellent approach
You must be high
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
Виктор
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
يوسف
Hi, can anyone please tell me how to configure multiple database and using it
https://books.agiliq.com/projects/django-orm-cookbook/en/latest/multiple_databases.html
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
Kaia
Is there guide or link on GitHub how to implement comments with infinite replies using closure table in Django?
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
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