Re: Problem about write data into the DB
HI Bruno, Thank you for your answer. The reason I choose setup the whole environment is I need setup them in a virtual machine and send this virtual machine to my friends to test it, they are not familiar with django, they just want to open the web browser and test the site. And I also want to get a try, actually this is my first time to deploy a django project, I need chance to exercise. The HTTP 500 error has solved just now. Yes, you are right. the apache account hasn't the r/w access to the DB file, I modified the rights of the DB file and my site works well now! Thank you very much! 2009/10/22 bruno desthuilliers > > On 21 oct, 17:28, 邓超 wrote: > > Hi all, > > I deployed a django app on my laptop, the whole environment is like > this: > > the OS is UBUNTU904, the web server is Apache, > > If it's only for personal use on a single laptop, setting up Apache is > possibly overkill - you could as well use the builtin dev server. > > > and the database is sqlite3. > > The deployment is success, but when I try to write some data into the > > database, I get the HTTP 500 error. And I check the error log, it > > shows "*OperationalError: > > unable to open database file*". What does this error mean? If there are > some > > operation permission need configure? > > Does the Apache process have r/w access on the sqlite DB file ? (on > ubuntu, the user account for Apache is "www-data"). > > > > > -- Deng Chao --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Problem about write data into the DB
On 21 oct, 17:28, 邓超 wrote: > Hi all, > I deployed a django app on my laptop, the whole environment is like this: > the OS is UBUNTU904, the web server is Apache, If it's only for personal use on a single laptop, setting up Apache is possibly overkill - you could as well use the builtin dev server. > and the database is sqlite3. > The deployment is success, but when I try to write some data into the > database, I get the HTTP 500 error. And I check the error log, it > shows "*OperationalError: > unable to open database file*". What does this error mean? If there are some > operation permission need configure? Does the Apache process have r/w access on the sqlite DB file ? (on ubuntu, the user account for Apache is "www-data"). --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem about write data into the DB
Hi all, I deployed a django app on my laptop, the whole environment is like this: the OS is UBUNTU904, the web server is Apache, and the database is sqlite3. The deployment is success, but when I try to write some data into the database, I get the HTTP 500 error. And I check the error log, it shows "*OperationalError: unable to open database file*". What does this error mean? If there are some operation permission need configure? -- Deng Chao --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---