Sunday, May 27, 2012

Re: Tutorial database problem

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 database file unless it's chmod 777.

Any help?

On Sun, May 27, 2012 at 8:29 PM, Jirka Vejrazka <jirka.vejrazka@gmail.com> wrote:
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 can write for sure, such
as /home/<myusername>/test_db.db.

 You can easily find out if you have write permissions somewhere by
using the "touch" command, i.e. "touch /home/<myusername>/test_db.db -
it'll either create an empty file which means that this path is OK for
your database, or give you an error.

 HTH

   Jirka

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Fadi Samara
+61 410 387 353

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment