Thursday, July 25, 2013

Re: Unable to open database.

So should I put
home/stats_portal/stats_/portal/myproject/myproject/database/sqlite3 ?
(settings.py in second myproject folder)
The database file name is sqlite3, this worked on Windows with no file extension, does Linux require it?




On 25 July 2013 11:18, Gerald Klein <jk@zognet.com> wrote:
It looks fine but that depends on your folder structure but this is showing "myproject" off the root of the file system, is that correct?




On Thu, Jul 25, 2013 at 5:12 AM, Nigel Legg <nigel.legg@gmail.com> wrote:
I have just moved my project from Windows to Linux.  I have maintained the folder structure, but am getting the message "Unable to open database file - sqlite3".
Settings as follows:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': '/myproject/database/sqlite3',                     
        'USER': '',
        'PASSWORD': '',                 
        'HOST': '',
        'PORT': '',
    }
}
I'm very new at using Linux, is this a path definition error?

Cheers,Nigel

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580 


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment