Re: Tutorial database problem

2012-05-28 Thread phantom21
OK, problem solved. The location I thought was working for django 1.4 was different than was actually the case. I'm reinstalling to a new location and hope it will work correctly this time. The advice on adding the divide by 0 line helped since it didn't execute. Thanks, Mark On May 28, 4:57

Re: Tutorial database problem

2012-05-28 Thread Gelonida N
On 05/27/2012 05:38 AM, phantom21 wrote: I've tried to set up the database as sqlite3. I keep getting an error on the ENGINE line, but can't figure out why as it looks correct. Here is the database section: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3',

Re: Tutorial database problem

2012-05-27 Thread ajohnston
What happens if you do: $ python manage.py shell ## at the bash prompt >> import django.db.backends.sqlite3 ## in the python shell If you get an error, you might try reinstalling django. But I'm not sure what the problem is/was. Your DATABASES code looks fine. -- You receive

Re: Tutorial database problem

2012-05-27 Thread phantom21
See above. Initially I had tried /home/mark/database/mark.db, but got the same error, so I tried it in the directory sqlite3 executable resides. Got THE SAME ERROR! The error has nothing to do with where the database resides it seems. The error seems to indicate some issue with the ENGINES line,

Re: Tutorial database problem

2012-05-27 Thread phantom21
No. Why I'm asking. I don't see a problem with the DATABASES section of the file, but another pair of eyes might. The error implies a problem with the ENGINES line, but, again, I don't see it. Mark On May 27, 6:56 am, Fadi Samara wrote: > so have you found any solution? > > > > > > > > > > O

Re: Tutorial database problem

2012-05-27 Thread Fadi Samara
so have you found any solution? On Sun, May 27, 2012 at 8:55 PM, phantom21 wrote: > initially I'd created given the path as /home/mark/database/mark.db > but that gave me the same error so I wanted to try creating it in the > same place as sqlite3 existed, with the same results. > > Mark > > > O

Re: Tutorial database problem

2012-05-27 Thread Fadi Samara
Hi, I'm not creating it outside the project path, I create /u01/my-project and gave it 755 permission, and have use default path for the database file to be in the same directory of the manage.py file. I'm using a normal user (not root), but I think the Apache user does not have access to databas

Re: Tutorial database problem

2012-05-27 Thread phantom21
initially I'd created given the path as /home/mark/database/mark.db but that gave me the same error so I wanted to try creating it in the same place as sqlite3 existed, with the same results. Mark On May 27, 6:29 am, Jirka Vejrazka wrote: > Hi, > >   you're creating your database file in /usr/b

Re: Tutorial database problem

2012-05-27 Thread Jirka Vejrazka
Hi, you're creating your database file in /usr/bin which is intended for system executable files, not databases etc. It's highly likely that you don't even have write permissions there (unless you work using the "root" account which is a big NO-NO). Set your database file somewhere where you

Tutorial database problem

2012-05-26 Thread phantom21
I've tried to set up the database as sqlite3. I keep getting an error on the ENGINE line, but can't figure out why as it looks correct. Here is the database section: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/usr/bin/sqlite3/mark.db', # Or