Re: How to use inspectdb to generate a model for a table owned by a specific schema.

2021-09-09 Thread Hello Singh
I am intermediate django developer, I want to give a try to your questions.
Simply use this command
*python manage.py inspectdb [ TABLE_NAME ]*
*If you use this command without table name it inspect all tables of
database*



On Thu, 9 Sep 2021, 19:39 Nemani Srinivas Murthy, 
wrote:

> Hi, I'm looking for a solution for generating the model.py file for a
> table which is owned by a specific schema ., I tried the
> below option but no luck.
>
> *python manage.py inspectdb --database=  *
>
>
> --
> 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/bc685fe7-93c8-4e35-b0d5-33bfe549169an%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/CAEoS0z5SS6Pyq4LLbd8aVpPmm_spVSX266G%3DkMoYX_%2BycTerOA%40mail.gmail.com.


Daphne ASGI Django Long running requests cause upstream connection refused NGINX

2021-09-09 Thread Bernsy
 

I have a Django 3.2.4 application which I am running on Kubernetes, fronted 
by NGINX, served via ASGI / daphne. I have a long running API call (no 
longer than 30 seconds) that when running, seems to cause other requests to 
be refused.

In the NGINX logs I see connect() failed (111: Connection refused) while 
connecting to upstream and in the pods I see the liveness probe fails 
(because connection refused), and get Killed 8 pending application instances
.

Can someone tell me what might be happening?

-- 
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/39393c07-54f0-47e7-868c-df6cf84f1709n%40googlegroups.com.


Re: How to use inspectdb to generate a model for a table owned by a specific schema.

2021-09-09 Thread carlos
Hi, read this maybe help you!

https://stackoverflow.com/questions/21986917/running-inspectdb-on-a-specific-schema

On Thu, Sep 9, 2021 at 8:09 AM Nemani Srinivas Murthy 
wrote:

> Hi, I'm looking for a solution for generating the model.py file for a
> table which is owned by a specific schema ., I tried the
> below option but no luck.
>
> *python manage.py inspectdb --database=  *
>
>
> --
> 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/bc685fe7-93c8-4e35-b0d5-33bfe549169an%40googlegroups.com
> 
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO28qnfMXE%3DfwBcVgq61G7mWMt_gH_zbHXGmSDuKA75PBg%40mail.gmail.com.


How to use inspectdb to generate a model for a table owned by a specific schema.

2021-09-09 Thread Nemani Srinivas Murthy
Hi, I'm looking for a solution for generating the model.py file for a table 
which is owned by a specific schema ., I tried the below 
option but no luck.

*python manage.py inspectdb --database=  *


-- 
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/bc685fe7-93c8-4e35-b0d5-33bfe549169an%40googlegroups.com.