Commits

Mikhail Korobov committed 1a5e5eb

Slightly better example in docs

Comments (0)

Files changed (1)

docs/custom_layouts.rst

 
     def staging():
         env.hosts = ['user@staging.example.com']
-        env.conf = dict(
+        env.conf = COMMON_OPTIONS.copy()
+        env.conf.update(
             REMOTE_CONFIG_TEMPLATE = 'stage_settings.py',
             CONFIG_TEMPLATES_PATHS = ['hosting/staging', 'hosting'],
         )
-        env.conf.update(COMMON_OPTIONS)
         update_env()
 
     def production():
         env.hosts = ['user@example.com']
-        env.conf = dict(
+        env.conf = COMMON_OPTIONS.copy()
+        env.conf.update(
             REMOTE_CONFIG_TEMPLATE = 'prod_settings.py',
             CONFIG_TEMPLATES_PATHS = ['hosting/production', 'hosting'],
         )
-        env.conf.update(COMMON_OPTIONS)
         update_env()