mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Merge pull request #142 from mauricioabreu/add-standalone-script-doc
Add documentation for standalone scripts
This commit is contained in:
commit
abe1890c5b
1 changed files with 10 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue