Wednesday, November 1, 2017

Pulling data from database

New to Django, coming from C# and I am totally confused how you pull data from a database. I have a Postgres DB with a table "customer" created, but have NO idea how to connect to it. I have read a bunch of stuff but they all seem to work from the Model creation to database (migration), but if the table is already created, I can't find detail what to do. 

If I have a table called "customer" and want to pull the data into my template, what should I read up on to accomplish this?

Thanks
Jay

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64ab175d-4897-42ba-8f84-fa3778791226%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment