Re: Problem while creating database tables through the models.

2010-02-12 Thread David Talbot
Have you created a Postgres database? On Feb 12, 4:38 am, Newbie wrote: > Dear all, > >           Downloaded and followed the steps which is given in the > documentation of Django >           Created the project called mysite >           Created the model called polls >           Ratified the set

Re: Problem while creating database tables through the models.

2010-02-12 Thread Adnan Sadzak
Did You start python shell from project directory ?? python manage.py shell On Fri, Feb 12, 2010 at 1:42 PM, Newbie wrote: > thanks for your reply.. > When I updated the postgresql version , the tables are created > successfully. > > Now I faced another problem. > When I start to store

Re: Problem while creating database tables through the models.

2010-02-12 Thread Newbie
thanks for your reply.. When I updated the postgresql version , the tables are created successfully. Now I faced another problem. When I start to store a data in the model through the methods of the class , the following error is get. >> from mysite.polls.models import Poll,Choice >>> Pol

Re: Problem while creating database tables through the models.

2010-02-11 Thread Christophe Pettus
On Feb 11, 2010, at 8:38 PM, Newbie wrote: NOTE : Django version is 1.1.1 and PostgreSQL version is 7.4.16 Is there is a reason you are using such an old version of PostgreSQL? -- -- Christophe Pettus x...@thebuild.com -- You received this message because you are subscribed to the Google

Re: Problem while creating database tables through the models.

2010-02-11 Thread Shawn Milochik
Try changing the database to sqlite3 and see if it works. If so, you know the problem is with Postgres. If not, it's probably something you did. Also, Postges 7.4 is way out of date -- the current is 8.4. It could be that the psycopg2 interface has a problem with a version that old. Shawn --

Problem while creating database tables through the models.

2010-02-11 Thread Newbie
Dear all, Downloaded and followed the steps which is given in the documentation of Django Created the project called mysite Created the model called polls Ratified the settings.py of the project to create a model as a table in the database using INSTALLED_ A