ExamplesΒΆ
The examples are based on the polls example from the Django
Project web site. There are two
flavors of this example:
- Under Django version 2.0 in the directory
examples/django-2.0 - Under Django version 3.0 in the directory
examples/django-3.0
The django-1.11 directory has been removed as it is end of life and
GitHub is generating secuity issues on the old dependencies.
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:
yclist,ycexplainandycsysfiles.
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
psycopg2-binary module):
DATABASES.default:
ENGINE: django.db.backends.postgresql_psycopg2
NAME: mysite
USER: mysite
PASSWORD: my-password
HOST: localhost
PORT: ''