Arman
What are you using ? Poetry ?
even vscode recognize him
Ahmed
Hi guys i have hotel managment system project and in that project i have mutiple apps and in guest app i have some fields it alreay set as not null in table schema and the project is live in production so all db tables it is already marked as migrated and i chnage those fields in models to be null=True and blank=True and i save the models chnages and then i run the commands for makemigrations <my_app_name> It show no chnages detected and then i run migrate and it is not shows reflect in schema of my table the fields are still not null , then i try this horriable solution where i drop database completely and save everything and run migrate command agian it works fine but all data gone , all these i have done locally but my manager want me to make these fields optional and accept null and blank values in production and i got scary as any aingle mistake i will break production and lose data So does any one have experince with django deployed aws ec2 instance and how to chnages fields constraint to be null and blank true , without deleting db or losing database , what is most save way to do it , And if someone will ask me wether app is install in installs_apps in settings yes it is there and everything fine except it is not detecting any changes , please community members i need you help
Arman
What are you using ? Poetry ?
any idea dear Mirco ?
Mirco
any idea dear Mirco ?
The only thing is that neither venv or poetry are well configured and active while you run Django Globally is always a bad idea
Markus
guys, how i can check if object exist after requests with async orm? is_slide_exist =await Slider.objects.filter(priority=step - 1).afirst().exists() it's return error
Boubacar mo Abdoulaye
Hi I need a Django rest framework API pdf cours or best YouTube Channel
Markus
is_slide_exist = (await Slider.objects.filter(priority=step - 1).afirst()).exists()
(await Slider.objects.filter(priority=step+1).afirst()).exists() AttributeError: 'Slider' object has no attribute 'exists
Maxim
(await Slider.objects.filter(priority=step+1).afirst()).exists() AttributeError: 'Slider' object has no attribute 'exists
exists is QuerySet method, not model method https://docs.djangoproject.com/en/5.0/ref/models/querysets/#django.db.models.query.QuerySet.exists
Maxim
maybe i need use aexists()¶
it's up to you is_slide_exist = Slider.objects.filter(priority=step - 1).exists() or is_slide_exist = await Slider.objects.filter(priority=step - 1).aexists()
Markus
it's up to you is_slide_exist = Slider.objects.filter(priority=step - 1).exists() or is_slide_exist = await Slider.objects.filter(priority=step - 1).aexists()
and last request to help 😅 how i can rewrite this request on async specialties = await Specialty.objects.all().order_by('priority').only("title") ?
Maxim
and last request to help 😅 how i can rewrite this request on async specialties = await Specialty.objects.all().order_by('priority').only("title") ?
you should 1. open the documentation 2. before trying to create asynchronous requests, learn how to create correct ones
Markus
you should 1. open the documentation 2. before trying to create asynchronous requests, learn how to create correct ones
i try typing and search on this page, but found only part of i need. https://docs.djangoproject.com/en/5.0/ref/models/querysets/#django.db.models.query.QuerySet.exists
Markus
but okk thanks for previous help
Willi@m.
Anyone who knows a document that i can learn about follow and unfollow logic please help.
.
I need to integrate a natural language searching functionality on my Django application’s database. Please suggest if there’s a Django package that can set this up quickly.
northern
Documentation for pin_message
-
Mydropdown button is not working anyone help me
Rose
Documentation for pin_message
What are you talking about?
Rose
Mydropdown button is not working anyone help me
Impossible to help without details.
All
BUT... Its learn django 3.2 And i see that latest django versions is 5 !!!
Late response. But 3.2 version is fine and stable.
All
Is this have a problem or no i just start with this ? :)
According to django documentation, yea. Go for it
Anonymous
anyone know how to host django website on darkweb
Rose
anyone know how to host django website on darkweb
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so delete your question here and move to the @PythonOfftopic group and ask there.
Sam
Mind me asking, I’m kind of a beginner in development but I just recently finished a Django project and learned that my client had paid for a domain hosting with a service provider that uses cpanel and it doesn’t have applications installer like Python set up or a bash terminal so I can’t really set the environment like installing dependencies and launching the site… I’m limited to just file uploads so does anyone know of a way to work around this
Charly
A VPS preferred
Eric
Mind me asking, I’m kind of a beginner in development but I just recently finished a Django project and learned that my client had paid for a domain hosting with a service provider that uses cpanel and it doesn’t have applications installer like Python set up or a bash terminal so I can’t really set the environment like installing dependencies and launching the site… I’m limited to just file uploads so does anyone know of a way to work around this
You'll not be able to use the cpanel hosting. I would immediately transfer the domain to something like Namecheap or Porkbun, set up Cloudflare for that domain, pay 5 US dollars for a DigitalOcean VPS droplet, or use a free option like 1 year of AWS or 90 days of GCP. (the reason for transferring the domain is you should never couple your domain with your hosting package)
Shan
I have thousands record of data, it take time 1 seconds for 1 record of data.
Shan
It's slow performance
Shan
Which method easy to track why its taking lot of time to load
Anurag K
Error establishing ssh connection to your instance What to do then
Rose
User Khadijah has 1/3 warnings; be careful! Reason: crosspost and rule #10 violantion
Arman
Question regarding Django Admin Panel, is default panel and its configuration enough in order to administrate and serve client by his self? I mean in commercial project do you adjust some other features to this panel and if yes maybe you know some good material regarding this ?
Lords
I team I looking to build a small search engine 🤣 with django drf and angular
Lords
I need a logic if you are typing some thing in search engine you will find a relivent data with some frontend widget how it is rendering how that logic will work
Lords
in-app search ?
Yeah from frontend if we searched apple it will show some widget and data right
Alex
Yeah from frontend if we searched apple it will show some widget and data right
create a model with tags and link to where you want to redirect and show the searched tag in the result or do a body search and redirect to the URL attached to it.
Alex
Can you explain little bit more
either make a model which contains all the tags the user might search for, or add a description in which you can search keywords and return the filtered account.
Lords
If you have code snippet can you provide
All
Guys. Why my cleaned_data is not accessed Pylance ? It's coming in grey
All
from django import forms class StudentRegistration(forms.Form): # name = forms.CharField(min_length=5, empty_value='dynamo') name = forms.CharField() email = forms.EmailField() def clean(self): cleaned_data = super().clean() valname = self.cleaned_data['name'] valemail = self.cleaned_data['email'] if len(valname)<4: raise forms.ValidationError('name should be more than 4 characters')
Rose
User Jiya has 1/3 warnings; be careful! Reason: rule #10 violation
AB
Hello guys Is Django good for Api to large project
Rose
User @​akash has 1/3 warnings; be careful! Reason: speak english
Tareem
Hi! Can you recommend a good Django course?
Rose
Hi! Can you recommend a good Django course?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial (https://docs.djangoproject.com/en/dev/intro/tutorial01/) * Tutorial from MDN (https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django) * Tutorial from django-girls (https://tutorial.djangogirls.org/en/)
Tareem
I need a video course instead of documentation
Tareem
like YouTube tutorial or Udemy
Анатолий
just find any course that seems useful to you, and go through it, repeating all the actions from videos
Анатолий
it works good enough :)
Charly
like YouTube tutorial or Udemy
So you can use the search on these sites, sort by views/ratings.
Me
Can you recommend me a Django E-commerce website system?
Me
I mean a course
Charly
I mean a course
Nah choose whatever you find. There arent a lot for that specific task.
Satya
Thanks for all
Code with Harry python playlist try it
Karan
Code with Harry python playlist try it
It is in hindi i think. Made by indian..
dado
everyone is here, what did you expect?
Rose
everyone is here, what did you expect?
What are you talking about?
Tito
I have a problem Errno 13 permition denied
Tito
When i try to upload an image
Anonymous
Check permission
Tito
How
You
Hello Sir, in Swagar, why is that part of the identity card where we put the token not available for me? What should I have done?
Ilham
Hi. I have a problem. a href depends on the div. How much shipping is worth this dive? Or how can I use the value in for outside of the for?
Yas
Does anyone want to learn Django with me?