While creating the project I didn't create an app and did everything in the base project. Now I am trying to connect database to my base project(not the app)
I tried 'python manage.py makemigrations' but its showing "No changes detected".
I even tried adding my project to INSTALLED_APPS in settings.py and then trying 'python manage.py makemigrations ' but it is showing an error " for model in model_or_iterable: TypeError: 'type' object is not iterable "
I have created two models
from django.db import models
class studentlogin(models.Model):
stu_name =
models.CharField(max_length=30,default='',null=False)
stu_email =
models.EmailField(max_length=20,default='',null=False)
stu_password =
models.SlugField(max_length=15,default='',null=False)
class facultylogin():
fac_name =
models.CharField(max_length=30,default='',null=False)
fac_email =
models.EmailField(max_length=20,default='',null=False)
fac_password =
models.SlugField(max_length=15,default='',null=False)
also registered the models in admin.py
'admin.site.register(studentlogin), admin.site.register(facultylogin)
I need help !!