Skip to content

Commit a944d53

Browse files
author
Thinh Nguyen
authored
Merge pull request #4 from shenshan/master
Imported and Computed tables
2 parents 07bce66 + 9006dbb commit a944d53

10 files changed

+8061
-6
lines changed

00-ConnectingToDatabase.ipynb

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,29 @@
207207
"Now your configuration is successfully saved into the local configuration file."
208208
]
209209
},
210+
{
211+
"cell_type": "markdown",
212+
"metadata": {},
213+
"source": [
214+
"If you would like to save this config globally, in which case you automatically load this configuration in any directory, you could do `save_global()`"
215+
]
216+
},
217+
{
218+
"cell_type": "code",
219+
"execution_count": null,
220+
"metadata": {},
221+
"outputs": [],
222+
"source": [
223+
"dj.config.save_global()"
224+
]
225+
},
226+
{
227+
"cell_type": "markdown",
228+
"metadata": {},
229+
"source": [
230+
"The local configuration overwrites the global one."
231+
]
232+
},
210233
{
211234
"cell_type": "markdown",
212235
"metadata": {},
@@ -246,7 +269,7 @@
246269
"dj.config['database.password'] = 'ENTER YOUR NEW PASSWORD HERE'\n",
247270
"\n",
248271
"# and save it to dj_local_config.json\n",
249-
"dj.config.save_local()"
272+
"dj.config.save_global()"
250273
]
251274
},
252275
{
@@ -304,7 +327,7 @@
304327
"name": "python",
305328
"nbconvert_exporter": "python",
306329
"pygments_lexer": "ipython3",
307-
"version": "3.6.2"
330+
"version": "3.7.3"
308331
}
309332
},
310333
"nbformat": 4,

0 commit comments

Comments
 (0)