Added 'import os' statement
Added 'import os' statement so you can use os.path.join() when defining DATABASE location
This commit is contained in:
parent
7a353a7d1b
commit
ffff509cf0
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ load that or import the values from there.
|
||||||
First we add the imports in `flaskr.py`::
|
First we add the imports in `flaskr.py`::
|
||||||
|
|
||||||
# all the imports
|
# all the imports
|
||||||
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from flask import Flask, request, session, g, redirect, url_for, abort, \
|
from flask import Flask, request, session, g, redirect, url_for, abort, \
|
||||||
render_template, flash
|
render_template, flash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue