Answer the question
In order to leave comments, you need to log in
How to get Django to work if it can't "resolve" a fixture for sqlite3?
When starting the project, an error is thrown:
CommandError: No database fixture specified. Please provide the path of at least one fixture in the command line.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'C:\Users\Sergei\My Programm\django\prj16\db.sqlite',
}
}
Could not find any downloads that satisfy the requirement __имя_библиотеки__
Some externally hosted failes were ignored (use --allow-external __имя_библиотеки__ to allow)
Answer the question
In order to leave comments, you need to log in
from os import path, getenv
#....
# base dir отличается от дефолтного принятого в 1.6
# возможно понадобиться поправить пути в других местах
BASE_DIR = path.abspath(path.join(path.dirname(__file__), '../..'))
#....
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': path.join(BASE_DIR, 'db.sqlite3'),
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question