Update for public https://habr.com/post/421887/
This commit is contained in:
23
myapp/ns_user/views.py
Normal file
23
myapp/ns_user/views.py
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
__author__ = 'RemiZOffAlex'
|
||||
__copyright__ = '(c) RemiZOffAlex'
|
||||
__license__ = 'MIT'
|
||||
__email__ = 'remizoffalex@mail.ru'
|
||||
__url__ = 'http://remizoffalex.ru'
|
||||
|
||||
from flask import render_template
|
||||
|
||||
from .. import app
|
||||
|
||||
|
||||
@app.route('/users')
|
||||
def users():
|
||||
"""
|
||||
Список пользователей
|
||||
"""
|
||||
pagedata = {}
|
||||
pagedata['title'] = 'Список пользователей - ' + app.config['TITLE']
|
||||
body = render_template('users.html', pagedata=pagedata)
|
||||
return body
|
||||
Reference in New Issue
Block a user