Le 11 mai 2010 à 10:30, HelloWorld a écrit : > Hi Everybody > > I installed Django and wanted to test what I can do by using Sqlite. > It is unclear for me how this can be achieved and therefore have the > following open questions: > > 1. Do I need to fill in the settings.py any other info than: > django.db.backends.sqlite3 at ENGINE > What do I/ Do I need to fill in in NAME, USER, HOST an where can I > create the PASSWORD.
All you need is the ENGINE and NAME (path to your db file). As Sqlite isn't a C/S engine, there's no host/user/password info needed. > 2. If Django creates the db file, where can I find it? What is the > default name? It's the name you defined in the NAME parameter. > 3." If the file doesn't exist, it will automatically be created when > you synchronize the database for the first time (see below)." Is this > done by this command "python manage.py syncdb". Once you start the > server in the commandline, it is no longer possible to enter a > command. So I opened a new tab and typed this command and got this > answer: > > "Please fill out DATABASE_NAME in the settings module before using the > database." > > So there I am at the beginning again. Sqlite creates the file if it doesn't exist. But you must define the filename in the NAME setting. -- Romain Gaches -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.