How I can select data from a database that is not inside my django app?
How I should connect my django query to a database that has not been created by my django app?
I have put this code in views.py:
def select(request):
p = user.objects.filter(country='Iran')
return HttpResponse(p)
If the database had been created by django app then there was need to add this part into views.py:
(for example)
from users.models import user
But here what should I do?
P.S:
I'm using pymysl in my django project and have installed lamp in my linux os, and using phpmyadmin. Any more explanation is needed?