I am new to Django, and I was given a complete MySQL database with all relations and tables set. I am trying to put this data from MySQL database into my admin site.
I want to know if there is any other way to retrieve data from MySQL database without using Django models.
MySQL Database MySQL database
I tried to use autogenerated model, but it did not work for me. Data doesn't show up in the admin site. (P.S. I do not necessarily require data to be in admin site, I am just trying to use it any ways possible)
Auto-generated model by django
python manage.py inspectdb > models.py
admin.py
from django.contrib import admin
# Register your models here.
from .models import Ligand
admin.site.register(Ligand)
Please, let me know if you know any ways to use data from MySQL database that was not created using Django model.
Thanks in advance