Gunicorn-wsgi-nginx-postgresql-django linode hosting

2020-05-13 Thread Tobi DEGNON
Hi I need help, I'm hosting a django app on linode, the app is running on 
Ubuntu 18.04 LTS with gunicorn, nginx a postgresql database, and I'm using 
let's encrypt for SSL certificate, the issue is when I fill a form (login 
or signup) I get a timeout error but I don't have that issue on the admin 
site, when I try login to the admin it works just fine, and I don't have 
the timeout error on my local machine on the app, this is like the fourth 
time I'm setting up the whole thing with a different Ubuntu version each 
time, and I'm having the exact same issue, I made some research and then 
update timeout for nginx and gunicorn to 300, but it doesn't work, this is 
the first time I'm hosting a django app on a Linux server and I'm having 
the worst time of my life, this is a full traceback of the error 
https://gist.github.com/Tobi-De/38a3badf79bdf9fb0fe45cb0322d6293 , dont't 
let that EmailAddress.DoesNotExist exception full you, it does exist, I 
create the account with the createsuperuser command.

-- 
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/e2a4a4ae-f949-464a-adbb-b0b6f7fa2f65%40googlegroups.com.


How To create a chatroom in django

2020-05-19 Thread Tobi DEGNON
You can use something like django channel, it is use to create asynchronous app 
like chat application

-- 
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/4a5d7a6a-4f51-4a9c-88a7-150df32db490%40googlegroups.com.


Re: Acces a l'interface d' administration

2020-05-22 Thread Tobi DEGNON
Vous avez les deux projets démarré en même temps sur la machine, sur des
ports diffèrent c'est ça ?

Le ven. 22 mai 2020 22 h 39, Dino P.Russe  a écrit :

> J'ai deux projets sur un même ordinateur.
> Quand j'essaye de me connecter sur l'interface d'administration du 2 ème
> mon navigateur me dirige vers l'interface d'administration du 1 er projet.
> Comment remédier a cela?
>
> MERCI POUR VOTRE AIDE.
>
> --
> 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/0beebbf6-40b3-4209-84ae-70a5ce2258db%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/CACeK5b%3DVEy423VfSzkDXLBsKiJUK5U_p54Tpyy%2BZ-OtJ0MuCQg%40mail.gmail.com.


Re: Help me!

2020-06-07 Thread Tobi DEGNON
Make research about Django channels

Le lun. 8 juin 2020 07 h 18, meera gangani  a
écrit :

> I want to create personal chat in django!!
>
> What Can I Do?
> And What are the Libraries I install?
> Please Help Me Out!!
>
> Thanks in advance
> -Meera Gangani
>
> --
> 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/CANaPPPKWVMZhwmfTndhjVAmPB-cGYK07_ptdp%2BfdsymAe-b3%2BQ%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/CACeK5bn77jdGU%3Dp4gJsn4wzpdjQ72hdfBcC%3DNefCJqLNK0i7iw%40mail.gmail.com.


Re: Required Django programmers for HR Portal project

2020-06-27 Thread Tobi DEGNON
Hi, what are the project requirements and how I get in. thanks

Le sam. 27 juin 2020 20 h 57, maninder singh Kumar <
maninder.s.ku...@gmail.com> a écrit :

> Dear group subscribers,
>
> I require Django programmers for an HR Job portal.  It is an intern
> project.
>
> regards  willy
>
> 
> Maninder Kumar
> about.me/maninder.s.kumar
> 
>
> --
> 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/CABOHK3QFjdFBhptC5YExGd%3DtO%2BmMeZzjy%3DL0u67mWRT2SihwfA%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/CACeK5bkrKiCQqPTCbNo_xyA0bEtSUP-u68FQRvz%3DtpHPJ9trYQ%40mail.gmail.com.


Re: Python-django project

2020-07-21 Thread Tobi DEGNON
Interested, what kind of projects is it ?

Le mar. 21 juill. 2020 04 h 10, learn code  a
écrit :

> Hi everyone,
>
> I am learning python and django, like to work on the projects to improve
> more.If any one interested to join with me to work on the projects,plz send
> me a email.
>
> --
> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CACeK5bkiqZD6Wm1inPHXD3qC6ZZ6RgQDUNTQfNdaYKzHWQPRcQ%40mail.gmail.com.


Re: Get Personal and maching Horoscope

2020-07-22 Thread Tobi DEGNON
This is not really Django related, you will better off doing a Google
search.

Le mer. 22 juill. 2020 11 h 13, Ashutosh Mishra 
a écrit :

> I want to create api's to get personal horoscope and the matching
> horoscope by providing
> date of birth for girl and boy,some one plz guide how  can we do this
>
> --
> 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/76f166af-28e2-4c9e-b847-528773f55e31n%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/CACeK5bmywn54wB8JdBgo%2Bt03mTb5kU3SxbX3EvOzOzPu3i_S9Q%40mail.gmail.com.


Re: Django Whats app group

2020-07-29 Thread Tobi DEGNON
Discord or slack would be better alternatives

Le lun. 27 juill. 2020 10 h 46, Vishnu Bhandari 
a écrit :

> Hi Folks,
> Decided to make a whats app group of all django users (aspiring and
> expert) for sharing problem and asnwers.
> Request you all, please ping me om +919561879917...
> Or u can join thru this link -
> https://chat.whatsapp.com/Gmr7QDkNw8YIxobnzNQfbl
>
> If any existing group exists, please add me there. - 9561879917
>
> --
> 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/CALeETXJdBmqUwkrMKAhfDyxuF19FbHSp2Lxd3m3NmXB2XVX4nQ%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/CACeK5bkPzhFML4Z20xeMv1VObz99Ecti%2BPxGjn1v2PNrX8-fww%40mail.gmail.com.


Re: URGENT ---- Third party API integration basics

2020-08-21 Thread Tobi DEGNON
You add the key to your environment and read it in Django with django
environ or the os module, then you can create a utils.py in the app module
where you need to fetch the data, you create a function(something like
fetch_api) to fetch the data and call it where you need it, you can use the
requests module to make the request to your api

Le ven. 21 août 2020 11 h 03, Ogunsanya Opeyemi 
a écrit :

> You just need to add define the key in your settings file Key_Name= "key"
> OGUNSANYA OPEYEMI
>
>
> On Fri, Aug 21, 2020 at 10:55 AM Arpana Mehta 
> wrote:
>
>> Hello everybody,
>> I wanted to know if there's anybody who can help me integrate a very
>> simple third party API using client ID and secret key.
>>
>> I just want to know the basic steps of where to add the key and ID in
>> settings file so I can access that API from my app in django-project.
>>
>> *It's kind of urgent. Any help will be appreciated.*
>> Many thanks,
>> Arpana Mehta
>>
>> --
>> 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/CAGyqUuW-zx8-cfVt0Oq%2B3E9WwcA8w%3DgsKg3xjtC9-vvuR9pHfw%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/CABJxPrHhY0pGi9MoEQz7CHcdkFGmdWoz87BtG5Ky4SaQ_dtFFg%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/CACeK5b%3DURhY98-d1drxHi-whVJN5s6-6V5CBgjMZMAz%3DMY9BnA%40mail.gmail.com.


Re:

2020-08-21 Thread Tobi DEGNON
You can try dokku, search dokku on Google, if you have already deploy on
Heroku, it is very similar, you just need to install dokku on your Vps,
they have really great doc or you can try this
https://djangocentral.com/deploy-django-with-nginx-gunicorn-postgresql-and-lets-encrypt-ssl-on-ubuntu/

Le ven. 21 août 2020 16 h 25, ankit baliyan  a
écrit :

> Plz, tell me how to deploy docker django project on server
>
> --
> 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/CAH0koyyuoVGjLGs_HMym%3DvrYEY%2Bn9U9mXdxr_kDGyhC%2BWudQ-Q%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/CACeK5bmqNvZofN1VWwYBXLh-EyVBTOfPM4ioULVArDBqxbKPSQ%40mail.gmail.com.


Re: Check this out guys

2020-09-17 Thread Tobi DEGNON
Dude, can we contribute to your project ?

Le jeu. 17 sept. 2020 à 10:39, 712189512  a
écrit :

> Yeah still working on it thanks
>
> On Thu, Sep 17, 2020 at 11:19 AM Madhav Nandan 
> wrote:
>
>> It's good but there is dome modifications required. Like you could have
>> improved UI a bit.
>>
>> On Wed, Sep 16, 2020, 1:19 PM Ashutosh Mishra <
>> ashutoshmishra...@gmail.com> wrote:
>>
>>> That's really cool buddy
>>>
>>> On Wed 16 Sep, 2020, 13:12 712189512, 
>>> wrote:
>>>
 Hi guys i have build this  *https://connectdjango.com
 * platform with django and i want you to
 check it out,you can post your questions there and and also post some
 tutorials too,let's all connect and keep on djangoing.Thanks

 --
 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/CAL-5MpUAbK%2BEZxt_qJo9jrsFqf0p%3DS3-JPXoMHv3X1jWDXY5NQ%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/CAGDmY66ec0B9gi_eFkq%2Bde80ZK32hV4jXa%3DPr_veA3NP%3Ds9t6w%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/CAGXYL6LWGksF8SnKPOTX9qtOH1nPzkfVQa0hmKGp-9KDzL4Tiw%40mail.gmail.com
>> 
>> .
>>
> --
> Gabrielstone😎
>
> --
> 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/CAL-5MpXcLviZScNyyWLqpW2Z1%2B2bVJjka5pShJHAy%2BEUk%2BLXvw%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/CACeK5bm5CkpCCxYzF3_mQjniTmcpNFQJwPaaVFBoY2CS-FFEiw%40mail.gmail.com.


Re: Check this out guys

2020-09-18 Thread Tobi DEGNON
On Digital ocean, are you using caprover ? Or you just configure the
project with nginx and gunicorn yourself, do you follow a tutorial for the
hosting process, if yes please send a link.

Le ven. 18 sept. 2020 09 h 06, 712189512  a
écrit :

> Frontend is just JavaScript and sass
>
> On Fri, Sep 18, 2020 at 10:04 AM 712189512 
> wrote:
>
>> I am hosting it on digital ocean
>>
>> On Fri, Sep 18, 2020 at 10:03 AM Theresa Taye 
>> wrote:
>>
>>> Please did you host it on heroku?
>>> On Sep 16, 2020 08:42, "712189512"  wrote:
>>>
 Hi guys i have build this  *https://connectdjango.com
 * platform with django and i want you to
 check it out,you can post your questions there and and also post some
 tutorials too,let's all connect and keep on djangoing.Thanks

 --
 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/CAL-5MpUAbK%2BEZxt_qJo9jrsFqf0p%3DS3-JPXoMHv3X1jWDXY5NQ%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/CAENBRfPhj8BTv_URL8yT9Dr4mpTugqp1N1cj5rW%2BSZE73TZE_Q%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> Gabrielstone😎
>>
> --
> Gabrielstone😎
>
> --
> 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/CAL-5MpUAJhYOALHaYSuE-YdFSwbYqqowTJgZw8hkR35SXs%2Bigg%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/CACeK5bmdwOybks4ZjTccqnXqO71YMzJCkQosfQLf%3DBftaHq-rw%40mail.gmail.com.


Re: Check this out guys

2020-09-18 Thread Tobi DEGNON
Ok thank you very much, do you have any issues sending emails from your
website, I mean, when Email are sent from you site, does it reach the
destination or do you get an exception?

Le ven. 18 sept. 2020 09 h 30, 712189512  a
écrit :

> I configured with nginx,Postgres and gunicorn
> here are the links to follow
> 1.
> https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04
> 2.
> https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-20-04
> 3.
> https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04
>
> 1 is the initial setup for your ubuntu system on digital ocean
> 2 is setting up your environment and your project ,nginx,gunicorn and
> postgres.if you have your project on git you can pull it and it makes
> everything easier and faster
> 3 setting up ssl encryption for your domain nothing serious
>
>
> On Fri, Sep 18, 2020 at 10:22 AM Tobi DEGNON 
> wrote:
>
>> On Digital ocean, are you using caprover ? Or you just configure the
>> project with nginx and gunicorn yourself, do you follow a tutorial for the
>> hosting process, if yes please send a link.
>>
>> Le ven. 18 sept. 2020 09 h 06, 712189512  a
>> écrit :
>>
>>> Frontend is just JavaScript and sass
>>>
>>> On Fri, Sep 18, 2020 at 10:04 AM 712189512 
>>> wrote:
>>>
>>>> I am hosting it on digital ocean
>>>>
>>>> On Fri, Sep 18, 2020 at 10:03 AM Theresa Taye 
>>>> wrote:
>>>>
>>>>> Please did you host it on heroku?
>>>>> On Sep 16, 2020 08:42, "712189512" 
>>>>> wrote:
>>>>>
>>>>>> Hi guys i have build this  *https://connectdjango.com
>>>>>> <https://connectdjango.com>* platform with django and i want you to
>>>>>> check it out,you can post your questions there and and also post some
>>>>>> tutorials too,let's all connect and keep on djangoing.Thanks
>>>>>>
>>>>>> --
>>>>>> 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/CAL-5MpUAbK%2BEZxt_qJo9jrsFqf0p%3DS3-JPXoMHv3X1jWDXY5NQ%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUAbK%2BEZxt_qJo9jrsFqf0p%3DS3-JPXoMHv3X1jWDXY5NQ%40mail.gmail.com?utm_medium=email&utm_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/CAENBRfPhj8BTv_URL8yT9Dr4mpTugqp1N1cj5rW%2BSZE73TZE_Q%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAENBRfPhj8BTv_URL8yT9Dr4mpTugqp1N1cj5rW%2BSZE73TZE_Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> Gabrielstone😎
>>>>
>>> --
>>> Gabrielstone😎
>>>
>>> --
>>> 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/CAL-5MpUAJhYOALHaYSuE-YdFSwbYqqowTJgZw8hkR35SXs%2Bigg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUAJhYOALHaYSuE-YdFSwbYqqowTJgZw8hkR35SXs%2Bigg%40mail.gmail.com?utm_medium=email&utm_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 

Re: Recruitment

2020-09-23 Thread Tobi DEGNON
Hi, you are looking for a django dev right? I'm available

Le mer. 23 sept. 2020 15 h 41, Harish Thiyagharajan <
harishthiyagh...@gmail.com> a écrit :

> I want a interested django user , DM mail for more details , all the
> details including payment can be discussed ...looking for for you guys .
>
> --
> 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/7b7956bc-d239-4b63-9194-0644b8a6eeben%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/CACeK5bnZHw0uj9Je5Zvy3ppDiMJrr9OyFs2TszbvP1CmvN_QdQ%40mail.gmail.com.


Re: Model.objects.create as default

2021-02-10 Thread Tobi DEGNON
ok thanks

Le mer. 10 févr. 2021 à 01:42, Rama akki  a écrit :

> Better, you can use signal or model manager with one-to-one relationship
>
> On Sat, 6 Feb 2021, 7:13 pm degnon...@gmail.com, 
> wrote:
>
>> hi, say I have this model
>>
>> class Event(models.Model):
>>   ...
>>   metrics = models.OneToOneField("evmetrics.Metrics",
>> on_delete=models.PROTECT,
>> default=Metrics.objects.create)
>>
>> I want to be sure of what I'm writing here, for each new Event object
>> created, a new Metrics object will be create and link to the event by a
>> OneToOne relationship, is there any chance this is really bad code or this
>> could be a problem ?
>>
>> --
>> 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/541e8075-0ded-41cd-a565-e552c66a0183n%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/Iw83-HaVevc/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/CAAmXcB67yeFY%2Bv-ASUKu3bVEUVUPy%3Difz2fehg%2BKmhd7nDkBnw%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/CACeK5b%3DTb1qqrUtwCONgmBt%2BM6do91T9h2G1rOuj8Z06%2Bi%2Bm4A%40mail.gmail.com.