{"id":7312,"date":"2023-02-20T20:22:43","date_gmt":"2023-02-20T16:52:43","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/what-is-flask-blueprints-structuring-project-with-blueprints-4md5\/"},"modified":"2023-02-20T20:22:43","modified_gmt":"2023-02-20T16:52:43","slug":"what-is-flask-blueprints-structuring-project-with-blueprints-4md5","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/what-is-flask-blueprints-structuring-project-with-blueprints-4md5\/","title":{"rendered":"Flask Blueprints \u0686\u06cc\u0633\u062a\u061f  \u0633\u0627\u062e\u062a\u0627\u0631 \u067e\u0631\u0648\u0698\u0647 \u0628\u0627 \u0646\u0642\u0634\u0647 \u0647\u0627"},"content":{"rendered":"<div data-article-id=\"1372773\" id=\"article-body\">\n<p><em>\u0646\u06a9\u062a\u0647: \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0628\u0631\u0627\u06cc \u0647\u0631 \u062a\u063a\u06cc\u06cc\u0631\u06cc \u06a9\u0647 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0633\u0631\u0648\u0631 \u0641\u0644\u0627\u0633\u06a9 \u062e\u0648\u062f \u0631\u0627 \u0645\u062c\u062f\u062f\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f.  \u0645\u06af\u0631 \u0627\u06cc\u0646\u06a9\u0647 \u0633\u0631\u0648\u0631 Flask \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 env \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f.<\/em><\/p>\n<p>Flask \u06cc\u06a9 \u0686\u0627\u0631\u0686\u0648\u0628 \u0648\u0628 \u0633\u0628\u06a9 \u0648 \u0645\u062d\u0628\u0648\u0628 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u0648\u0628 \u0631\u0627 \u0633\u0631\u06cc\u0639 \u0648 \u0622\u0633\u0627\u0646 \u0628\u0633\u0627\u0632\u0646\u062f.  \u06cc\u06a9\u06cc \u0627\u0632 \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u062a\u0631\u06cc\u0646 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc Flask\u060c \u0642\u0627\u0628\u0644\u06cc\u062a \u0637\u0631\u062d \u0627\u0648\u0644\u06cc\u0647 \u0622\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f \u062a\u0627 \u06a9\u062f\u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0645\u0646\u0637\u0642\u06cc \u0633\u0627\u0632\u0645\u0627\u0646\u062f\u0647\u06cc \u06a9\u0646\u0646\u062f.<\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0686\u0646\u062f \u0633\u0627\u0644 \u06a9\u0627\u0631 \u0628\u0627 \u0644\u0627\u0631\u0627\u0648\u0644\u060c \u067e\u0627\u06cc\u062a\u0648\u0646 \u0648 \u06a9\u0645\u06cc \u0641\u0644\u0627\u0633\u06a9 \u0631\u0627 \u062f\u0631 \u0622\u0645\u0648\u0632\u0634 \u0645\u0647\u0646\u062f\u0633\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 ALX \u06cc\u0627\u062f \u06af\u0631\u0641\u062a\u0645.  \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u0627\u0648\u0644\u06cc\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u0627\u0642\u0639\u06cc \u062e\u0648\u062f \u0628\u0627 Flask\u060c \u0628\u0647 \u0633\u0631\u0639\u062a \u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645 \u06a9\u0647 &#8220;\u0641\u0627\u06cc\u0644 \u062a\u0639\u0631\u06cc\u0641 \u0645\u0633\u06cc\u0631&#8221; \u0645\u0646 \u062e\u06cc\u0644\u06cc \u0633\u0631\u06cc\u0639 \u062f\u0631 \u062d\u0627\u0644 \u0631\u0634\u062f \u0627\u0633\u062a.  \u067e\u0631 \u0627\u0632 \u062a\u0639\u0627\u0631\u06cc\u0641 \u0645\u0633\u06cc\u0631\u060c \u062a\u0648\u0627\u0628\u0639 \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0645\u0633\u06cc\u0631 \u0648 \u0645\u0646\u0637\u0642 \u0627\u0633\u062a. <\/p>\n<p><strong>\u0686\u06af\u0648\u0646\u0647 \u0628\u0647 \u0637\u0648\u0631 \u0645\u0648\u062b\u0631 \u0622\u0646 \u0631\u0627 \u062a\u062c\u0632\u06cc\u0647 \u06a9\u0646\u0645\u061f<\/strong><\/p>\n<p>\u0633\u067e\u0633 \u0628\u0647 \u06cc\u0627\u062f \u0622\u0648\u0631\u062f\u0645 \u06a9\u0647 \u0641\u06a9\u0631 \u0645\u06cc \u06a9\u0631\u062f\u0646\u062f \u0645\u0627 Blueprints \u0647\u0633\u062a\u06cc\u0645.  \u062e\u0628 \u0646\u0642\u0634\u0647 \u0647\u0627!  \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0646\u06af\u0627\u0647\u06cc \u062f\u0642\u06cc\u0642\u200c\u062a\u0631 \u0628\u0647 \u0637\u0631\u062d\u200c\u0647\u0627\u06cc \u0641\u0644\u0627\u0633\u06a9 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u0634\u062a \u0648 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0647 \u0634\u0645\u0627 \u062f\u0631 \u0633\u0627\u062e\u062a \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631 \u0648 \u0642\u0627\u0628\u0644 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u06a9\u0645\u06a9 \u06a9\u0646\u0646\u062f.<\/p>\n<p><strong>\u0641\u0644\u0627\u0633\u06a9 \u0628\u0644\u0648\u067e\u0631\u06cc\u0646\u062a \u0686\u06cc\u0633\u062a\u061f<\/strong><\/p>\n<p>\u0637\u0631\u062d\u200c\u0647\u0627\u06cc Flask \u0631\u0627\u0647\u06cc \u0628\u0631\u0627\u06cc \u0633\u0627\u0632\u0645\u0627\u0646\u062f\u0647\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 Flask \u0634\u0645\u0627 \u062f\u0631 \u0648\u0627\u062d\u062f\u0647\u0627\u06cc \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u062c\u062f\u062f \u0648 \u0645\u0647\u0645\u200c\u062a\u0631 \u0627\u0632 \u0647\u0645\u0647 \u0642\u0627\u0628\u0644 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0627\u0633\u062a.  \u0628\u0627 \u0637\u0631\u062d\u200c\u0647\u0627\u06cc \u0627\u0648\u0644\u06cc\u0647\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0642\u0637\u0639\u0627\u062a \u06a9\u0648\u0686\u06a9\u200c\u062a\u0631 \u0648 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a\u200c\u062a\u0631 \u062a\u0642\u0633\u06cc\u0645 \u06a9\u0646\u06cc\u062f \u0648 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0648 \u0645\u0642\u06cc\u0627\u0633 \u0622\u0646 \u0631\u0627 \u0622\u0633\u0627\u0646\u200c\u062a\u0631 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0647\u0631 \u0637\u0631\u062d \u06cc\u06a9 \u0648\u0627\u062d\u062f \u0645\u0633\u062a\u0642\u0644 \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 Flask \u0634\u0645\u0627 \u062b\u0628\u062a \u0634\u0648\u062f.  \u0628\u0644\u0648\u067e\u0631\u06cc\u0646\u062a \u0647\u0627 \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc \u0627\u0632 \u0646\u0645\u0627\u0647\u0627\u060c \u0642\u0627\u0644\u0628 \u0647\u0627 \u0648 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u062b\u0627\u0628\u062a \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u0646\u062f \u06a9\u0647 \u0628\u0627 \u067e\u06cc\u0634\u0648\u0646\u062f URL \u062e\u0627\u0635\u06cc \u0645\u0631\u062a\u0628\u0637 \u0647\u0633\u062a\u0646\u062f.<br \/>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0642\u0634\u0647 \u0647\u0627\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u0633\u0627\u062e\u062a\u0627\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0627\u0646\u0639\u0637\u0627\u0641 \u067e\u0630\u06cc\u0631 \u0648 \u062a\u0648\u0633\u0639\u0647 \u067e\u0630\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u06cc\u062c\u0627\u062f \u0627\u062e\u062a\u0644\u0627\u0644 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u06a9\u062f \u0645\u0648\u062c\u0648\u062f\u060c \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627 \u0648 \u0639\u0645\u0644\u06a9\u0631\u062f\u0647\u0627\u06cc \u062c\u062f\u06cc\u062f\u06cc \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><strong>\u062d\u0627\u0644\u0627 \u0628\u06cc\u0627\u06cc\u06cc\u062f \u062f\u0633\u062a\u0645\u0627\u0646 \u0631\u0627 \u06a9\u062b\u06cc\u0641 \u06a9\u0646\u06cc\u0645<\/strong><\/p>\n<p>\u067e\u0648\u0634\u0647 \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f\u060c \u062f\u0627\u062e\u0644 \u0622\u0646 \u0641\u0627\u06cc\u0644 app.py \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.  \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0627\u062e\u0644 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.  \u067e\u0633 \u0627\u0632 \u0622\u0646\u060c \u0627\u06af\u0631 \u0628\u0647 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u062e\u0648\u062f \u0628\u0631\u0648\u06cc\u062f \u0648 &#8220;flask run&#8221; \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\u060c \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0641\u0644\u0627\u0633\u06a9 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>from flask import Flask\n\ndef create_app():\n    app = Flask(__name__)\n\n    from blueprints.authentication.authentication import authentication as auth_blueprint\n    app.register_blueprint(auth_blueprint)\n\n    from blueprints.profile.profile import profile as profile_blueprint\n    app.register_blueprint(profile_blueprint)\n    return app \n\n\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0628\u0647 \u06a9\u062f \u0628\u0627\u0644\u0627 \u0646\u06af\u0627\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0645\u062a\u0648\u062c\u0647 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u062f\u0648 \u0637\u0631\u062d \u0628\u0631\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0648 \u0646\u0645\u0627\u06cc\u0647 \u0642\u0628\u0644\u0627\u064b \u062b\u0628\u062a \u0634\u062f\u0647 \u0627\u0633\u062a.  \u062d\u0627\u0644\u0627 \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0627\u06cc\u0646 \u0637\u0631\u062d \u0647\u0627 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645. <\/p>\n<p>\u062f\u0631 \u067e\u0648\u0634\u0647 \u0641\u0639\u0644\u06cc \u062e\u0648\u062f \u062c\u0627\u06cc\u06cc \u06a9\u0647 app.py \u062e\u0648\u062f \u0631\u0627 \u062f\u0627\u0631\u06cc\u062f\u060c \u067e\u0648\u0634\u0647 \u0627\u06cc \u0628\u0647 \u0646\u0627\u0645 blueprints \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.  \u062f\u0631 \u062f\u0627\u062e\u0644 \u0637\u0631\u062d\u200c\u0647\u0627\u060c \u062f\u0648 \u067e\u0648\u0634\u0647 \u062f\u06cc\u06af\u0631 \u0628\u0647 \u0646\u0627\u0645\u200c\u0647\u0627\u06cc \u00abprofile\u00bb \u0648 \u00abauthentication\u00bb \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. <\/p>\n<p>\u0639\u0627\u0644\u06cc!<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u062f\u0631 \u067e\u0648\u0634\u0647 \u0647\u0627\u06cc &#8220;profile&#8221; \u0648 &#8220;authentication&#8221; \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<ul>\n<li>\u067e\u0648\u0634\u0647 \u0627\u06cc \u0628\u0647 \u0646\u0627\u0645 static<\/li>\n<li>\u067e\u0648\u0634\u0647 \u0627\u06cc \u0628\u0647 \u0646\u0627\u0645 templates<\/li>\n<\/ul>\n<p>\u062f\u0631 \u062f\u0627\u062e\u0644 \u00ab\u067e\u0631\u0648\u0641\u0627\u06cc\u0644\u00bb\u060c profile.py \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f <br \/>\u062f\u0631 \u062f\u0627\u062e\u0644 &#8220;Authentication&#8221; authenication.py \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<\/p>\n<p>\u062d\u0627\u0644\u0627 \u062f\u0627\u062e\u0644 profile.py \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>from flask import Blueprint, render_template\n\nprofile = Blueprint('profile', __name__, template_folder=\"templates\", static_folder=\"static\", static_url_path=\"\/blueprints\/profile\/static\")\n\n@profile.route('\/profile')\ndef profile_page():\n    return \"profile pages\"\n\n\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0628\u0647 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0631\u0648\u0634 Blueprint \u062a\u0648\u062c\u0647 \u06a9\u0646\u06cc\u062f.  \u0645\u0627 \u0686\u0646\u062f \u0686\u06cc\u0632 \u0631\u0627 \u062f\u0631 \u0622\u0646\u062c\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u06cc\u0645 \u06a9\u0647 \u0645\u0647\u0645\u200c\u062a\u0631 \u0627\u0632 \u0647\u0645\u0647\u060c template_folder \u0628\u0647 Flask \u0645\u06cc\u200c\u06af\u0648\u06cc\u062f \u06a9\u0647 \u06a9\u062c\u0627 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc \u0627\u06cc\u0646 \u0637\u0631\u062d \u0646\u0645\u0627\u06cc\u0647 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u06a9\u0646\u062f.  \u0627\u06cc\u0646 \u067e\u0648\u0634\u0647 \u0627\u06cc \u0628\u0647 \u0646\u0627\u0645 templates \u062f\u0631 \u067e\u0648\u0634\u0647 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0627\u0633\u062a.  static_folder \u0631\u0627 \u0647\u0645 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u06cc\u0645.  \u06a9\u062c\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u062b\u0627\u0628\u062a \u0647\u0631 \u0641\u0627\u06cc\u0644 html \u06a9\u0647 \u062a\u0648\u0633\u0637 \u0627\u06cc\u0646 \u0637\u0631\u062d \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u0634\u0648\u062f \u062c\u0633\u062a\u062c\u0648 \u06a9\u0631\u062f.<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0628\u0631\u0627\u06cc \u0637\u0631\u062d \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a.  \u06a9\u062f \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>from flask import Blueprint, render_template\n\nauthentication = Blueprint('auth', __name__, template_folder=\"templates\", static_folder=\"static\", static_url_path=\"\/blueprints\/profile\/static\")\n\n@authentication.route('\/auth')\ndef auth_page():\n    return \"auth pages\"\n\n\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u0628\u062a\u062f\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u06af\u0641\u062a\u06cc\u0645 \u06a9\u0647 \u0647\u0631 \u0637\u0631\u062d \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u062e\u0648\u062f \u062d\u0627\u0648\u06cc \u0641\u0627\u06cc\u0644\u200c\u0647\u0627 \u0648 \u0642\u0627\u0644\u0628\u200c\u0647\u0627\u06cc \u062b\u0627\u0628\u062a \u062e\u0648\u062f \u0628\u0627\u0634\u062f.  \u0628\u06af\u0630\u0627\u0631\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0646\u0634\u0627\u0646 \u062f\u0647\u06cc\u0645.<\/p>\n<p>\u062f\u0631 \u062f\u0627\u062e\u0644 \u067e\u0648\u0634\u0647 \u0646\u0642\u0634\u0647 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644\u060c \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u067e\u0648\u0634\u0647 \u0627\u0644\u06af\u0648 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f.  \u067e\u0648\u0634\u0647 \u0642\u0627\u0644\u0628 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 html \u0628\u0627 \u0646\u0627\u0645 profile.html \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f <br \/>\u062f\u0627\u062e\u0644 profile\/static \u06cc\u06a9 \u067e\u0648\u0634\u0647 \u0628\u0647 \u0646\u0627\u0645 css \u0648 \u062f\u0631 \u062f\u0627\u062e\u0644 style.css \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.  \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06a9\u062f html \u0628\u0631\u0627\u06cc \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u062f\u0631 profile.html \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>&lt;!doctype html&gt;\n&lt;html lang=\"en\"&gt;\n  &lt;head&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n    &lt;title&gt;Bootstrap demo&lt;\/title&gt;\n    &lt;!-- &lt;link rel=\"stylesheet\" href=\"https:\/\/dev.to\/blueprints\/profile\/static\/css\/styles.css\"&gt; --&gt;\n    &lt;link rel=\"stylesheet\" href=\"{{ url_for('profile.static', filename=\"css\/styles.css\") }}\"&gt;\n    &lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.3\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65\" crossorigin=\"anonymous\"&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;h1&gt;Hello, world!&lt;\/h1&gt;\n    &lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.3\/dist\/js\/bootstrap.bundle.min.js\" integrity=\"sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK\/7HAuoJl+0I4\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0628\u0647 \u0633\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 html \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc css \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0627\u0645 \u062a\u0648\u062c\u0647 \u0648\u06cc\u0698\u0647 \u0627\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.  \u0645\u0646 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0647 \u062f\u0648 \u0631\u0648\u0634 \u0645\u062e\u062a\u0644\u0641 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u0645.  \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647  \u0628\u0647 \u0627\u06cc\u0646 \u062a\u0631\u062a\u06cc\u0628 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0645\u0627\u0645 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u062e\u0648\u062f \u0631\u0627 \u0634\u0627\u0645\u0644 \u06a9\u0646\u06cc\u062f.  \u0627\u06cc\u0646 \u0645\u0637\u0627\u0628\u0642 \u0628\u0627 \u062a\u0639\u0631\u06cc\u0641 static_url \u062f\u0631 \u0631\u0648\u0634 \u0637\u0631\u062d \u0646\u0642\u0634\u0647 \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc url\/profile \u062e\u0648\u062f \u062f\u0631 \u0645\u0631\u0648\u0631\u06af\u0631\u060c \u0628\u0627\u06cc\u062f \u0645\u0633\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0631\u0646\u062f\u0631 profile.html \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>@profile.route('\/profile')\ndef profile_page():\n    return render_template('profile.html')\n\n\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u0641\u0627\u06cc\u0644 css \u0634\u0645\u0627 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06af\u0646\u062c\u0627\u0646\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u067e\u06cc\u0634 \u0628\u0631\u0648\u06cc\u062f \u0648 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0628\u0627 \u0641\u0627\u06cc\u0644 css \u0627\u0633\u062a\u0627\u06cc\u0644 \u062f\u0647\u06cc\u062f.  \u0627\u06cc\u0646 \u0628\u0627\u06cc\u062f \u0633\u0631\u06af\u0631\u0645 \u06a9\u0646\u0646\u062f\u0647 \u0628\u0627\u0634\u062f.<\/p>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u0628\u06cc\u0646\u06cc\u062f\u060c \u0637\u0631\u062d \u0641\u0644\u0627\u0633\u06a9 \u06cc\u06a9 \u0648\u0627\u062d\u062f \u0648\u0627\u0642\u0639\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0641\u0644\u0627\u0633\u06a9 \u0627\u0633\u062a.  \u0647\u0645\u0647 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0646\u0645\u0627\u06cc\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc\u06cc \u0631\u0627 \u062f\u0631 \u0622\u0646\u062c\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u0647 \u0648 \u062a\u0648\u0633\u0637 profile.py \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u0646\u062f.<br \/>\u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0646\u06cc\u0632 \u0647\u0645\u06cc\u0646\u0637\u0648\u0631 \u0627\u0633\u062a. <\/p>\n<p>\u0645\u0645\u0646\u0648\u0646 \u06a9\u0647 \u062e\u0648\u0627\u0646\u062f\u06cc\u062f.  \u0641\u0631\u0627\u0645\u0648\u0634 \u0646\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0646\u0638\u0631 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f \u0648 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f.<\/p>\n<p><strong>\u0645\u0646 Vincent Ikechukwu\u060c \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647 \u0648\u0628 Full Stack \u0648 \u0645\u0647\u0646\u062f\u0633 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0647\u0633\u062a\u0645.<\/strong> \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0644\u06cc\u0646\u06a9 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0628\u0627 \u0645\u0646 \u062f\u0631 \u0634\u0628\u06a9\u0647 \u0647\u0627\u06cc \u0627\u062c\u062a\u0645\u0627\u0639\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0646\u06a9\u062a\u0647: \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0628\u0631\u0627\u06cc \u0647\u0631 \u062a\u063a\u06cc\u06cc\u0631\u06cc \u06a9\u0647 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0633\u0631\u0648\u0631 \u0641\u0644\u0627\u0633\u06a9 \u062e\u0648\u062f \u0631\u0627 \u0645\u062c\u062f\u062f\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f. \u0645\u06af\u0631 \u0627\u06cc\u0646\u06a9\u0647 \u0633\u0631\u0648\u0631 Flask \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 env \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f. Flask \u06cc\u06a9 \u0686\u0627\u0631\u0686\u0648\u0628 \u0648\u0628 \u0633\u0628\u06a9 \u0648 \u0645\u062d\u0628\u0648\u0628 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u0648\u0628 \u0631\u0627 \u0633\u0631\u06cc\u0639 \u0648 \u0622\u0633\u0627\u0646 &hellip;<\/p>\n","protected":false},"author":2,"featured_media":7313,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-7312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/7312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=7312"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/7312\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/7313"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=7312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=7312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=7312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}