The examples are based on the
polls example from the Django
Project web site. There are two
flavors of this example:
- Under Django version 1.11 in the directory
- Under Django version 2.0 in the directory
See the Examples Directory on GitHub.
The examples for both versions of Django behaviour similarly: there are
Makefile targets to:
initinitialize a local SQLite database for the application (should be the first target executed, if experimenting.
runserverto run a local server
- General utility targets for YAMLCONF:
An example of the usage of YAMLCONF, would be, e.g., in a production
environment, switching to a PostgreSQL database via the creation of a
mysite.yaml file (would need to explicitly install the
DATABASES.default: ENGINE: django.db.backends.postgresql_psycopg2 NAME: mysite USER: mysite PASSWORD: my-password HOST: localhost PORT: ''