hi, i know this question is well-known problem. but i have some different question about this

** Win7, 32-bit

i'm new in django and sqlite

i'm following the book named "Learning Website Development with Django"

so i made "$python manage.py syncdb" and my project name was bookmarksdb (in setting.py, i wrote relative path)

first time, it was successful. i saw "it worked!" message in web-browser

but i didnt make admin account, so i deleted whole project folder.

then i followed same course again. (project name was 'bookmarksdb' too, and relative path)

but i can't do that again after i delete project folder.

$python manage.py syncdb

OperationalError: unable to open database file

when i change a project name, it works.

but i want make 'bookmarksdb'again because i'm following the book

how can i fix this.

asked 31 Aug '13, 23:20

duranr's gravatar image

accept rate: 0%

The database that you are working on might be locked/sys can't find it, as the error indicated that it can't access it, so either try & check settings.py for the configuration for the db & its location or delete the app & project & start again with admin & additional app, it might be possible that the configuration might be conflicting, it would be rather advisable to start again rather than trying to find the errors in settings.py. if you would still like to proceed with same settings post the contents of settings.py & your project structure.

You can however download the demo projects from here for the book Learning Website Development with Django.


answered 02 Sep '13, 06:49

simbha's gravatar image

accept rate: 0%

edited 02 Sep '13, 06:58

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 31 Aug '13, 23:20

Seen: 1,226 times

Last updated: 02 Sep '13, 06:58

Related questions

powered by OSQA