retriving all table from database

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

retriving all table from database

vishal singh
can anyone help me to pull all table name(schema wise ) from database  into  a dropdown.

it will be best if someone give codesnippits or examples , how to do??

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMSP2ackag-xH%3D2AN7NHVAsCsPRgp86qpGL0aoK1b%3DhT1K2JAw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: retriving all table from database

vishal singh
please anyone help me out its urgent..

On Tue, 6 Aug 2019 at 19:56, vishal singh <[hidden email]> wrote:
can anyone help me to pull all table name(schema wise ) from database  into  a dropdown.

it will be best if someone give codesnippits or examples , how to do??

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMSP2acrz51WLRuiiE5J3%2BbbFjd3f77BQi%3DP1%2B2Q8Zf5C4fegg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: retriving all table from database

Adam Johnson-2
In reply to this post by vishal singh
Hi!

I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely to answer your support query with their limited time and energy. Read more on the mailing lists at https://www.djangoproject.com/community/

For support, please use the django-users mailing list, or IRC #django on Freenode, or a site like Stack Overflow. There are people out there willing to help on those channels, but they might not respond if you don't ask your question well. Stack Overflow's question guide can help you frame it well: https://stackoverflow.com/help/how-to-ask .

Also if you haven't read it, please take a look at Django's Code of Conduct: https://www.djangoproject.com/conduct/ . These are our "ground rules" for working well as a community, and will help you get the most out of Django and our fantastic community.

Quickly on your question: if you want to get all the *Django models* which represent database tables you'll want to look at iterating over the AppConfigs and getting the model classes from there: https://docs.djangoproject.com/en/2.2/ref/applications/ . If you want table names exactly, you can retrieve them from the model classes' _meta.db_table attribute.

Thanks for your understanding,

Adam

On Tue, 6 Aug 2019 at 15:26, vishal singh <[hidden email]> wrote:
can anyone help me to pull all table name(schema wise ) from database  into  a dropdown.

it will be best if someone give codesnippits or examples , how to do??

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMSP2ackag-xH%3D2AN7NHVAsCsPRgp86qpGL0aoK1b%3DhT1K2JAw%40mail.gmail.com.


--
Adam

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM15s22F8OWVwVLOqtBf6kjX0vPb6DijEONH9hMu%3DMPK7w%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: retriving all table from database

Confi Yobo
In reply to this post by vishal singh
Like Adam Johnson has said, i think you should use stackoverflow or any django facebook group for this post.

On Wed, Aug 7, 2019 at 5:16 PM vishal singh <[hidden email]> wrote:
please anyone help me out its urgent..

On Tue, 6 Aug 2019 at 19:56, vishal singh <[hidden email]> wrote:
can anyone help me to pull all table name(schema wise ) from database  into  a dropdown.

it will be best if someone give codesnippits or examples , how to do??

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMSP2acrz51WLRuiiE5J3%2BbbFjd3f77BQi%3DP1%2B2Q8Zf5C4fegg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAD9uRzc81vXNddgnw0%2BzLpvfmT5XEjT3%3DmbN%3DR-eyo5mswO6rA%40mail.gmail.com.