webcam to rtmp server

2020-03-27 Thread Suraj Thapa FC
hey guys..

i want to broadcast my webcam stream from browser to an rtmp server...

i had use obs and its working fine...

any ideas how can i do this in my website..

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPjsHcEHZ%3DgYNeys_n0xv-wdpZhCOjz4DFJ5ajj2VH4mXy8jOQ%40mail.gmail.com.


Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Man this is a great suggestion ..
But first i think i am going to recieve all donates in one account , then
transfer it using this service ..

On Sat, 28 Mar 2020, 5:03 am o1bigtenor,  wrote:

> On Fri, Mar 27, 2020 at 6:51 PM Motaz Hejaze  wrote:
> >
> > Mike thats exactly what i want to do...
> >
> > I want to allow users to donate to many bank accounts ..
> >
> > I dont know how to do this ?
> > Also i dont know if stripe is the right tool for this ..
> >
> > On Sat, 28 Mar 2020, 1:15 am Mike Dewhirst, 
> wrote:
> >>
> >> Yes. That is how it works. Any customer uses any card or pretty much
> any other payment mechanism and Stripe gets the money and sends it your
> bank - after taking its commission.
> >>
> >> If you want the money to go to some other bank account depending on the
> transaction participants or the product involved you are out of luck.
> Stripe policy is to prevent such transfers.
> >>
> >> I wanted Stripe to send the proceeds to my own bank accounts in
> different countries depending on the currency used for the sale - in other
> words I wanted no currency exchanges - but they insist on converting
> everything into AUD at their own exchange rate and paying it into my home
> bank account.
> >>
>
> An entity called 'Transferwise' might be useful.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPpdf5-mhf3G%3DT8FkymAa9CkXb255c6u_t5EKTG8BhnFkDzx6A%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-dHajih%2BQ4uXwQZ6Dc4DdzaMWqC4n%2Bgp5NWQeee%3D73Q_A%40mail.gmail.com.


Re: Online money transfer

2020-03-27 Thread o1bigtenor
On Fri, Mar 27, 2020 at 6:51 PM Motaz Hejaze  wrote:
>
> Mike thats exactly what i want to do...
>
> I want to allow users to donate to many bank accounts ..
>
> I dont know how to do this ?
> Also i dont know if stripe is the right tool for this ..
>
> On Sat, 28 Mar 2020, 1:15 am Mike Dewhirst,  wrote:
>>
>> Yes. That is how it works. Any customer uses any card or pretty much any 
>> other payment mechanism and Stripe gets the money and sends it your bank - 
>> after taking its commission.
>>
>> If you want the money to go to some other bank account depending on the 
>> transaction participants or the product involved you are out of luck. Stripe 
>> policy is to prevent such transfers.
>>
>> I wanted Stripe to send the proceeds to my own bank accounts in different 
>> countries depending on the currency used for the sale - in other words I 
>> wanted no currency exchanges - but they insist on converting everything into 
>> AUD at their own exchange rate and paying it into my home bank account.
>>

An entity called 'Transferwise' might be useful.

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPpdf5-mhf3G%3DT8FkymAa9CkXb255c6u_t5EKTG8BhnFkDzx6A%40mail.gmail.com.


Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Good idea i will talk with them .. thanks mike

On Sat, 28 Mar 2020, 3:22 am Mike Dewhirst,  wrote:

> On 28/03/2020 10:50 am, Motaz Hejaze wrote:
> > Mike thats exactly what i want to do...
> >
> > I want to allow users to donate to many bank accounts ..
> >
> > I dont know how to do this ?
> > Also i dont know if stripe is the right tool for this ..
>
> I strongly recommend that you talk to Stripe directly and explain what
> you want to do.
>
> There are all sorts of international controls on transferring funds. The
> three major issues are preventing tax crime, preventing money-laundering
> and starving terrorists.
>
> All you need to do is negotiate your way past all the regulations in the
> different countries and then persuade Stripe to make a policy exception
> for your project and your way is clear.
>
> Good luck
>
> Mike
>
> >
> > On Sat, 28 Mar 2020, 1:15 am Mike Dewhirst,  > > wrote:
> >
> > Yes. That is how it works. Any customer uses any card or pretty
> > much any other payment mechanism and Stripe gets the money and
> > sends it your bank - after taking its commission.
> >
> > If you want the money to go to some other bank account depending
> > on the transaction participants or the product involved you are
> > out of luck. Stripe policy is to prevent such transfers.
> >
> > I wanted Stripe to send the proceeds to my own bank accounts in
> > different countries depending on the currency used for the sale -
> > in other words I wanted no currency exchanges - but they insist on
> > converting everything into AUD at their own exchange rate and
> > paying it into my home bank account.
> >
> >
> >  Original message 
> > From: Motaz Hejaze  > >
> > Date: 28/3/20 04:32 (GMT+10:00)
> > To: django-users@googlegroups.com
> > 
> > Subject: Re: Online money transfer
> >
> > Does stripe support transaction from a visa to a bank account?
> >
> > On Fri, 27 Mar 2020, 7:02 pm Andrew C.,  > > wrote:
> >
> > Stripe is the best imo
> >
> > On Fri, Mar 27, 2020 at 12:49 PM Motaz Hejaze
> > mailto:trapper...@gmail.com>> wrote:
> >
> > Any ideas guys
> >
> > On Fri, 27 Mar 2020, 3:07 pm Motaz Hejaze,
> > mailto:trapper...@gmail.com>> wrote:
> >
> > Hi friends ,
> > What is the best and easiest way to implement money
> > transfer from visa to visa and from visa to bank
> > account ??
> > And how to link it with user accounts ..
> >
> > --
> > You received this message because you are subscribed
> > to the Google Groups "Django users" group.
> > To unsubscribe from this group and stop receiving
> > emails from it, send an email to
> > django-users+unsubscr...@googlegroups.com
> > .
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com
> .
> >
> > --
> > You received this message because you are subscribed to
> > the Google Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails
> > from it, send an email to
> > django-users+unsubscr...@googlegroups.com
> > .
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com?utm_medium=email_source=footer
> >.
> >
> > --
> > You received this message because you are subscribed to the
> > Google Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from
> > it, send an email to django-users+unsubscr...@googlegroups.com
> > .
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/CAJVmkNnWUn61JPg%2BKQX-EdESXF-e%3D27%3DMqU%3DiYZK916_%3DKJTkg%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/django-users/CAJVmkNnWUn61JPg%2BKQX-EdESXF-e%3D27%3DMqU%3DiYZK916_%3DKJTkg%40mail.gmail.com?utm_medium=email_source=footer
> >.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> >   

Re: Online money transfer

2020-03-27 Thread Mike Dewhirst

On 28/03/2020 10:50 am, Motaz Hejaze wrote:

Mike thats exactly what i want to do...

I want to allow users to donate to many bank accounts ..

I dont know how to do this ?
Also i dont know if stripe is the right tool for this ..


I strongly recommend that you talk to Stripe directly and explain what 
you want to do.


There are all sorts of international controls on transferring funds. The 
three major issues are preventing tax crime, preventing money-laundering 
and starving terrorists.


All you need to do is negotiate your way past all the regulations in the 
different countries and then persuade Stripe to make a policy exception 
for your project and your way is clear.


Good luck

Mike



On Sat, 28 Mar 2020, 1:15 am Mike Dewhirst, > wrote:


Yes. That is how it works. Any customer uses any card or pretty
much any other payment mechanism and Stripe gets the money and
sends it your bank - after taking its commission.

If you want the money to go to some other bank account depending
on the transaction participants or the product involved you are
out of luck. Stripe policy is to prevent such transfers.

I wanted Stripe to send the proceeds to my own bank accounts in
different countries depending on the currency used for the sale -
in other words I wanted no currency exchanges - but they insist on
converting everything into AUD at their own exchange rate and
paying it into my home bank account.


 Original message 
From: Motaz Hejaze mailto:trapper...@gmail.com>>
Date: 28/3/20 04:32 (GMT+10:00)
To: django-users@googlegroups.com

Subject: Re: Online money transfer

Does stripe support transaction from a visa to a bank account?

On Fri, 27 Mar 2020, 7:02 pm Andrew C., mailto:andreke12...@gmail.com>> wrote:

Stripe is the best imo

On Fri, Mar 27, 2020 at 12:49 PM Motaz Hejaze
mailto:trapper...@gmail.com>> wrote:

Any ideas guys

On Fri, 27 Mar 2020, 3:07 pm Motaz Hejaze,
mailto:trapper...@gmail.com>> wrote:

Hi friends ,
What is the best and easiest way to implement money
transfer from visa to visa and from visa to bank
account ??
And how to link it with user accounts ..

-- 
You received this message because you are subscribed

to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving
emails from it, send an email to
django-users+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com.

-- 
You received this message because you are subscribed to

the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
django-users+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com

.

-- 
You received this message because you are subscribed to the

Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to django-users+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAJVmkNnWUn61JPg%2BKQX-EdESXF-e%3D27%3DMqU%3DiYZK916_%3DKJTkg%40mail.gmail.com

.

-- 
You received this message because you are subscribed to the Google

Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to django-users+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAHV4E-dR9eguNEv09tPAizZg6t4X%2BenRiffkUgDr9H0c2KC3xw%40mail.gmail.com


Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Mike thats exactly what i want to do...

I want to allow users to donate to many bank accounts ..

I dont know how to do this ?
Also i dont know if stripe is the right tool for this ..

On Sat, 28 Mar 2020, 1:15 am Mike Dewhirst,  wrote:

> Yes. That is how it works. Any customer uses any card or pretty much any
> other payment mechanism and Stripe gets the money and sends it your bank -
> after taking its commission.
>
> If you want the money to go to some other bank account depending on the
> transaction participants or the product involved you are out of luck.
> Stripe policy is to prevent such transfers.
>
> I wanted Stripe to send the proceeds to my own bank accounts in different
> countries depending on the currency used for the sale - in other words I
> wanted no currency exchanges - but they insist on converting everything
> into AUD at their own exchange rate and paying it into my home bank
> account.
>
>
>  Original message 
> From: Motaz Hejaze 
> Date: 28/3/20 04:32 (GMT+10:00)
> To: django-users@googlegroups.com
> Subject: Re: Online money transfer
>
> Does stripe support transaction from a visa to a bank account?
>
> On Fri, 27 Mar 2020, 7:02 pm Andrew C.,  wrote:
>
>> Stripe is the best imo
>>
>> On Fri, Mar 27, 2020 at 12:49 PM Motaz Hejaze 
>> wrote:
>>
>>> Any ideas guys
>>>
>>> On Fri, 27 Mar 2020, 3:07 pm Motaz Hejaze,  wrote:
>>>
 Hi friends ,
 What is the best and easiest way to implement money transfer from visa
 to visa and from visa to bank account ??
 And how to link it with user accounts ..

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJVmkNnWUn61JPg%2BKQX-EdESXF-e%3D27%3DMqU%3DiYZK916_%3DKJTkg%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-dR9eguNEv09tPAizZg6t4X%2BenRiffkUgDr9H0c2KC3xw%40mail.gmail.com
> 
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5e7e8910.1c69fb81.e708b.a4a1SMTPIN_ADDED_MISSING%40gmr-mx.google.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-dLJ3Zg%2BV44_cBH8DYdhRSfrn%2BELqs97QOrFktgWqu%2BZw%40mail.gmail.com.


Re: Online money transfer

2020-03-27 Thread Mike Dewhirst
Yes. That is how it works. Any customer uses any card or pretty much any other 
payment mechanism and Stripe gets the money and sends it your bank - after 
taking its commission.If you want the money to go to some other bank account 
depending on the transaction participants or the product involved you are out 
of luck. Stripe policy is to prevent such transfers.I wanted Stripe to send the 
proceeds to my own bank accounts in different countries depending on the 
currency used for the sale - in other words I wanted no currency exchanges - 
but they insist on converting everything into AUD at their own exchange rate 
and paying it into my home bank account. 
 Original message From: Motaz Hejaze  
Date: 28/3/20  04:32  (GMT+10:00) To: django-users@googlegroups.com Subject: 
Re: Online money transfer Does stripe support transaction from a visa to a bank 
account?On Fri, 27 Mar 2020, 7:02 pm Andrew C.,  
wrote:Stripe is the best imoOn Fri, Mar 27, 2020 at 12:49 PM Motaz Hejaze 
 wrote:Any ideas guysOn Fri, 27 Mar 2020, 3:07 pm Motaz 
Hejaze,  wrote:Hi friends ,
What is the best and easiest way to implement money transfer from visa to visa 
and from visa to bank account ??
And how to link it with user accounts .. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com.




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com.




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJVmkNnWUn61JPg%2BKQX-EdESXF-e%3D27%3DMqU%3DiYZK916_%3DKJTkg%40mail.gmail.com.




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-dR9eguNEv09tPAizZg6t4X%2BenRiffkUgDr9H0c2KC3xw%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5e7e8910.1c69fb81.e708b.a4a1SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: i am using database postgressql and after migrate my data is not displaying in the database

2020-03-27 Thread Ing.Daniel Bojorge
Could you send some screen of your view, model and template?


Dios L@s Bendiga

Saludos,



[image: --]

daniel.bojorge
[image: http://]about.me/daniel.bojorge

 [image: snake]*Curso Desarrollo Web con Python usando Django 2.2 Para
Principiantes con Descuento 95%    *[image:
snake]
*WebService RestFul API con Python usando Django RestFrameWork*

*Fácil Replicación de Cualquier Base de Datos y/o Sistema Operativo*

*Programación en Capas (Web y Escritorio)* 
Mi Blog 
Nicaragua

"Si ustedes permanecen unidos a mí, y si permanecen fieles a mis
enseñanzas, pidan lo que quieran y se les dará.
(Juan 15:7 DHH)
Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR.
(Jeremías 17:7 RV2000)




El vie., 27 mar. 2020 a las 14:11, Jyotika Berry ()
escribió:

> hi all ,
> I am new to Django so created a small application to understand the flow ..
> till now everything good now I have created the database connection and
> when I am trying to pass the data from frontend its not displaying any
> entry at the database
> can anybody help me what could be the reason it is not displaying the data
> in the database ...
> no error is displaying rather all the information is displaying in the
> terminal rather going to the terminal
>
>
> TIA
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3b4666f7-ba22-43d5-9dd9-580872d4faa5%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQeQjbgLcJbWrBOmOjFJZ_2T0bADofuD5tZ_HtYyPcwZcrTjQ%40mail.gmail.com.


Re: i am using database postgressql and after migrate my data is not displaying in the database

2020-03-27 Thread Luka Nik
You should provide some more info.
You could be messing your models.py file if the database contains no data.
Or it's just frontend problems

On Fri, 27 Mar 2020, 9:10 pm Jyotika Berry,  wrote:

> hi all ,
> I am new to Django so created a small application to understand the flow ..
> till now everything good now I have created the database connection and
> when I am trying to pass the data from frontend its not displaying any
> entry at the database
> can anybody help me what could be the reason it is not displaying the data
> in the database ...
> no error is displaying rather all the information is displaying in the
> terminal rather going to the terminal
>
>
> TIA
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3b4666f7-ba22-43d5-9dd9-580872d4faa5%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMqindv9CKUWnPSPzSQcd%3DigS556hWWz3W70cHtp6wBSjKCz6Q%40mail.gmail.com.


i am using database postgressql and after migrate my data is not displaying in the database

2020-03-27 Thread Jyotika Berry
hi all ,
I am new to Django so created a small application to understand the flow ..
till now everything good now I have created the database connection and 
when I am trying to pass the data from frontend its not displaying any 
entry at the database 
can anybody help me what could be the reason it is not displaying the data 
in the database ...
no error is displaying rather all the information is displaying in the 
terminal rather going to the terminal 


TIA 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3b4666f7-ba22-43d5-9dd9-580872d4faa5%40googlegroups.com.


Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-27 Thread Yves de Champlain
J'abonde dans le sens de Simon, mais il me semble y avoir une confusion 
entre le code de langage 'fr' et le code de locale 'fr_FR'

J'en profite pour soulever la question parce que même si mon projet 
fonctionne (et que j'ai fait le tour de la documentation) ce point dans 
Django demeure obscur pour moi.

yves


Le jeudi 26 mars 2020 22:46:40 UTC-4, Simon Charette a écrit :
>
> La documentation de Django est disponible en Français.
>
> Ce message d'erreur est traduit dans cette section: 
> https://docs.djangoproject.com/fr/3.0/ref/checks/#translation
>
> Tu as deux choix:
> 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué
> 2. Définit ton setting LANGUAGE_CODE = 'fr' plutôt que 'fr-fr'
>
> Simon
>
> Le jeudi 26 mars 2020 21:47:11 UTC-4, Anselme SERI a écrit :
>>
>> Je suis un nouveau dans le développement python et je teste actuellement 
>> Django.
>> Il m'est impossible d'utiliser le language_code 'fr-fr' dans django 3.0.4.
>> Le message d'erreur qui s'affiche dans le terminal est le suivant :
>>
>> "ERRORS:
>> ?: (translation.E004) You have provided a value for the LANGUAGE_CODE 
>> setting that is not in the LANGUAGES setting."
>>
>> J'ai fouiner sur internet à la recherche de solution sans succès.
>>
>> Comment puis-je travailler avec une interface en français. Quelqu'un 
>> pourrait m'aider?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3d8bc629-6876-4bc7-b8c6-b01c91b3aa57%40googlegroups.com.


Re: Retaining text in search input boxes

2020-03-27 Thread Dick Arnold
Sorry about the amount of time it has taken me respond to your post.  I 
have been in the hospital.
I have been able to fix everything except the drop down boxes.  I'll show 
some code first.


  
Contact Type
  
  

  
  P Player
  V Vendor

  
  


I've been able to use the 'value' attribute to retain the search option 
that was chosen.  The field is actually defined as 'character' with a max 
length of 1.  This technique does not work for drop down lists.  The input 
field (box) still contains nothing.  I erased the 'hidden' word as I 
couldn't decide what it did.  It created a second input field (box) below 
the original box, so now I have two input boxes for this operation.  The 
second box does show the correct, one character value that was entered.  
But is need to put it in the first box, not the second. 

I tried another technique, but it does the same thing.  Here is that code 
(it's for a different drop down list):


  
Level of Play
  
  


  A Advanced
  N Novice  
  O Open
  U Unknown 

  
  

  
function retainLParm() {
  document.getElementById("ltype_id").defaultValue="{{ltype_id}}";
} 
  

Have I missed something that was In your post?  I've read and tried every 
thing I could.  I'm getting very frustrated.  The problem is...  I'm a 
mainframe programmer.  Python and Django and HTML and CSS are all brand new 
for me.  I'm getting better though.

Thanks for any help.

On Thursday, February 20, 2020 at 4:55:23 AM UTC-6, Mr Guro wrote:
>
> For drop downs use JavaScript script or JQuery to set the value of the 
> value of the selected item.For input use an if on the value if it's 
> populated then the input value is equal to the attribute us you put it 
> .Another option is to use the default on attribute but make it an empty 
> string so you don't have none when attribute is empty .
>
> On Thu, Feb 20, 2020, 12:14 PM Dick Arnold  > wrote:
>
>> I used a value of {{attribute value}}.  so it is nor a fixed value, but 
>> is the value submitted.  Doesn't work well for drop down input fields.  
>> still researching.
>>
>> On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote:
>>>
>>> I have a personnel database which has to be edited to keep it current.
>>> I have created search parameters to find the person to edit.
>>> The exact name of the person is not always known, therefore the name 
>>> field for searching can contain only a few of the characters.  This can 
>>> create a list of several people.
>>> After the search parameters are entered a "Search" button is clicked and 
>>> the output, if any, is displayed in a table.
>>> If the search parameters need to be improved, I want the original 
>>> (current) search argument to be retained in the argument field so I do not 
>>> need to re-type ALL the search parameters, just the ones I want to change.
>>>
>>> I have not been able to find a way to retain the value in the search 
>>> input box,
>>>
>>> Does anyone know how to accomplish this?
>>>
>>> Here's the input for one of the input boxes.
>>>
>>> 
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/77088a26-742b-4bb4-8f2f-b74c5375119d%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3f152d2b-6a10-4c15-af82-c47bb010032a%40googlegroups.com.


Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Does stripe support transaction from a visa to a bank account?

On Fri, 27 Mar 2020, 7:02 pm Andrew C.,  wrote:

> Stripe is the best imo
>
> On Fri, Mar 27, 2020 at 12:49 PM Motaz Hejaze 
> wrote:
>
>> Any ideas guys
>>
>> On Fri, 27 Mar 2020, 3:07 pm Motaz Hejaze,  wrote:
>>
>>> Hi friends ,
>>> What is the best and easiest way to implement money transfer from visa
>>> to visa and from visa to bank account ??
>>> And how to link it with user accounts ..
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJVmkNnWUn61JPg%2BKQX-EdESXF-e%3D27%3DMqU%3DiYZK916_%3DKJTkg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-dR9eguNEv09tPAizZg6t4X%2BenRiffkUgDr9H0c2KC3xw%40mail.gmail.com.


Re: Online money transfer

2020-03-27 Thread Andrew C.
Stripe is the best imo

On Fri, Mar 27, 2020 at 12:49 PM Motaz Hejaze  wrote:

> Any ideas guys
>
> On Fri, 27 Mar 2020, 3:07 pm Motaz Hejaze,  wrote:
>
>> Hi friends ,
>> What is the best and easiest way to implement money transfer from visa to
>> visa and from visa to bank account ??
>> And how to link it with user accounts ..
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJVmkNnWUn61JPg%2BKQX-EdESXF-e%3D27%3DMqU%3DiYZK916_%3DKJTkg%40mail.gmail.com.


Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Any ideas guys

On Fri, 27 Mar 2020, 3:07 pm Motaz Hejaze,  wrote:

> Hi friends ,
> What is the best and easiest way to implement money transfer from visa to
> visa and from visa to bank account ??
> And how to link it with user accounts ..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-fV3YFqR45wORU1%2BLbzE5Aq-JCJto%3DOsEsgN1TzH-UkyA%40mail.gmail.com.


Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-27 Thread Abel Hacking
Test pour l'espagnole voir si ça marche alors il ya un problème (es-es)


Le ven. 27 mars 2020 à 09:16, Laurent Gattegno 
a écrit :

> Essaye juste fr ça devrait être nettement mieux
> Laurent Gattegno
>
> 
>
> Tel 06 86 50 22 92
>
>
> Le ven. 27 mars 2020 à 03:47, Simon Charette  a
> écrit :
>
>> La documentation de Django est disponible en Français.
>>
>> Ce message d'erreur est traduit dans cette section:
>> https://docs.djangoproject.com/fr/3.0/ref/checks/#translation
>>
>> Tu as deux choix:
>> 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué
>> 2. Définit ton setting LANGUAGE_CODE = 'fr' plutôt que 'fr-fr'
>>
>> Simon
>>
>> Le jeudi 26 mars 2020 21:47:11 UTC-4, Anselme SERI a écrit :
>>>
>>> Je suis un nouveau dans le développement python et je teste actuellement
>>> Django.
>>> Il m'est impossible d'utiliser le language_code 'fr-fr' dans django
>>> 3.0.4.
>>> Le message d'erreur qui s'affiche dans le terminal est le suivant :
>>>
>>> "ERRORS:
>>> ?: (translation.E004) You have provided a value for the LANGUAGE_CODE
>>> setting that is not in the LANGUAGES setting."
>>>
>>> J'ai fouiner sur internet à la recherche de solution sans succès.
>>>
>>> Comment puis-je travailler avec une interface en français. Quelqu'un
>>> pourrait m'aider?
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/37a930ed-f975-41c4-b567-ab710bc0a266%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHa%2B34mPnD-QAVCQhkun3o2dE%2BM-_sAx%3Dt42kwqCTr%2BA958Ajw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP_kTvTLLVBLQFg%3DymZ%2BMxLcWVNO604aFa4WObVdF7q018c2PA%40mail.gmail.com.


Re: email": [ "Enter a valid email address." ]

2020-03-27 Thread Integr@te System
Hi Freind,

Plz look back the doc in Emailvalidator and decive your use case:

https://docs.djangoproject.com/en/3.0/ref/validators/#django.core.validators.EmailValidator.whitelist

On Fri, Mar 27, 2020, 18:19 Ben Magnelli  wrote:

>  AUTH_USER_MODEL = 'users.User
>
>
> Yep, I have that in settings.py
>
> In serializers.py if I change EmailField to CharField, it does serialize.
> However, then it’s not really checking if it’s a email. And EmailField
> should work.
>
> class User(AbstractBaseUser, PermissionsMixin):
 email = models.CharField(max_length=256, unique=True)

 Thank you DjangoUsers
>
> On Mar 27, 2020, at 4:49 AM, Motaz Hejaze  wrote:
>
> 
> I think django doesnt recognize your custom user model ..
>
> Did you your app to installed app and put AUTH_USER_MODEL = 'myapp.MyUser'
>
> in settings.py ?
>
> On Fri, 27 Mar 2020, 3:33 am devyen,  wrote:
>
>> Hi
>>
>> Do know how to whitelist an email domain name? It seems odd that I would
>> have to go though an white list all of the main email domains (gmail,
>> protonmail, live, yahoo etc.)
>>
>> Ive been unable to figure it out on my own
>>
>> Thanks,
>>
>>
>>
>> On Sat, Mar 21, 2020 at 4:45 AM Integr@te System <
>> datacentral...@gmail.com> wrote:
>>
>>> Hi Freind,
>>>
>>> Try to set whitelist for your specific domain testing or refer doc for
>>> your case.
>>>
>>>
>>> On Sat, Mar 21, 2020, 03:47 devyen  wrote:
>>>
 Hi,

 I am tying to use the EmailField in my AbstractBaseUser Class see
 below. However the serializer does not recognize any emails as valid (I
 tested with this one, which is clearly valid)

 Can you help me?

 Thank you so much!


 models.py

 class User(AbstractBaseUser, PermissionsMixin):
 email = models.EmailField(max_length=256, unique=True)
 first_name = models.TextField(verbose_name="First Name", blank=True)
 last_name = models.TextField(verbose_name="Last Name", blank=True)
 user_id = models.TextField(unique=True)
 data = JSONField(default=default_data, name="device_data")
 is_staff = models.BooleanField(default=False)
 is_active = models.BooleanField(default=True)
 date_joined = models.DateTimeField(default=timezone.now)

 objects = UserManager()

 USERNAME_FIELD = 'email'

 def __str__(self):
 return self.email

 def get_first_name(self):
 return self.first_name

 def get_last_name(self):
 return self.last_name

 def get_email(self):
 return self.email

 def __unicode__(self):
 return self.email, self.user_id

 def get_user_id(self):
 return self.user_id

 serializers.py

 from rest_framework import serializers
 from .models import User


 class UserSerializer(serializers.ModelSerializer):
 class Meta:
 model = User
 fields = ['email', 'password']


 part of views.py

 class UserRegistration(APIView):
 def post(self, request):
 serializer = UserSerializer(data=request.data)
 if serializer.is_valid():
 print('valid')
 user_object = []
 email = serializer.validated_data['email']
 password = serializer.validated_data['password']
 if "first_name" in serializer.validated_data:
 first_name = serializer.validated_data['first_name']
 user_object.append(first_name)
 else:
 pass
 if "last_name" in serializer.validated_data:
 last_name = serializer.validated_data['last_name']
 user_object.append(last_name)
 else:
 pass

 # serializer.save()
 return Response(user_object, status=status.HTTP_201_CREATED)
 return Response(serializer.errors, 
 status=status.HTTP_400_BAD_REQUEST)


 I send this:

 http -f POST http://127.0.0.1:8000/reg email='k...@k.com', password='pw'

 to receive this error:

 {

 "email": [

 "Enter a valid email address."

 ]

 }

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/bc92176b-7eb2-4e2a-a8a0-215eef7392c7%40googlegroups.com
 
 .

>>> --
>>> You received this message because you are 

Online money transfer

2020-03-27 Thread Motaz Hejaze
Hi friends ,
What is the best and easiest way to implement money transfer from visa to visa 
and from visa to bank account ??
And how to link it with user accounts .. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bc12ecb9-aa36-49bc-ab49-506299bf905c%40googlegroups.com.


Re: email": [ "Enter a valid email address." ]

2020-03-27 Thread Ben Magnelli
>  AUTH_USER_MODEL = 'users.User

Yep, I have that in settings.py

In serializers.py if I change EmailField to CharField, it does serialize. 
However, then it’s not really checking if it’s a email. And EmailField should 
work.
 class User(AbstractBaseUser, PermissionsMixin):
 email = models.CharField(max_length=256, unique=True)
Thank you DjangoUsers

> On Mar 27, 2020, at 4:49 AM, Motaz Hejaze  wrote:
> 
> 
> I think django doesnt recognize your custom user model ..
> 
> Did you your app to installed app and put AUTH_USER_MODEL = 'myapp.MyUser' 
> in settings.py ?
> 
>> On Fri, 27 Mar 2020, 3:33 am devyen,  wrote:
>> Hi 
>> 
>> Do know how to whitelist an email domain name? It seems odd that I would 
>> have to go though an white list all of the main email domains (gmail, 
>> protonmail, live, yahoo etc.)
>> 
>> Ive been unable to figure it out on my own
>>  
>> Thanks,
>> 
>> 
>> 
>>> On Sat, Mar 21, 2020 at 4:45 AM Integr@te System  
>>> wrote:
>>> Hi Freind,
>>> 
>>> Try to set whitelist for your specific domain testing or refer doc for your 
>>> case. 
>>> 
>>> 
 On Sat, Mar 21, 2020, 03:47 devyen  wrote:
 Hi,
 
 I am tying to use the EmailField in my AbstractBaseUser Class see below. 
 However the serializer does not recognize any emails as valid (I tested 
 with this one, which is clearly valid) 
 
 Can you help me?
 
 Thank you so much!
 
 
 models.py
 class User(AbstractBaseUser, PermissionsMixin):
 email = models.EmailField(max_length=256, unique=True)
 first_name = models.TextField(verbose_name="First Name", blank=True)
 last_name = models.TextField(verbose_name="Last Name", blank=True)
 user_id = models.TextField(unique=True)
 data = JSONField(default=default_data, name="device_data")
 is_staff = models.BooleanField(default=False)
 is_active = models.BooleanField(default=True)
 date_joined = models.DateTimeField(default=timezone.now)
 
 objects = UserManager()
 
 USERNAME_FIELD = 'email'
 
 def __str__(self):
 return self.email
 
 def get_first_name(self):
 return self.first_name
 
 def get_last_name(self):
 return self.last_name
 
 def get_email(self):
 return self.email
 
 def __unicode__(self):
 return self.email, self.user_id
 
 def get_user_id(self):
 return self.user_id
 serializers.py
 
 from rest_framework import serializers
 from .models import User
 
 
 class UserSerializer(serializers.ModelSerializer):
 class Meta:
 model = User
 fields = ['email', 'password']
 
 part of views.py
 
 class UserRegistration(APIView):
 def post(self, request):
 serializer = UserSerializer(data=request.data)
 if serializer.is_valid():
 print('valid')
 user_object = []
 email = serializer.validated_data['email']
 password = serializer.validated_data['password']
 if "first_name" in serializer.validated_data:
 first_name = serializer.validated_data['first_name']
 user_object.append(first_name)
 else:
 pass
 if "last_name" in serializer.validated_data:
 last_name = serializer.validated_data['last_name']
 user_object.append(last_name)
 else:
 pass
 
 # serializer.save()
 return Response(user_object, status=status.HTTP_201_CREATED)
 return Response(serializer.errors, 
 status=status.HTTP_400_BAD_REQUEST)
 
 I send this:
 http -f POST http://127.0.0.1:8000/reg email='k...@k.com', password='pw'
 
 
 to receive this error:
 {
 
 "email": [
 
 "Enter a valid email address."
 
 ]
 
 }
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/bc92176b-7eb2-4e2a-a8a0-215eef7392c7%40googlegroups.com.
>>> 
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/django-users/NHUy2I3ZVDg/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> 

Re: weird memory error on Centos7

2020-03-27 Thread Wouter
I had the same issue yesterday with geodjango and this MemoryError and 
managed to find out it was caused by selinux. I wrote a custom selinux 
httpd policy, which took me a couple of iterations because after fixing one 
sealert I ran into the next.
If you are still looking for a solution and interested in mine, let me know.

On Friday, 6 December 2019 02:54:18 UTC+1, Fernando González Cisneros wrote:
>
> thanks but i already did it, and the error is still there...i just have a 
> question, does geodjango has support gdal 3.0?
>
> El jue., 5 dic. 2019 a las 17:13, DANIEL URBANO DE LA RUA (<
> dannybo...@gmail.com >) escribió:
>
>> In your case use yum to get thoses package
>>
>> On Fri, 6 Dec 2019, 00:12 DANIEL URBANO DE LA RUA, > > wrote:
>>
>>> Try installing apt-ger install binutils libproj-dev gdal-bin
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/4dbbcc62-4758-4c7b-a016-62c7eeae0a72%40googlegroups.com
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAO_yRT01mgR5wzFsHH2iTBSm2qTV7DFJyp7qKXzjrG3Piz_fdQ%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/927a2d77-5057-4357-a936-fc151d3342c5%40googlegroups.com.


Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-27 Thread Laurent Gattegno
Essaye juste fr ça devrait être nettement mieux
Laurent Gattegno



Tel 06 86 50 22 92


Le ven. 27 mars 2020 à 03:47, Simon Charette  a
écrit :

> La documentation de Django est disponible en Français.
>
> Ce message d'erreur est traduit dans cette section:
> https://docs.djangoproject.com/fr/3.0/ref/checks/#translation
>
> Tu as deux choix:
> 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué
> 2. Définit ton setting LANGUAGE_CODE = 'fr' plutôt que 'fr-fr'
>
> Simon
>
> Le jeudi 26 mars 2020 21:47:11 UTC-4, Anselme SERI a écrit :
>>
>> Je suis un nouveau dans le développement python et je teste actuellement
>> Django.
>> Il m'est impossible d'utiliser le language_code 'fr-fr' dans django 3.0.4.
>> Le message d'erreur qui s'affiche dans le terminal est le suivant :
>>
>> "ERRORS:
>> ?: (translation.E004) You have provided a value for the LANGUAGE_CODE
>> setting that is not in the LANGUAGES setting."
>>
>> J'ai fouiner sur internet à la recherche de solution sans succès.
>>
>> Comment puis-je travailler avec une interface en français. Quelqu'un
>> pourrait m'aider?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/37a930ed-f975-41c4-b567-ab710bc0a266%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHa%2B34mPnD-QAVCQhkun3o2dE%2BM-_sAx%3Dt42kwqCTr%2BA958Ajw%40mail.gmail.com.


Re: email": [ "Enter a valid email address." ]

2020-03-27 Thread Motaz Hejaze
I think django doesnt recognize your custom user model ..

Did you your app to installed app and put AUTH_USER_MODEL = 'myapp.MyUser'
in settings.py ?

On Fri, 27 Mar 2020, 3:33 am devyen,  wrote:

> Hi
>
> Do know how to whitelist an email domain name? It seems odd that I would
> have to go though an white list all of the main email domains (gmail,
> protonmail, live, yahoo etc.)
>
> Ive been unable to figure it out on my own
>
> Thanks,
>
>
>
> On Sat, Mar 21, 2020 at 4:45 AM Integr@te System 
> wrote:
>
>> Hi Freind,
>>
>> Try to set whitelist for your specific domain testing or refer doc for
>> your case.
>>
>>
>> On Sat, Mar 21, 2020, 03:47 devyen  wrote:
>>
>>> Hi,
>>>
>>> I am tying to use the EmailField in my AbstractBaseUser Class see below.
>>> However the serializer does not recognize any emails as valid (I tested
>>> with this one, which is clearly valid)
>>>
>>> Can you help me?
>>>
>>> Thank you so much!
>>>
>>>
>>> models.py
>>>
>>> class User(AbstractBaseUser, PermissionsMixin):
>>> email = models.EmailField(max_length=256, unique=True)
>>> first_name = models.TextField(verbose_name="First Name", blank=True)
>>> last_name = models.TextField(verbose_name="Last Name", blank=True)
>>> user_id = models.TextField(unique=True)
>>> data = JSONField(default=default_data, name="device_data")
>>> is_staff = models.BooleanField(default=False)
>>> is_active = models.BooleanField(default=True)
>>> date_joined = models.DateTimeField(default=timezone.now)
>>>
>>> objects = UserManager()
>>>
>>> USERNAME_FIELD = 'email'
>>>
>>> def __str__(self):
>>> return self.email
>>>
>>> def get_first_name(self):
>>> return self.first_name
>>>
>>> def get_last_name(self):
>>> return self.last_name
>>>
>>> def get_email(self):
>>> return self.email
>>>
>>> def __unicode__(self):
>>> return self.email, self.user_id
>>>
>>> def get_user_id(self):
>>> return self.user_id
>>>
>>> serializers.py
>>>
>>> from rest_framework import serializers
>>> from .models import User
>>>
>>>
>>> class UserSerializer(serializers.ModelSerializer):
>>> class Meta:
>>> model = User
>>> fields = ['email', 'password']
>>>
>>>
>>> part of views.py
>>>
>>> class UserRegistration(APIView):
>>> def post(self, request):
>>> serializer = UserSerializer(data=request.data)
>>> if serializer.is_valid():
>>> print('valid')
>>> user_object = []
>>> email = serializer.validated_data['email']
>>> password = serializer.validated_data['password']
>>> if "first_name" in serializer.validated_data:
>>> first_name = serializer.validated_data['first_name']
>>> user_object.append(first_name)
>>> else:
>>> pass
>>> if "last_name" in serializer.validated_data:
>>> last_name = serializer.validated_data['last_name']
>>> user_object.append(last_name)
>>> else:
>>> pass
>>>
>>> # serializer.save()
>>> return Response(user_object, status=status.HTTP_201_CREATED)
>>> return Response(serializer.errors, 
>>> status=status.HTTP_400_BAD_REQUEST)
>>>
>>>
>>> I send this:
>>>
>>> http -f POST http://127.0.0.1:8000/reg email='k...@k.com', password='pw'
>>>
>>> to receive this error:
>>>
>>> {
>>>
>>> "email": [
>>>
>>> "Enter a valid email address."
>>>
>>> ]
>>>
>>> }
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/bc92176b-7eb2-4e2a-a8a0-215eef7392c7%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/NHUy2I3ZVDg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP5HUWrxXTmMovbmz2KCUG6%3DRMy10fNW6A-hkQdkbNWqZxYGNw%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to