Skip to content

Commit

Permalink
Merge pull request #142 from mauricioabreu/add-standalone-script-doc
Browse files Browse the repository at this point in the history
Add documentation for standalone scripts
  • Loading branch information
blueyed committed Jan 12, 2016
2 parents 4f91fcc + 6d52e56 commit abe1890
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/patterns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,13 @@ connecting to a database::
A new ``setup`` method was added to be able to handle the new
:class:`~configurations.values.Value` classes and allow an in-between
modification of the configuration values.


Standalone scripts
------------------

If you want to run scripts outside of your project you need to add these lines
on top of your file::

import configurations
configurations.setup()

0 comments on commit abe1890

Please sign in to comment.