Anonymous
Hey guy is their any way building fb/insta like apps by only using python for backend
Anonymous
??
Anonymous
Never heard of it
Anonymous
Ohk got you
George
hi people, i have just downloaded one of the best manuals for django @Inchidi would you upload it to @pythonres ?
George
or something
Ricardo D
OMG 😱
Mirco
Drf
Django Rest Framework
AssyrianPride
yo guys
AssyrianPride
i need something but i cn't manage to get it lul
AssyrianPride
can someone help me?
Mirco
Explain your "something" pls
Bekzod
money?
Bhupesh
George
or gentoo compiled
AssyrianPride
@iFlare3G
AssyrianPride
I'm trying to get my ps4 api , but i can't manage to get it
George
I'm trying to get my ps4 api , but i can't manage to get it
is it django related? because i guess it is offtopic
Maz
drugs
😂
AssyrianPride
people told me i can get it with django
AssyrianPride
so idk
George
Django unchained maybe
George
"Gimme tha api of the ps4 you damn white slavists"
Mirco
people told me i can get it with django
U can use Python requests module to call your apis
Fayeq
Who work with xhtml2pdf !? And how to change the language to persian in xhtml2pdf using django
Fayeq
!?
Mirco
Which is better BTW react and Vue to work with django
Mmm I don't think there are differences about best fit for Django You should study them and choose which one is better than the other one or read articles, listen to what more expert devs can suggest you
Rajjix
I’ll say react just because i haven’t used vue, but so far react’s been pretty easy to understand
Bekzod
You dont need to know webpack or other stuff just vue and vuex vuejs.org
Mirco
Yup, exactly what I've tried to say above It's about dev's preference At the end of the story, both can talk to Django by fetching apis
Jimmies San
react need api
Jimmies San
vue can be on api or templated
Jimmies San
"i check it twice"
George
Good day, How do i access a field in django admin while overwriting a form? I am adding a field in django admin which is not in database, so i made a custom form, but obviously the value of my "virtual field" does not appear. I just need a way to set the value of the CharField that i inserted. This is my code: class SolarPlantForm(forms.ModelForm): other_tracking_tech = forms.CharField(max_length=20,required=False,label="If other") class Meta: model = PowerPlant fields = ['tracking_tech', 'other_tracking_tech',] def __init__(self, *args, **kwargs): super(SolarPlantForm, self).__init__(*args, **kwargs)
Mirco
:)
😀
George
😀
Not really useful but ty
George
I got save overriden already
Mirco
Not really useful but ty
have you tried to specify that field into fieldsets of ModelAdmin ?
George
have you tried to specify that field into fieldsets of ModelAdmin ?
no, i don't know what fieldsets are but i resolved my problem like this
George
https://pastebin.com/S2AZe3V8
George
https://pastebin.com/S2AZe3V8
basically, first i init the form, then i populate the form if the values exist then i override the save
Mirco
I talked about this above check it out if help ya to write less code
George
i tried, but that didn't work propperly for me :/
George
ty
Mirco
Ook 😀 yw
George
i also managed to solve an override problem with another overriden save that had to save also the foreign key item that changed
dhelbegor
Hi everyone, can anyone help me with a question here please? I have a field date, how can I parse this field to check if the user has placed a valid date? example: if the user places a valid date ('2018/11/12'), return it in the filter If the user places a string in the date field as 'sss', return None instead i'm getting this value error: [u"'deu pau' value has an inv \ xe1lid date format. It must be in the format AAAA-MM-DD."]
Mirco
Why do you allow users to place anything to that field ?
Rajjix
maybe a default = None if using regex validator in the models directly
dhelbegor
Mirco
Democracy 😛
Danger democracy 😂
Mirco
how can i limit this field on forms?
How have you defined your field inside your model and form ?
dhelbegor
in my forms data_criacao__date__gte = forms.DateField(label=u"Data início", widget=AdminDateWidget(attrs={'onblur': 'this.form.submit();'}), required=False) in my models data_criacao = models.DateTimeField(verbose_name=u'Data de Criação', auto_now_add=True)
Rajjix
i’m doing a shipment service, clients interact with my api (django) through a telegram bot i’m deploying, question is should i use telegram payments or should i let my api handle that ? I’m just concerned about payment data being sent from my bot to my api being compromised, don’t forget the shipment services that have to be paid for as well, which i will register on my api
Rajjix
Never still used TG Payments API but have you found some differences about handling payment with telegram or Django ?
With bots it’s pretty straight forward with minimal configuration u just add a payment method with the bot father and most of the work will be handled, i’ll post updates about my findings too many things to handle atm.shippings tb api and django api 🤯
George
Hi, all datepickers are broken in django 2.1
Mirco
Good 😂
Anonymous
Hey does django provides payment gateway too ?
George
For real?
Yes, they have problems with a renderer parameter