Anonymous
Hey guy is their any way building fb/insta like apps by only using python for backend
Mirco
Anonymous
Anonymous
??
Anonymous
Never heard of it
Anonymous
Ohk got you
Anonymous
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
George
or gentoo compiled
AssyrianPride
@iFlare3G
AssyrianPride
I'm trying to get my ps4 api , but i can't manage to get it
George
Maz
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"
Jimmies San
Fayeq
Who work with xhtml2pdf !?
And how to change the language to persian in xhtml2pdf using django
Fayeq
!?
Anonymous
Mirco
Bekzod
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
Rajjix
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
inchidi
George
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
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)
have a look here
George
Mirco
George
😀
Not really useful but ty
George
I got save overriden already
George
https://pastebin.com/S2AZe3V8
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
Rajjix
maybe a default = None if using regex validator in the models directly
Rajjix
dhelbegor
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
Mirco
Mirco
dhelbegor
Mirco
Mirco
George
Hi, all datepickers are broken in django 2.1
Mirco
Good 😂
Anonymous
Anonymous
Hey does django provides payment gateway too ?
George
For real?
Yes, they have problems with a renderer parameter