Updated Large app how to (markdown)
parent
1c693b481a
commit
fe43ca5b32
1 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ We'll create 4 modules, an user module (manage user's registration, login, lost
|
||||||
`/run.py` will be used to launch the web server.
|
`/run.py` will be used to launch the web server.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from tol import app
|
from app import app
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -239,7 +239,7 @@ This decorator is checking that g.user has a value assigned to it, otherwise it
|
||||||
from werkzeug import check_password_hash, generate_password_hash
|
from werkzeug import check_password_hash, generate_password_hash
|
||||||
|
|
||||||
from app import db
|
from app import db
|
||||||
from app.users.forms import RegisterForm
|
from app.users.forms import RegisterForm, LoginForm
|
||||||
from app.users.models import User
|
from app.users.models import User
|
||||||
from app.users.decorators import requires_login
|
from app.users.decorators import requires_login
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue