Database Error django
- by Megan
DatabaseError at /admin/delmarva/event/
no such column: delmarva_event.eventdate
I created a class in my models.py file:
from django.db import models
from django.contrib.auth.models import User
class Event(models.Model):
eventname = models.CharField(max_length = 100)
eventdate = models.DateField()
eventtime = models.TimeField()
address = models.CharField(max_length = 200)
user = models.ForeignKey(User)
def __unicode__(self):
return self.eventname
and now when i try to view my events in my admin or my main_page it gives me the error that there is no eventdate. I tried syncing the db again but nothing changed. Also, I hashtagged eventdate out to see if I get a different error and then it states that delmarva_event.eventtime does not exist as well. I It is weird because it does not have a problem with eventname. Any suggestions would be greatly appreciated!