On Monday 04 May 2009 10:17:09 am Phil Mocek wrote:
> On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote:
> > I forgot to mention that sqlite3 expects a file to be there, it
> > can't create one on it's own, using ./manage.py syncdb.
>
> I think you are mistaken. Can you site some
On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote:
> I forgot to mention that sqlite3 expects a file to be there, it
> can't create one on it's own, using ./manage.py syncdb.
I think you are mistaken. Can you site some documentation to back
this claim?
I'm using Django 1.0,
touch worked for me.
thanks
On May 4, 11:31 am, Mike Ramirez wrote:
> I forgot to mention that sqlite3 expects a file to be there, it can't create
> one on it's own, using ./manage.py syncdb. To do so I use touch, tho you can
> also do the same thing with vi, if you save
I forgot to mention that sqlite3 expects a file to be there, it can't create
one on it's own, using ./manage.py syncdb. To do so I use touch, tho you can
also do the same thing with vi, if you save it as an empty file (just tested
it). echo "" > testing.db might work also.
[gufym...@sylia
On Monday 04 May 2009 08:16:58 am bconnors wrote:
> I deleted the file and
> When I do python manage.py syncdb and the message ends up with:
You should be using touch, vi might work, if you save it as an empty file, but
touch is the best. example:
[gufym...@sylia testing]$ ls
__init__.py
I deleted the file and
When I do python manage.py syncdb and the message ends up with:
File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", li
ne 304, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
On Mon, May 04, 2009 at 05:33:05AM -0700, bconnors wrote:
> I created a mysite.db in my directory by vi.
It's highly unlikely that you will be able to create a valid
SQLite database using a text editor. You should delete that file,
then expect it to be created when you run the 'syncdb' command.
pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2',
'postgresql', 'my
sql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = '/django-trunk/build/lib/django/bin/mysite/mysite/
mysite.db'
# Or path to database file if using
I’m getting the error “unable to open database file”
I have sqlite3:
pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more
9 matches
Mail list logo