11
Jockeying the Pony Tareque Hossain

Introduction to django-config

Embed Size (px)

DESCRIPTION

DjangoCon 2009: Lightning Talk presentation on django-config, a simple architecture to incorporate multiple configurations in django. Check out the project from github: http://bit.ly/django-config

Citation preview

Page 1: Introduction to django-config

Jockeying the Pony

Tareque Hossain

Page 2: Introduction to django-config

You find the single file settings management to be too restrictive

You have different development, staging and production servers and edit your settings often

You have a large team of developers who use different settings

You have an exclusive settings for testing environment

You are a pony jockey & you want your own saddle

Page 3: Introduction to django-config
Page 4: Introduction to django-config
Page 5: Introduction to django-config
Page 6: Introduction to django-config

Maintain a global settings file which everyone shares

Maintain individual settings: Different developer settings (e.g. dev1, dev2)

Different server settings (e.g. local, staging, production)

Page 7: Introduction to django-config

Define defaults in a base settings fileOverride base settings in individual

settings profile to suit developer/ server need

Define new settings without affecting others

Protect your settings using a password (e.g. production settings)

Share your settings or keep it private

Page 8: Introduction to django-config
Page 9: Introduction to django-config

Maintain and work on your own database

Work with multiple databasesSwitch between databases on the

fly. Experiment with your models without messing up the db

Work with different application setsCreate & test all deployment

circumstances

Page 10: Introduction to django-config
Page 11: Introduction to django-config

Tareque Hossain, PBS TeacherLineEmail: [email protected]: @tarequehDetails: http://bit.ly/django-config