Re: set up database engine

2010-04-08 Thread Thierry Chich
Some of the lines you are writing are not intended to be written in the Shell monitor. You must write them in the file settings.py ! You have no alert message because variable='foo' is a correct syntax in a bourne Shell, but it is doing absolutely nothing. Le 9 avr. 2010 à 05:58, yangya

Re: set up database engine

2010-04-08 Thread Steve Holden
So as an experienced Googlenaught (TM) I was a little surprised to find that the first hit for "django-users sqlite howto" was not terribly helpful for a beginner. The second hit (eventually) said """Now, edit settings.py. It's a normal Python module with module-level variables representing Djang

Re: set up database engine

2010-04-08 Thread Steve Holden
Oh, I see it wasn't just a Google failure. Thierry gave you the correct answer, but omitted to mention (or we omitted to notice) that those lines go in your settings.py file. No use typing them on the command line. .. Regards Steve On Apr 9, 2010 12:26 AM, "Steve Holden" wrote: This might just

Re: set up database engine

2010-04-08 Thread Steve Holden
This might just have been a spelling issue. http://docs.djangoproject.com/en/dev/ref/databases/#sqlite-notes Regards Steve On Apr 8, 2010 12:18 AM, "yangyang" wrote: how exactly set up the database engine as SQLight? The tutorial doesn't seem to tell us... Thanks! -- You received this messag

Re: set up database engine

2010-04-08 Thread yangyang
Hi Thierry, Thanks for the reply. I understand what SQLight is but I don't know how to write the code in my Mac shell... This is what I wrote: yang-wangs-computer:~/applications/mysite yangwang$ database_engine='sqlite3' yang-wangs-computer:~/applications/mysite yangwang$ database_name='trydb' y

Re: set up database engine

2010-04-08 Thread Jitesh
If you are using python 2.5 or later version then you dont have to install anything for SQLight, it is bundled for you in python. Now just edit settings.py file: enter database engine as "sqlite3" and your database name, what you want django to create for you from the models DATABASE_ENGINE = 'sql

Re: set up database engine

2010-04-08 Thread Thierry CHICH
Perhaps are you confused because of SQLlite. You need to know that SQLite is not a classical database with a server that you need to install. An sqlite database is only a file stored where do you want. Thierry > I mean the tutorial only tells you "edit settings" but doesn't tell > you how. E

Re: set up database engine

2010-04-08 Thread James Bennett
On Wed, Apr 7, 2010 at 11:25 PM, yangyang wrote: > I mean the tutorial only tells you "edit settings" but doesn't tell > you how. Excuse me if this is obvious to most of people. Part 1 of the tutorial, under "Database setup", says: > Now, edit settings.py. It's a normal Python module with module

Re: set up database engine

2010-04-07 Thread Jirka Vejrazka
>> how exactly set up the database engine as SQLight? The tutorial >> doesn't seem to tell us... Hi, if you edit the file "settings.py" in your project directory, all you need to do is to tell Django that you want to use SQLite3 and where you want the database (somewhere on your disk, where you

Re: set up database engine

2010-04-07 Thread yangyang
I mean the tutorial only tells you "edit settings" but doesn't tell you how. Excuse me if this is obvious to most of people. On Apr 7, 11:17 pm, yangyang wrote: > how exactly set up the database engine as SQLight? The tutorial > doesn't seem to tell us... > > Thanks! -- You received this messag