Alex
imho - sqlite suits very well
Charly
For that it doesn't matter, it's going to be the same on Django side
Charly
It's a simple project, why do you say is weak
HRITIK
I thought Alex asked me to send a photo actually at first time when he tagged me I didn't send him a photo
Alex
mysql and postgres are both big mature DB servers. You don't need to use them right from the start, unless you're planing some scaling
Alex
I thought Alex asked me to send a photo actually at first time when he tagged me I didn't send him a photo
I wrote "don't". In english it is short from do not. There is no way I could explain it more straight
HRITIK
Why did you write when I didn't send you photo at that te
Alex
Why did you write when I didn't send you photo at that te
I don't want to argue with you. Don't means exactly it - don't
Charly
And I said use whatever if is something simple
Charly
Sorry no, but you can sear it on youtube directly
Alex
Actually there are django examples in docker's doc itself https://docs.docker.com/samples/django/
Charly
then I can't help you
Ted
Hi so want to make an sentiment analysis based off people's thoughts on a service in a bank... At the moment I've been searching using Sentiment analysis web app using django and all I'm getting is either Twitter sentiment analyzers and food recipes rating analyzer.. I would like help just to search for the sentiment analysis web app or something in relation to customer bank services
HamidReza Fekri
hello I have user model that can have many address these addresses has fk to user model I made form for address that only logged in users can have access to it but in form i can not say this form is for logged in user so i can't create address how can I handle it??????
HamidReza Fekri
You can use the init method in your forms
can you say what exactly search in google
Kenechi
can you say what exactly search in google
I don't understand what you're talking about
Kenechi
But if you use init method in your forms, you'll be able to write the conditions for authenticated user
Kenechi
Anonymous
how to make a date time filed in django models so that it take millsec also as a timestamp
Optimus
In django is it possible to push multiple file for a single object .
Pavel
Hello. How to use Left function on subquery? I want to do something like that annotate(a=Left(Subquery(...).values("field")[:1], 1) But it doesn't work
HamidReza Fekri
def form_valid(self, form): address = form.save(commit=False) print(self.request.user.id) address.customer = Customer.objects.get(user_ptr_id= self.request.user.id) address.save() return reverse_lazy('customer:profile')
HamidReza Fekri
def form_valid(self, form): address = form.save(commit=False) print(self.request.user.id) address.customer = Customer.objects.get(user_ptr_id= self.request.user.id) address.save() return reverse_lazy('customer:profile')
hello I have Address model that has fk to Customer model I made model form for Address and in class view I gave this method to get logged in Customer id but Its not working
Sanjarbek
Hello. I need help. Who is know create telegram bot. In python
Muhammadamin
Guys Who did do comments for post own project if you did, can you send me code in github, I need to use comments into class generic views
HamidReza Fekri
Paste the code of your model please
class Address(BaseModel): country = models.CharField(max_length=50, verbose_name=_('country')) province = models.CharField(max_length=50, verbose_name=_('province')) city = models.CharField(max_length=50, verbose_name=_('city')) postal_address = models.CharField(max_length=250, verbose_name=_('postal address')) customer = models.ForeignKey('Customer', on_delete=models.CASCADE)
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Hi everyone Can anyone suggest a source for implementing machine learning in Django?
fateme
hi 👋🏻 wich one do you prefer guys ? modelviewsets or genericviewsets ? and Why ?
fateme
as always it depends on the use case
so can you explain me which use case is good for wich viewset ?
Mirco
so can you explain me which use case is good for wich viewset ?
you have a model, you wanna have a CRUD API for it so create, read, update, delete then you can use the ModelViewset and you will everything in place with a couple lines of code
Alex
Hi everyone Can anyone suggest a source for implementing machine learning in Django?
Django is a backend framework and is agnostic to whatever ML library you are using.
Anshu
Use django_cors_header
Raj
Hi all, I am experiencing 500 error when I tried to open my project in GitLab. What that does mean ?
Alex
Hi all, I am experiencing 500 error when I tried to open my project in GitLab. What that does mean ?
It means that you have an error in your code. Check out your app logs
Raj
It means that you have an error in your code. Check out your app logs
All repos are giving me the same error (500) in my account.
Alex
djigit0s
Hi help with values () method of queryset. When displaying related fields, the data is repeated, can this data be grouped? Example here https://gist.github.com/djigit0s/29f33118cf92a955e3b0ac25d594aaed https://stackoverflow.com/questions/68758593/django-values-method-related-objects-in-list#comment121520861_68758593
HRITIK
Can we convert website into android application
Mirco
HRITIK
I found few videos which are claiming it
HRITIK
But I am not confirm whether specifically django based website can be converted into android apps
Mirco
But I am not confirm whether specifically django based website can be converted into android apps
Again, you have to write the app by yourself and Django will serve the backend
HRITIK
Ok
Alex
But I am not confirm whether specifically django based website can be converted into android apps
That's unrelated to django, again. There are js libraries that can make your site kinda like an app. But it's not replacement for a native app.
Alex
Sad to hear it. Any tracebacks?
Suraj
Anyone suggest me python learning material
Suraj
Any YouTube channel for better understanding
Meraj
I have labels arent unique error anyone can help!?
Anonymous
Hi how to decrypt django password?
Alex
Hi how to decrypt django password?
how did you encrypt it?
Alex
And why do you want to do it?
Anonymous
I used user.set_password(password)
Anonymous
@alkalit
Alex
I used user.set_password(password)
and why do you want to decrypt it?
Прекрасное
I am using the 2.2.6 version of django in the project and I don’t know how it would be more correct from django.db.models(django.db.models.fields import FieldDoesNotExist or from django.core.exceptions import FieldDoesNotExist ?
Anonymous
and why do you want to decrypt it?
I just want to send password in email to user
Anonymous
Can we do that? @alkalit
Jack
I'm can here talking/writing on Cyrillic?