Database Error django

Posted by Megan on Stack Overflow See other posts from Stack Overflow or by Megan
Published on 2012-12-10T21:37:58Z Indexed on 2012/12/10 23:04 UTC
Read the original article Hit count: 186

Filed under:
|
|
|

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!

© Stack Overflow or respective owner

Related posts about python

Related posts about database