Access Django DB objects without shell?
In views.py you can import
from .models import modelname
data = modelname.objects.all() - using this you can get all the data from the Database
Eg:-
for d in data:
           print (d.email)
Will give all emails in the database
You can also use
t = modelname.objects.get(email='name@lk.com')
By this you can get the data of the person who's email is name@lk.com
I have a request - can you help me access and manage django DB objects without using shell ?
I have created my models, but now (for example) i want to make a login system. I store users and passes(again, only an example), and i want to get the info from the DB, but i dont want to use shell.
What can i do in this case, im quite new to Django ?!
Best Regards