Update login
Add profile
This commit is contained in:
22
myapp/ns_profile/views.py
Normal file
22
myapp/ns_profile/views.py
Normal file
@@ -0,0 +1,22 @@
|
||||
__author__ = 'RemiZOffAlex'
|
||||
__copyright__ = '(c) RemiZOffAlex'
|
||||
__license__ = 'MIT'
|
||||
__email__ = 'remizoffalex@mail.ru'
|
||||
__url__ = 'http://remizoffalex.ru'
|
||||
|
||||
from flask import render_template
|
||||
|
||||
from .. import app
|
||||
from ..decorators import login_required
|
||||
|
||||
|
||||
@app.route('/profile')
|
||||
@login_required
|
||||
def profile():
|
||||
"""
|
||||
Личный профиль пользователя
|
||||
"""
|
||||
pagedata = {}
|
||||
pagedata['title'] = 'Мой профиль - {}'.format(app.config['TITLE'])
|
||||
body = render_template('profile.html', pagedata=pagedata)
|
||||
return body
|
||||
Reference in New Issue
Block a user