This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-12-22 23:41:59 +00:00
|
|
|
from flask import Blueprint, render_template
|
2021-12-27 07:54:55 +00:00
|
|
|
from flask.views import View
|
|
|
|
|
2021-12-22 23:29:44 +00:00
|
|
|
|
|
|
|
core = Blueprint('core', __name__)
|
|
|
|
|
|
|
|
|
2021-12-27 07:54:55 +00:00
|
|
|
class UserProfileView(View):
|
|
|
|
template_name = 'ereuse_devicehub/user_profile.html'
|
|
|
|
|
|
|
|
def dispatch_request(self):
|
|
|
|
return render_template(self.template_name)
|
|
|
|
|
|
|
|
|
|
|
|
core.add_url_rule('/profile/', view_func=UserProfileView.as_view('user-profile'))
|