January 2018
Intermediate to advanced
456 pages
12h 49m
English
The version of Django that Toaster uses is specified on the /opt/yocto/poky/bitbake/toaster-requirements.txt file, for example:
Django>1.8,<1.9.9
Django and hence Toaster store data in a relational database. The backend configuration is done in the /opt/yocto/poky/bitbake/lib/toaster/toastermain/settings.py file as follows:
TOASTER_SQLITE_DEFAULT_DIR = os.environ.get('TOASTER_DIR') DATABASES = { 'default': { # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'ENGINE': 'django.db.backends.sqlite3', # DB name or full path to database file if using sqlite3. 'NAME': "%s/toaster.sqlite" % TOASTER_SQLITE_DEFAULT_DIR, 'USER': '', 'PASSWORD': '', #'HOST': '127.0.0.1', # e.g. mysql server #'PORT': '3306', # e.g. mysql port ...Read now
Unlock full access