newbie with models - user-defined function raised exception

2014-06-03 Thread Sami Razi
hi, i'm using djangobook to learn django, when i go to localhost:8000/admin there's no problem, also no problem with these two: http://localhost:8000/admin/books/ http://localhost:8000/admin/books/publisher/ but going to: http://localhost:8000/admin/books/book

Unhandled Exception

2014-04-01 Thread Sami Razi
hi, i'm newbie with django. i'm using pythonanywhere.com for learning/testing django. i made a web page so when i go to aseds.pythonanywhere.com (aseds is my usernamet) i could see my page. then i made an app. but didn't change the view for aseds.pythonanywhere.com now, when i go to

Re: IntegrityError --- NOT NULL constraint failed: books_book.publication_date

2014-03-26 Thread Sami Razi
i used python manage.py sqlall you're right sam, when i set null to true, it doesn't really change. thank you so very much. i'm a newbie with databases and i don't know what statements sould i use... i don't know the syntax... i would install south. thank you. thank you so very much. but

IntegrityError --- NOT NULL constraint failed: books_book.publication_date

2014-03-26 Thread Sami Razi
i'm learning django using djangobook , in chapter 6, i'm having this error: IntegrityError at /admin/books/book/add/ NOT NULL constraint failed: books_book.publication_date it seems i should set null=True for publication_date field. but i did it