I’m in the settings.py module, and I’m supposed to add the directory to the sqlite database. How do I know where the database is and what the full directory is?
I’m using Windows 7.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The absolute path of the database directory is what you need. For e.g. if your database is named
my.dband lives inC:\users\you\then:Update
AFAIK you do not have to create the database yourself. The database will be created when you run
syncdb. The database can live in any directory you wish. If you want the database to be in you Django project directory just change the path accordingly.For e.g. let us say your Django project lives in
C:\users\you\myproject\. You would then change your settings thus: