Thanks to both of you. worked just fine. Alan
On Apr 4, 10:50 pm, dls <daniel.si...@gmail.com> wrote: > Yes, once you have executed the initial "python manage.py syncdb" your > database will automatically be created by Django and you will be able > to open in using SQLite. If you are starting a brand new project you > should try "python manage.py startapp [appname]", which will create a > new application in the existing Django project. > > I would recommend using the Django database browser instead of sqlite3 > - "python manage.py dbshell" is the command. This will open the > appropriate database as per the name you have select in your > settings.py file. > > -dls > > On Apr 4, 3:41 pm, zayatzz <alan.kesselm...@gmail.com> wrote: > > > So i should just set the database file name in settings.py and stop > > worring about it untill i hit syncdb?' > > > Alan. > > > On Apr 4, 10:38 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > > On Sat, Apr 4, 2009 at 3:34 PM, alan.kesselm...@gmail.com < > > > > alan.kesselm...@gmail.com> wrote: > > > > > Hello > > > > > I decided to check out django and i finished tutorial and it was all > > > > good. When i wanted to try something for myself and created another > > > > app and proceeded to create new database for this project - i failed. > > > > > I installed sqlite3 on my computer (i use kubuntu 9.04) and when i run > > > > sqlite3 insertdatabasenamehere - nothing happens. Well somethind > > > > happens.. > > > > > x...@xxx:~/Django/p2$ sqlite3 new.db > > > > SQLite version 3.6.10 > > > > Enter ".help" for instructions > > > > Enter SQL statements terminated with a ";" > > > > sqlite> > > > > > i exit and there is no file named new.db: > > > > > sqlite> .exit > > > > x...@xxx:~/Django/p2$ ls -l > > > > total 12 > > > > -rw-r--r-- 1 xxx xxx 0 2009-04-04 13:31 __init__.py > > > > -rw-r--r-- 1 xxx xxx 546 2009-04-04 13:31 manage.py > > > > -rw-r--r-- 1 xxx xxx 2765 2009-04-04 13:31 settings.py > > > > -rw-r--r-- 1 xxx xxx 529 2009-04-04 13:31 urls.py > > > > x...@xxx:~/Django/p2$ > > > > > Doest matter if i run it with sudo rights or not. > > > > > Alan > > > > You don't need to worry about creating the SQLite file, the Python > > > bindings > > > automatically create the file if it doesn't exist. > > > > Alex > > > > -- > > > "I disapprove of what you say, but I will defend to the death your right > > > to > > > say it." --Voltaire > > > "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---