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
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
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
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
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
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
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
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
>> 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
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
10 matches
Mail list logo