~phanatic/django-configglue/more-supported-releases

« back to all changes in this revision

Viewing changes to doc/quickstart.rst

  • Committer: Ricardo Kirkner
  • Date: 2011-07-27 01:02:05 UTC
  • mfrom: (57.1.3 configglue-1.0-compatible)
  • Revision ID: ricardo.kirkner@canonical.com-20110727010205-03cj5bg5tlntja6w
Updated django-configglue to make it compatible with configglue 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
Start by creating a module called *schema.py*, such as ::
14
14
 
15
15
    import django
16
 
    from configglue.pyschema import Schema, IntConfigOption, BoolConfigOption
 
16
    from configglue.schema import Schema, IntOption, BoolOption
17
17
    from django_configglue.schema import schemas
18
18
 
19
19
 
54
54
 
55
55
Replace the standard *settings.py* module in your project with ::
56
56
 
57
 
    from configglue.pyschema import SchemaConfigParser
 
57
    from configglue.parser import SchemaConfigParser
58
58
    from django_configglue.utils import update_settings
59
59
 
60
60
    from schema import MySchema