Monday, July 22, 2013

dear someone,

I am trying to start up with django using the tutorial on the website. I get the following error "OperationalError: unable to open database file. I have change the mood for all my files so that everybody (user, group and others have all right to all the files in the folder). My settings.py file I have modified to say(so that I can use the builtin sqlite3 with python;

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': './mysite/',                      # Or path to database file if using sqlite3.
        # The following settings are not used with sqlite3:
        'USER': '',
        'PASSWORD': '',
        'HOST': '',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': '',                      # Set to empty string for default.
    }
}

from another tutorial I wonder if it could be that django does not know of where my python is, and vica versa...

i am greatful for any help or suggestions.


stian

--
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.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate