I followed the guideline on the official website of Mezzanine (Mezzanine 1) as follow
# In myapp/models.py
from django.db import models
class MyProfile(models.Model):
user = models.OneToOneField("auth.User")
date_of_birth = models.DateField(null=True)
bio = models.TextField()
# In settings.py
INSTALLED_APPS = (
"myapp",
"mezzanine.accounts",
# Many more
)
ACCOUNTS_PROFILE_MODEL = "myapp.MyProfile"
But it says that: django.db.utils.OperationalError: no such table: app_myprofile. The signup page shows what I want, i.e., date of birth and the bio. But once I clicked the signip button, the error happened.
Am I missing something? Shall I also add something in the views.py file?
Aucun commentaire:
Enregistrer un commentaire