{"id":96884,"date":"2022-01-22T00:19:05","date_gmt":"2022-01-21T16:19:05","guid":{"rendered":"http:\/\/www.zhushiyao.com\/?p=96884"},"modified":"2022-01-22T00:19:33","modified_gmt":"2022-01-21T16:19:33","slug":"5b1d9570bd","status":"publish","type":"post","link":"http:\/\/www.zhushiyao.com\/?p=96884","title":{"rendered":"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<p><span style=\"font-family: Ubuntu, 'Source Sans Pro', sans-serif; orphans: 4; text-align: start; white-space: pre-wrap; word-spacing: 0.8px; background-color: #ffffff; color: #888888; font-size: 14px;\">\u5f88\u591a\u4eba\u5bf9Django\u81ea\u5e26\u7684\u7ba1\u7406\u540e\u53f0admin\u662f\u53c8\u7231\u53c8\u6068\uff0c\u4f18\u70b9\u662f\u51e0\u884c\u4ee3\u7801\u914d\u7f6e\u5c31\u53ef\u4ee5\u64b8\u51fa\u4e00\u4e2a\u529f\u80fd\u6027\u5f3a\u7684\u7ba1\u7406\u540e\u53f0\uff0c\u7f3a\u70b9\u5c31\u662f\u4e0d\u600e\u4e48\u7f8e\u89c2\uff0c\u611f\u89c9\u62ff\u4e0d\u51fa\u624b\u3002\u5728\u6240\u6709\u7684Django\u540e\u53f0\u7f8e\u5316\u63d2\u4ef6\u4e2d\uff0cSimpleUI\u5904\u4e8e\u7b2c\u4e00\u9635\u8425\uff0c\u975e\u5e38\u7b26\u5408\u56fd\u4eba\u7684\u5ba1\u7f8e\u89c2\u3002\u672c\u6587\u5c06\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u914d\u7f6e\u4f7f\u7528Simple UI, \u5305\u62ec\u81ea\u5b9a\u4e49\u83dc\u5355\u548c\u63a7\u5236\u9762\u677f\u7b49\u9ad8\u7ea7\u4f7f\u7528\u6280\u5de7.<\/span><\/p>\n<p><span style=\"color: #888888; font-size: 14px;\">\u00a0<\/span><\/p>\n<h2><strong><span style=\"color: #ffa900;\">\u5b89\u88c5<\/span><\/strong><\/h2>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u7b2c\u4e00\u6b65 pip\u5b89\u88c5\u5e76\u52a0\u5165INSTALLED_APPS<\/span><\/h3>\n<pre lang=\"bash\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\"><span style=\"font-size: 14px;\">\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">pip install django-simpleui<\/span><\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u4fee\u6539<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">settings.py<\/code>, \u5c06<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">simpleui<\/code>\u52a0\u5165\u5230<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">INSTALLED_APPS<\/code>\u91cc\u53bb\uff0c\u653e\u5728\u7b2c\u4e00\u884c\uff0c\u4e5f\u5c31\u662fdjango\u81ea\u5e26admin\u7684\u524d\u9762<\/span>\u3002<\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">INSTALLED_APPS<\/span> = [<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'simpleui'<\/span>, <span style=\"color: #aa5500;\"># \u6ce8\u610f\u8fd9\u91cc<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'django.contrib.admin'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'django.contrib.auth'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'django.contrib.contenttypes'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'django.contrib.sessions'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'django.contrib.messages'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'django.contrib.staticfiles'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0  ... \u00a0 \u00a0 <\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">]<\/span><\/pre>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u7b2c\u4e8c\u6b65 \u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f<\/span><\/h3>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u4f7f\u7528<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">python manage.py runserver<\/span><\/code><span style=\"font-size: 14px;\">\u547d\u4ee4\u542f\u52a8\u672c\u5730\u6d4b\u8bd5\u670d\u52a1\u5668, \u8bbf\u95ee<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">\/admin\/<\/span><\/code><span style=\"font-size: 14px;\">, \u5982\u679c\u4f60\u80fd\u770b\u5230\u5982\u4e0b\u9875\u9762\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/span><\/p>\n<p><img decoding=\"async\" class=\"rich_pages\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/10-1642781945.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/p>\n<p><span style=\"color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; orphans: 4; text-align: start; white-space: pre-wrap; word-spacing: 0.8px; background-color: #ffffff; font-size: 14px;\">\u767b\u5f55\u540e\u4f60\u8fd8\u5c06\u770b\u5230\u5982\u4e0b\u7528\u6237\u754c\u9762\uff1a<\/span><\/p>\n<p><img decoding=\"async\" class=\"rich_pages\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/5-1642781945.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u6ce8\u610f\uff1a\u5982\u679c\u4f60\u5728\u751f\u6210\u73af\u5883\u4e2d\u4f7f\u7528SimpleUI\uff0c\u8fd8\u9700\u8981\u4f7f\u7528<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">python manage.py collectstatic<\/code>\u547d\u4ee4\u6536\u96c6\u9759\u6001\u6587\u4ef6\uff0c\u5426\u5219\u6837\u5f0f\u65e0\u6cd5\u6b63\u5e38\u663e\u793a\u3002<\/span><\/p>\n<h2><strong><span style=\"font-size: 16px; color: #ffa900;\">\u5e38\u7528\u914d\u7f6e<\/span><\/strong><\/h2>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u8bbe\u7f6e\u8bed\u8a00, \u53bbLogo\u548c\u7ba1\u7406\u540e\u53f0\u540d\u5b57<\/span><\/h3>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u5f53\u4f60\u770b\u5230\u4ee5\u4e0a\u754c\u9762\u65f6\uff0c\u9996\u5148\u4f60\u60f3\u6539\u52a8\u7684\u4e00\u5b9a\u662f\u8bed\u8a00\uff0c\u53bb\u6389SimpleUI\u7684\u9ed8\u8ba4logo\uff0c\u5e76\u628a<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">Django administration<\/code>\u6539\u6210\u6bd4\u5982\u67d0\u67d0\u7ba1\u7406\u540e\u53f0\u7684\u540d\u5b57\u3002<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u4fee\u6539<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">settings.py<\/code>\uff0c \u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u66f4\u6539\u9ed8\u8ba4\u8bed\u8a00\u4e3a\u4e2d\u6587<\/span>\n\u00a0<span style=\"padding-right: 0.1px; font-size: 12px;\"><span style=\"padding-right: 0.1px; color: #000000;\">LANGUAGE_CODE<\/span> = <span style=\"padding-right: 0.1px; color: #22a2c9;\">'zh-hans'<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u53bb\u6389\u9ed8\u8ba4Logo\u6216\u6362\u6210\u81ea\u5df1Logo\u94fe\u63a5<\/span>\n<span style=\"font-size: 12px;\">\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_LOGO<\/span> = <span style=\"color: #22a2c9;\">'https:\/\/th.bing.com\/th\/id\/R2411a2b340731d67dfa0d84503e915e3?rik=zmYce%2fLys72JVQ&amp;pid=ImgRaw'<\/span><\/span><\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u4fee\u6539\u7ba1\u7406\u540e\u53f0\u7684\u540d\u79f0\u548c\u6807\u9898\u8981\u7a0d\u5fae\u590d\u6742\u4e9b\uff0c\u56e0\u4e3a\u4f60\u4e0d\u80fd\u76f4\u63a5\u5728<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">settings.py<\/span><\/code><span style=\"font-size: 14px;\">\u91cc\u8fdb\u884c\u914d\u7f6e\u3002\u5728\u4efb\u4f55\u4e00\u4e2aapp\u7684\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2a<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">admin.py<\/span><\/code><span style=\"font-size: 14px;\">, \u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\u5373\u53ef\u4fee\u6539(\u672c\u4f8bapp\u540d\u4e3atasks)\u3002\u8fd9\u4e2a\u8bbe\u7f6e\u5c5e\u4e8eDjango\u7684\u8bbe\u7f6e\uff0c\u4e0d\u5c5e\u4e8eSimpleUI\u7684\u8bbe\u7f6e\u3002<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># tasks\/admin.py<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">from<\/span> <span style=\"color: #000000;\">django<\/span>.<span style=\"color: #000000;\">contrib<\/span> <span style=\"color: #770088;\">import<\/span> <span style=\"color: #000000;\">admin<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">admin<\/span>.<span style=\"color: #000000;\">site<\/span>.<span style=\"color: #000000;\">site_header<\/span> = <span style=\"color: #22a2c9;\">'\u5927\u6c5f\u72d7\u7ba1\u7406\u540e\u53f0'<\/span> \u00a0<span style=\"color: #aa5500;\"># \u8bbe\u7f6eheader<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">admin<\/span>.<span style=\"color: #000000;\">site<\/span>.<span style=\"color: #000000;\">site_title<\/span> = <span style=\"color: #22a2c9;\">'\u5927\u6c5f\u72d7\u7ba1\u7406\u540e\u53f0'<\/span> \u00a0 <span style=\"color: #aa5500;\"># \u8bbe\u7f6etitle<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">admin<\/span>.<span style=\"color: #000000;\">site<\/span>.<span style=\"color: #000000;\">index_title<\/span> = <span style=\"color: #22a2c9;\">'\u5927\u6c5f\u72d7\u7ba1\u7406\u540e\u53f0'<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">from<\/span> .<span style=\"color: #000000;\">models<\/span> <span style=\"color: #770088;\">import<\/span> <span style=\"color: #000000;\">Task<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">admin<\/span>.<span style=\"color: #000000;\">site<\/span>.<span style=\"color: #000000;\">register<\/span>(<span style=\"color: #000000;\">Task<\/span>)<\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u767b\u5f55\u540e\u7684\u6548\u679c\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\"><img decoding=\"async\" class=\"rich_pages\" style=\"white-space: normal;\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/1-1642781945.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 14px; orphans: 4; text-align: start; white-space: pre-wrap; word-spacing: 0.8px;\">\u73b0\u5728\u4f60\u53ef\u4ee5\u770b\u5230\u8bed\u8a00\u3001logo\u548c\u7ba1\u7406\u540e\u53f0\u540d\u5b57\u90fd\u5df2\u7ecf\u6539\u8fc7\u6765\u4e86\u3002\u4f46\u662f\u4f60\u4f1a\u53d1\u73b0\u4e24\u4e2a\u95ee\u9898\uff0c\u5de6\u4fa7\u83dc\u5355\u7684tasks\u663e\u793a\u7684\u4f9d\u7136\u662f\u82f1\u6587\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u8bbe\u7f6e\u6210\u4e2d\u6587\u3002\u53e6\u5916\uff0c\u53f3\u4fa7\u6709simpleui\u7684\u5e7f\u544a\u94fe\u63a5\uff0c\u9875\u9762\u80cc\u540e\u6709js\u6587\u4ef6\u8ddf\u8e2asimpleui\u7684\u4f7f\u7528\uff0c\u8fd9\u4e9b\u90fd\u9700\u8981\u5173\u95ed\u3002\u6211\u4eec\u63a5\u4e0b\u6765\u6559\u4f60\u5982\u4f55\u89e3\u51b3\u8fd9\u4e24\u4e2a\u95ee\u9898\u3002<\/span><\/p>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u81ea\u5b9a\u4e49\u6216\u7b2c\u4e09\u65b9APP\u540d\u548c\u6a21\u578b\u540d\u4fee\u6539\u6210\u4e2d\u6587<\/span><\/h3>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u4fee\u6539<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">tasks\/app.py<\/code>, \u901a\u8fc7<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">verbose_name<\/code>\u53ef\u4ee5\u5c06app\u540d\u6539\u4e3a\u4e2d\u6587\uff0c\u8fd9\u91cc\u5c06<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">tasks<\/code> \u6539\u6210\u4e86<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">\u4efb\u52a1\u7ba1\u7406<\/code>\u3002<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">from<\/span> <span style=\"color: #000000;\">django<\/span>.<span style=\"color: #000000;\">apps<\/span> <span style=\"color: #770088;\">import<\/span> <span style=\"color: #000000;\">AppConfig<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">class<\/span> <span style=\"color: #0000ff;\">TasksConfig<\/span>(<span style=\"color: #000000;\">AppConfig<\/span>):<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">name<\/span> = <span style=\"color: #22a2c9;\">'tasks'<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">verbose_name<\/span> = <span style=\"color: #22a2c9;\">'\u4efb\u52a1\u7ba1\u7406'<\/span><\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u63a5\u7740\u4fee\u6539<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">tasks\/models.py<\/span><\/code><span style=\"font-size: 14px;\">, \u4ee5\u4e2d\u6587\u8bbe\u7f6e\u6a21\u578b\u7684<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">verbose_name<\/span><\/code><span style=\"font-size: 14px;\">, \u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">from<\/span> <span style=\"color: #000000;\">django<\/span>.<span style=\"color: #000000;\">db<\/span> <span style=\"color: #770088;\">import<\/span> <span style=\"color: #000000;\">models<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">class<\/span> <span style=\"color: #0000ff;\">Status<\/span>(<span style=\"color: #000000;\">models<\/span>.<span style=\"color: #000000;\">TextChoices<\/span>):<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">UNSTARTED<\/span> = <span style=\"color: #22a2c9;\">'u'<\/span>, <span style=\"color: #22a2c9;\">\"Not started yet\"<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">ONGOING<\/span> = <span style=\"color: #22a2c9;\">'o'<\/span>, <span style=\"color: #22a2c9;\">\"Ongoing\"<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">FINISHED<\/span> = <span style=\"color: #22a2c9;\">'f'<\/span>, <span style=\"color: #22a2c9;\">\"Finished\"<\/span><\/span>\n\u00a0\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">class<\/span> <span style=\"color: #0000ff;\">Task<\/span>(<span style=\"color: #000000;\">models<\/span>.<span style=\"color: #000000;\">Model<\/span>):<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">name<\/span> = <span style=\"color: #000000;\">models<\/span>.<span style=\"color: #000000;\">CharField<\/span>(<span style=\"color: #000000;\">verbose_name<\/span>=<span style=\"color: #22a2c9;\">\"Task name\"<\/span>, <span style=\"color: #000000;\">max_length<\/span>=<span style=\"color: #116644;\">65<\/span>, <span style=\"color: #000000;\">unique<\/span>=<span style=\"color: #770088;\">True<\/span>)<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">status<\/span> = <span style=\"color: #000000;\">models<\/span>.<span style=\"color: #000000;\">CharField<\/span>(<span style=\"color: #000000;\">verbose_name<\/span>=<span style=\"color: #22a2c9;\">\"Task status\"<\/span>, <span style=\"color: #000000;\">max_length<\/span>=<span style=\"color: #116644;\">1<\/span>, <span style=\"color: #000000;\">choices<\/span>=<span style=\"color: #000000;\">Status<\/span>.<span style=\"color: #000000;\">choices<\/span>)<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #770088;\">class<\/span> <span style=\"color: #0000ff;\">Meta<\/span>:<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #000000;\">verbose_name<\/span> = <span style=\"color: #22a2c9;\">\"\u4efb\u52a1\"<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #000000;\">verbose_name_plural<\/span> = <span style=\"color: #22a2c9;\">\"\u4efb\u52a1\"<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #770088;\">def<\/span> <span style=\"color: #0000ff;\">__str__<\/span>(<span style=\"color: #0055aa;\">self<\/span>):<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #770088;\">return<\/span> <span style=\"color: #0055aa;\">self<\/span>.<span style=\"color: #000000;\">name<\/span><\/span>\n<\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u73b0\u5728\u5237\u65b0\u9875\u9762\uff0c\u4f60\u5c06\u770b\u5230tasks\u82f1\u6587\u90fd\u53d8\u6210\u4e2d\u6587\u4e86\u3002<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\"><img decoding=\"async\" class=\"rich_pages\" style=\"white-space: normal;\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/1-1642781945-1.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u5b9e\u9645Django\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u8fd8\u4f1a\u7528\u5230\u7b2c\u4e09\u65b9\u5e94\u7528app\u548c\u7b2c\u4e09\u65b9app\u63d0\u4f9b\u7684\u6a21\u578b\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6253\u8865\u4e01\u7684\u65b9\u5f0f\u66f4\u6539\u7b2c\u4e09\u65b9app\u6216\u6a21\u578b\u4ee5\u53ca\u6a21\u578b\u5b57\u6bb5\u7684<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">verbose_name<\/code>\u6216\u8005<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">label<\/code>\uff0c\u5c06\u5176\u4fee\u6539\u6210\u4e2d\u6587\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<pre lang=\"\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">from third_package.models import ModelA<\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">ModelA._meta.verbose_name = ''<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">ModelA._meta.verbose_name_plural = ''<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">ModelA._meta.get_field('first_name').verbose_name = '\u540d\u5b57'<\/span><\/pre>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u5173\u95ed\u53f3\u4fa7\u5e7f\u544a\u94fe\u63a5\u548c\u4f7f\u7528\u5206\u6790<\/span><\/h3>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u4fee\u6539<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">settings.py<\/code>, \u6dfb\u52a0\u5982\u4e0b\u4e24\u884c\u4ee3\u7801\uff1a<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u9690\u85cf\u53f3\u4fa7SimpleUI\u5e7f\u544a\u94fe\u63a5\u548c\u4f7f\u7528\u5206\u6790<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_INFO<\/span> = <span style=\"color: #770088;\">False<\/span> <\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_ANALYSIS<\/span> = <span style=\"color: #770088;\">False<\/span> <\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\">\u73b0\u5728\u67e5\u770b\u6548\u679c\uff0c\u662f\u4e0d\u662f\u6e05\u723d\u591a\u4e86?<\/p>\n<p><img decoding=\"async\" class=\"rich_pages\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/10-1642781945-1.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\">\u5b9e\u9645\u4e0a\u9996\u9875\u7684\u5feb\u6377\u64cd\u4f5c\u548c\u6700\u8fd1\u52a8\u4f5c\u4e5f\u53ef\u4ee5\u5173\u95ed\uff0c\u5728\u81ea\u5b9a\u4e49\u9996\u9875\u90e8\u5206\u6211\u4eec\u4f1a\u8bb2\u5230\u3002<\/p>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u8bbe\u7f6e\u9ed8\u8ba4\u4e3b\u9898<\/span><\/h3>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">SimpleUI\u9ed8\u8ba4\u4e3b\u9898(default)\u662f\u6df1\u84dd\u8272\u7684\uff0c\u5b83\u652f\u6301\u7684\u4e3b\u9898\u6709<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">Element-ui<\/code>, <code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">Admin Lte<\/code>\u548c<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">Layui<\/code>\u7b49\u591a\u79cd\u98ce\u683c\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u53f3\u4e0a\u89d2\u4e0b\u62c9\u83dc\u5355\u6539\u53d8\u4e3b\u9898\uff0c\u4e5f\u53ef\u4ee5\u5728<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">settings.py<\/code>\u4e2d\u8bbe\u7f6e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u8bbe\u7f6e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u6307\u5411\u4e3b\u9898css\u6587\u4ef6\u540d\u3002Admin Lte\u98ce\u683c<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_DEFAULT_THEME<\/span> = <span style=\"color: #22a2c9;\">'admin.lte.css'<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u8bbe\u7f6e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u6307\u5411\u4e3b\u9898css\u6587\u4ef6\u540d\u3002Element-ui\u98ce\u683c<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_DEFAULT_THEME<\/span> = <span style=\"color: #22a2c9;\">'element.css'<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u8bbe\u7f6e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u6307\u5411\u4e3b\u9898css\u6587\u4ef6\u540d\u3002layui\u98ce\u683c<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_DEFAULT_THEME<\/span> = <span style=\"color: #22a2c9;\">'layui.css'<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u8bbe\u7f6e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u6307\u5411\u4e3b\u9898css\u6587\u4ef6\u540d\u3002\u7d2b\u8272\u98ce\u683c<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_DEFAULT_THEME<\/span> = <span style=\"color: #22a2c9;\">'purple.css'<\/span><\/span><\/pre>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u81ea\u5b9a\u4e49\u83dc\u5355<\/span><\/h3>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u5de6\u4fa7\u53ef\u6298\u53e0\u83dc\u5355\u662fSimple UI\u7cfb\u7edf\u9ed8\u8ba4\u83dc\u5355\uff0c\u6839\u636e\u5df2\u6ce8\u518c\u7684\u5e94\u7528\u548c\u6a21\u578b\u81ea\u52a8\u751f\u6210\uff0c\u5176\u4e2d\u7236\u7ea7\u83dc\u5355\u662fApp\u540d\uff0c\u5b50\u83dc\u5355\u4e00\u822c\u662f\u6240\u5c5eApp\u7684\u5404\u4e2a\u6a21\u578b\u540d\u3002SimpleUI\u751a\u81f3\u4f1a\u81ea\u52a8\u4e3a\u4f60\u5206\u914d\u9ed8\u8ba4\u56fe\u6807\uff0c\u6bd4\u5982\u672c\u4f8b\u7684tasks\u7684\u5e94\u7528\u4f7f\u7528\u4e86font-awsome\u7684<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">fa fa-tasks<\/span><\/code><span style=\"font-size: 14px;\">\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0cSimple UI\u7cfb\u7edf\u9ed8\u8ba4\u83dc\u5355\u4e0d\u80fd\u6ee1\u8db3\u9700\u6c42\uff0c\u8fd9\u65f6\u4f60\u5c31\u9700\u8981\u81ea\u5b9a\u4e49\u83dc\u5355\u4e86\uff0c\u6bd4\u5982\u6dfb\u52a0\u65b0\u7684\u9009\u9879\u6216\u7ed9\u83dc\u5355\u9009\u9879\u5206\u914d\u65b0\u7684\u56fe\u6807\u3002<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u4fee\u6539<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">settings.py<\/span><\/code><span style=\"font-size: 14px;\">, \u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_CONFIG<\/span> = {<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 <span style=\"color: #aa5500;\"># \u662f\u5426\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u83dc\u5355\uff0c\u81ea\u5b9a\u4e49\u83dc\u5355\u65f6\u5efa\u8bae\u5173\u95ed\u3002<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #22a2c9;\">'system_keep'<\/span>: <span style=\"color: #770088;\">False<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 <span style=\"color: #aa5500;\"># \u7528\u4e8e\u83dc\u5355\u6392\u5e8f\u548c\u8fc7\u6ee4, \u4e0d\u586b\u6b64\u5b57\u6bb5\u4e3a\u9ed8\u8ba4\u6392\u5e8f\u548c\u5168\u90e8\u663e\u793a\u3002\u7a7a\u5217\u8868[] \u4e3a\u5168\u90e8\u4e0d\u663e\u793a.<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #22a2c9;\">'menu_display'<\/span>: [<span style=\"color: #22a2c9;\">'\u4efb\u52a1\u7ba1\u7406'<\/span>, <span style=\"color: #22a2c9;\">'\u6743\u9650\u8ba4\u8bc1'<\/span>],<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #aa5500;\"># \u8bbe\u7f6e\u662f\u5426\u5f00\u542f\u52a8\u6001\u83dc\u5355, \u9ed8\u8ba4\u4e3aFalse. \u5982\u679c\u5f00\u542f, \u5219\u4f1a\u5728\u6bcf\u6b21\u7528\u6237\u767b\u9646\u65f6\u5237\u65b0\u5c55\u793a\u83dc\u5355\u5185\u5bb9\u3002<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #aa5500;\"># \u4e00\u822c\u5efa\u8bae\u5173\u95ed\u3002<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #22a2c9;\">'dynamic'<\/span>: <span style=\"color: #770088;\">False<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #22a2c9;\">'menus'<\/span>: [<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0  {<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'app'<\/span>: <span style=\"color: #22a2c9;\">'auth'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'name'<\/span>: <span style=\"color: #22a2c9;\">'\u6743\u9650\u8ba4\u8bc1'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'icon'<\/span>: <span style=\"color: #22a2c9;\">'fas fa-user-shield'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'models'<\/span>: [<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  {<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'name'<\/span>: <span style=\"color: #22a2c9;\">'\u7528\u6237\u5217\u8868'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'icon'<\/span>: <span style=\"color: #22a2c9;\">'fa fa-user'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'url'<\/span>: <span style=\"color: #22a2c9;\">'auth\/user\/'<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  },<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  {<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'name'<\/span>: <span style=\"color: #22a2c9;\">'\u7528\u6237\u7ec4'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'icon'<\/span>: <span style=\"color: #22a2c9;\">'fa fa-th-list'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'url'<\/span>: <span style=\"color: #22a2c9;\">'auth\/group\/'<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  }<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  ]<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0  },<\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0  {<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'name'<\/span>: <span style=\"color: #22a2c9;\">'\u4efb\u52a1\u7ba1\u7406'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'icon'<\/span>: <span style=\"color: #22a2c9;\">'fa fa-th-list'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'models'<\/span>: [<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  {<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'name'<\/span>: <span style=\"color: #22a2c9;\">'\u4efb\u52a1\u5217\u8868'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\"># \u6ce8\u610furl\u6309'\/admin\/\u5e94\u7528\u540d\u5c0f\u5199\/\u6a21\u578b\u540d\u5c0f\u5199\/'\u547d\u540d\u3002\u00a0<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'url'<\/span>: <span style=\"color: #22a2c9;\">'\/admin\/tasks\/task\/'<\/span>,<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #22a2c9;\">'icon'<\/span>: <span style=\"color: #22a2c9;\">'fa fa-tasks'<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  },<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  ]<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0  },<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0  ]<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">}<\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u81ea\u5b9a\u4e49\u83dc\u5355\u6548\u679c\u5982\u4e0b\u6240\u793a\u3002\u6211\u4eec\u66f4\u6539\u4e86SimpleUI\u9ed8\u8ba4\u5206\u914d\u7684\u56fe\u6807\u3002\u4f60\u8fd8\u53ef\u4ee5\u968f\u610f\u589e\u51cf\u83dc\u5355\u9009\u9879\u5e76\u5bf9\u5176\u8fdb\u884c\u6392\u5e8f:<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\"><img decoding=\"async\" class=\"rich_pages\" style=\"white-space: normal;\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/2-1642781945.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/span><\/p>\n<h3 style=\"break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.4rem; margin-top: 20px; margin-bottom: 7px; font-weight: bold; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u81ea\u5b9a\u4e49\u9996\u9875<\/span><\/h3>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">SimpleUI\u9ed8\u8ba4\u9996\u9875\u7531\u5feb\u6377\u94fe\u63a5\u548c\u6700\u8fd1\u52a8\u4f5c\u7ec4\u6210\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u9690\u85cf\uff0c\u5e76\u5c06\u5176\u94fe\u63a5\u5230\u5176\u5b83url\u3002<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u7ee7\u7eed\u4fee\u6539<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">settings.py<\/code>, \u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u9690\u85cf\u9996\u9875\u7684\u5feb\u6377\u64cd\u4f5c\u548c\u6700\u8fd1\u52a8\u4f5c<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_QUICK<\/span> = <span style=\"color: #770088;\">False<\/span> <\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_ACTION<\/span> = <span style=\"color: #770088;\">False<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u4fee\u6539\u5de6\u4fa7\u83dc\u5355\u9996\u9875\u8bbe\u7f6e<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_PAGE<\/span> = <span style=\"color: #22a2c9;\">'https:\/\/www.baidu.com'<\/span> \u00a0<span style=\"color: #aa5500;\"># \u6307\u5411\u9875\u9762<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_TITLE<\/span> = <span style=\"color: #22a2c9;\">'\u767e\u5ea6\u6b22\u8fce\u4f60!'<\/span> <span style=\"color: #aa5500;\"># \u9996\u9875\u6807\u9898<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_ICON<\/span> = <span style=\"color: #22a2c9;\">'fa fa-code'<\/span> <span style=\"color: #aa5500;\"># \u9996\u9875\u56fe\u6807<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u8bbe\u7f6e\u53f3\u4e0a\u89d2Home\u56fe\u6807\u8df3\u8f6c\u94fe\u63a5\uff0c\u4f1a\u4ee5\u53e6\u5916\u4e00\u4e2a\u7a97\u53e3\u6253\u5f00<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_INDEX<\/span> = <span style=\"color: #22a2c9;\">'https:\/\/www.baidu.com'<\/span><\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u5c55\u793a\u6548\u679c\u5c06\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p><img decoding=\"async\" class=\"rich_pages\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/3-1642781946.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u5b9e\u9645\u5e94\u7528\u4e2d\u540e\u53f0\u9996\u9875\u901a\u5e38\u662f\u63a7\u5236\u9762\u677f\uff0c\u9700\u8981\u7528\u56fe\u8868\u5f62\u5f0f\u5c55\u793a\u5404\u79cd\u5173\u952e\u6570\u636e\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u91cd\u5199\u9996\u9875\u4e86\u3002\u8fd9\u91cc\u4e3b\u8981\u6709\u4e24\u79cd\u5b9e\u73b0\u65b9\u6cd5\u3002\u7b2c\u4e00\u79cd\u662f\u91cd\u5199simpleui\u81ea\u5e26\u7684<code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\">home.html<\/code>, \u53e6\u4e00\u79cd\u81ea\u5df1\u7f16\u5199\u4e00\u4e2a\u63a7\u5236\u9762\u677f\u7684\u9875\u9762\uff0c\u7136\u540e\u8bbe\u7f6e\u9996\u9875\u6307\u5411\u5b83, \u4e2a\u4eba\u503e\u5411\u4e8e\u7b2c\u4e8c\u79cd, \u56e0\u4e3a\u5b83\u5b8c\u5168\u4e0d\u6d89\u53ca\u6539\u52a8simpleui\u7684\u6e90\u7801\u3002<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u6211\u4eec\u73b0\u5728\u5f00\u59cb\u4f7f\u7528Django\u7f16\u5199\u4e00\u4e2a\u7528\u4e8e\u663e\u793a\u63a7\u5236\u9762\u677f\u7684\u9875\u9762\uff0c\u7528\u4e8e\u5728\u9996\u9875\u663e\u793a\u6ce8\u518c\u7528\u6237\u6570\u91cf\u53ca\u4efb\u52a1\u6570\u91cf\u3002URL\u8def\u7531\u53ca\u5bf9\u5e94\u7684\u89c6\u56fe\u51fd\u6570\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># tasks\/urls.py<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">urlpatterns<\/span> = [<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">path<\/span>(<span style=\"color: #22a2c9;\">'tasks\/dashboard\/'<\/span>, <span style=\"color: #000000;\">views<\/span>.<span style=\"color: #000000;\">dashboard<\/span>, <span style=\"color: #000000;\">name<\/span>=<span style=\"color: #22a2c9;\">'dashboard'<\/span>),<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\">]<\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># tasks\/views.py<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">from<\/span> <span style=\"color: #000000;\">django<\/span>.<span style=\"color: #000000;\">contrib<\/span>.<span style=\"color: #000000;\">auth<\/span>.<span style=\"color: #000000;\">models<\/span> <span style=\"color: #770088;\">import<\/span> <span style=\"color: #000000;\">User<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">from<\/span> <span style=\"color: #000000;\">django<\/span>.<span style=\"color: #000000;\">shortcuts<\/span> <span style=\"color: #770088;\">import<\/span> <span style=\"color: #000000;\">render<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">from<\/span> .<span style=\"color: #000000;\">models<\/span> <span style=\"color: #770088;\">import<\/span> <span style=\"color: #000000;\">Task<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #770088;\">def<\/span> <span style=\"color: #0000ff;\">dashboard<\/span>(<span style=\"color: #000000;\">request<\/span>):<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">user_count<\/span> = <span style=\"color: #000000;\">User<\/span>.<span style=\"color: #000000;\">objects<\/span>.<span style=\"color: #000000;\">count<\/span>()<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">task_count<\/span> = <span style=\"color: #000000;\">Task<\/span>.<span style=\"color: #000000;\">objects<\/span>.<span style=\"color: #000000;\">count<\/span>()<\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #000000;\">context<\/span> = { <span style=\"color: #22a2c9;\">'user_count'<\/span>: <span style=\"color: #000000;\">user_count<\/span>, <span style=\"color: #22a2c9;\">'task_count'<\/span>: <span style=\"color: #000000;\">task_count<\/span> }<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #770088;\">return<\/span> <span style=\"color: #000000;\">render<\/span>(<span style=\"color: #000000;\">request<\/span>, <span style=\"color: #22a2c9;\">'tasks\/dashboard.html'<\/span>,<span style=\"color: #000000;\">context<\/span>)<\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u6211\u4eec\u7684\u6a21\u677f\u4e5f\u5f88\u7b80\u5355\uff0c\u4f7f\u7528\u4e86boostrap4\u7684admin lte\u98ce\u683c\u7684\u5361\u7247\u5c55\u793a\u7528\u6237\u603b\u6570\u548c\u4efb\u52a1\u603b\u6570\u3002<\/span><\/p>\n<pre lang=\"html\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #555555;\" role=\"presentation\">&lt;!DOCTYPE html&gt;<\/span>\n\u00a0<span style=\"padding-right: 0.1px; color: #117700;\" role=\"presentation\">&lt;html&gt;<\/span>\n\u00a0<span style=\"padding-right: 0.1px; color: #117700;\" role=\"presentation\">&lt;head&gt;<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #117700;\">&lt;meta<\/span> <span style=\"color: #0000cc;\">charset<\/span>=<span style=\"color: #22a2c9;\">\"utf-8\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #117700;\">&lt;meta<\/span> <span style=\"color: #0000cc;\">http-equiv<\/span>=<span style=\"color: #22a2c9;\">\"X-UA-Compatible\"<\/span> <span style=\"color: #0000cc;\">content<\/span>=<span style=\"color: #22a2c9;\">\"IE=edge\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #117700;\">&lt;title&gt;<\/span>\u63a7\u5236\u9762\u677f<span style=\"color: #117700;\">&lt;\/title&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #aa5500;\">&lt;!-- Tell the browser to be responsive to screen width --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #117700;\">&lt;meta<\/span> <span style=\"color: #0000cc;\">name<\/span>=<span style=\"color: #22a2c9;\">\"viewport\"<\/span> <span style=\"color: #0000cc;\">content<\/span>=<span style=\"color: #22a2c9;\">\"width=device-width, initial-scale=1\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #aa5500;\">&lt;!-- Theme style --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #117700;\">&lt;link<\/span> <span style=\"color: #0000cc;\">rel<\/span>=<span style=\"color: #22a2c9;\">\"stylesheet\"<\/span> <span style=\"color: #0000cc;\">href<\/span>=<span style=\"color: #22a2c9;\">\"https:\/\/adminlte.io\/themes\/AdminLTE\/bower_components\/bootstrap\/dist\/css\/bootstrap.min.css\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #117700;\">&lt;link<\/span> <span style=\"color: #0000cc;\">rel<\/span>=<span style=\"color: #22a2c9;\">\"stylesheet\"<\/span> <span style=\"color: #0000cc;\">href<\/span>=<span style=\"color: #22a2c9;\">\"https:\/\/adminlte.io\/themes\/AdminLTE\/dist\/css\/AdminLTE.min.css\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px; color: #117700;\" role=\"presentation\">&lt;\/head&gt;<\/span>\n\u00a0<span style=\"padding-right: 0.1px; color: #117700;\" role=\"presentation\">&lt;body&gt;<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"wrapper\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> <span style=\"color: #aa5500;\">&lt;!-- Main content --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #117700;\">&lt;section<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"content\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"container-fluid\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- Small boxes (Stat box) --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"row\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"col-sm-3\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- small box --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box bg-info\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"inner\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;h3&gt;<\/span>{{ user_count }}<span style=\"color: #117700;\">&lt;\/h3&gt;<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;p&gt;<\/span>\u7528\u6237\u603b\u6570<span style=\"color: #117700;\">&lt;\/p&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"icon\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"ion ion-bag\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;a<\/span> <span style=\"color: #0000cc;\">href<\/span>=<span style=\"color: #22a2c9;\">\"#\"<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box-footer\"<\/span><span style=\"color: #117700;\">&gt;<\/span>\u66f4\u591a\u4fe1\u606f <span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"fas fa-arrow-circle-right\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;&lt;\/a&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- .\/col --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"col-sm-3\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- small box --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box bg-success\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"inner\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;h3&gt;<\/span>{{ task_count }}<span style=\"color: #117700;\">&lt;\/h3&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;p&gt;<\/span>\u4efb\u52a1\u603b\u6570<span style=\"color: #117700;\">&lt;\/p&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"icon\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"ion ion-stats-bars\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;a<\/span> <span style=\"color: #0000cc;\">href<\/span>=<span style=\"color: #22a2c9;\">\"#\"<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box-footer\"<\/span><span style=\"color: #117700;\">&gt;<\/span>\u66f4\u591a\u4fe1\u606f <span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"fas fa-arrow-circle-right\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;&lt;\/a&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- .\/col --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"col-sm-3\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- small box --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box bg-info\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"inner\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;h3&gt;<\/span>{{ user_count }}<span style=\"color: #117700;\">&lt;\/h3&gt;<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;p&gt;<\/span>\u7528\u6237\u603b\u6570<span style=\"color: #117700;\">&lt;\/p&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"icon\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"ion ion-bag\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;a<\/span> <span style=\"color: #0000cc;\">href<\/span>=<span style=\"color: #22a2c9;\">\"#\"<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box-footer\"<\/span><span style=\"color: #117700;\">&gt;<\/span>\u66f4\u591a\u4fe1\u606f <span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"fas fa-arrow-circle-right\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;&lt;\/a&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- .\/col --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"col-sm-3\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- small box --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box bg-success\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"inner\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;h3&gt;<\/span>{{ task_count }}<span style=\"color: #117700;\">&lt;\/h3&gt;<\/span><\/span>\n\u00a0\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;p&gt;<\/span>\u4efb\u52a1\u603b\u6570<span style=\"color: #117700;\">&lt;\/p&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;div<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"icon\"<\/span><span style=\"color: #117700;\">&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"ion ion-stats-bars\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;a<\/span> <span style=\"color: #0000cc;\">href<\/span>=<span style=\"color: #22a2c9;\">\"#\"<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"small-box-footer\"<\/span><span style=\"color: #117700;\">&gt;<\/span>\u66f4\u591a\u4fe1\u606f <span style=\"color: #117700;\">&lt;i<\/span> <span style=\"color: #0000cc;\">class<\/span>=<span style=\"color: #22a2c9;\">\"fas fa-arrow-circle-right\"<\/span><span style=\"color: #117700;\">&gt;&lt;\/i&gt;&lt;\/a&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #aa5500;\">&lt;!-- .\/col --&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0 \u00a0<span style=\"color: #117700;\">&lt;\/section&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"> \u00a0<span style=\"color: #117700;\">&lt;\/div&gt;<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px; color: #117700;\" role=\"presentation\">&lt;\/body&gt;<\/span>\n<\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u73b0\u5728\u4fee\u6539\u6211\u4eec\u7684<\/span><code style=\"font-family: var(--font-monospace); vertical-align: initial; padding: 2px 4px; border-radius: 2px; font-size: 0.92rem; color: #e96900; background-color: #f8f8f8;\"><span style=\"font-size: 14px;\">settings.py<\/span><\/code><span style=\"font-size: 14px;\">, \u5c06\u9996\u9875\u6307\u5411\u8fd9\u4e2a\u65b0\u521b\u5efa\u7684\u63a7\u5236\u9762\u677f\u3002<\/span><\/p>\n<pre lang=\"python\" style=\"overflow: visible; font-family: var(--font-monospace); font-size: 0.85rem; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; width: inherit; -webkit-font-smoothing: initial; line-height: 1.43rem; border-radius: 2px; overflow-wrap: normal; color: #34495e; background-color: #f8f8f8 !important; padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; border: 1px solid #f4f4f4;\" spellcheck=\"false\">\u00a0<span style=\"padding-right: 0.1px; color: #aa5500;\" role=\"presentation\"># \u4fee\u6539\u9996\u9875\u8bbe\u7f6e, \u6307\u5411\u65b0\u521b\u5efa\u7684\u63a7\u5236\u9762\u677f<\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_PAGE<\/span> = <span style=\"color: #22a2c9;\">'\/tasks\/dashboard\/'<\/span><\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_TITLE<\/span> = <span style=\"color: #22a2c9;\">'\u63a7\u5236\u9762\u677f!'<\/span> <\/span>\n\u00a0<span style=\"padding-right: 0.1px;\" role=\"presentation\"><span style=\"color: #000000;\">SIMPLEUI_HOME_ICON<\/span> = <span style=\"color: #22a2c9;\">'fa fa-eye'<\/span><\/span><\/pre>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">\u5237\u65b0\u6d4f\u89c8\u5668\uff0c\u4f60\u5c31\u4f1a\u53d1\u73b0\u6211\u4eec\u7684\u9996\u9875\u5df2\u7ecf\u4fee\u6539\u4e86\uff0c\u662f\u4e0d\u662f\u5f88\u9177?<\/span><\/p>\n<p><img decoding=\"async\" class=\"rich_pages\" title=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/01\/0-1642781946.png\" alt=\"Django\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\" \/><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; font-size: 16px; text-align: start;\"><span style=\"font-size: 14px;\">Django SimpleUI, \u4f60\u5b66\u4f1a\u4e86\u5417? \u4f53\u9a8c\u5b8c\u4e86SimpleUI, \u6211\u4f1a\u7528\u4e09\u4e2a\u8bcd\u8bed\u6765\u63cf\u8ff0\u5b83, \u56fd\u4eba\u53e3\u5473, \u679c\u7136\u5f88\u7f8e, \u786e\u5b9e\u7b80\u5355! <\/span><span style=\"font-size: 14px; word-spacing: 0.05rem;\">\u8001\u89c4\u77e9, \u770b\u61c2\u4e86\u542c\u61c2\u4e86\u7684\u7559\u8a00\u70b9\u8d5e\u554a!<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\"><span style=\"font-size: 14px;\">\u5927\u6c5f\u72d7<\/span><\/p>\n<p style=\"line-height: 1.6rem; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; word-spacing: 0.05rem; color: #34495e; font-family: Ubuntu, 'Source Sans Pro', sans-serif; text-align: start;\">\u8f6c\u81ea\uff1ahttps:\/\/mp.weixin.qq.com\/s\/_HKXaea1entAf9guNRsv4A<\/p>\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5f88\u591a\u4eba\u5bf9Django\u81ea\u5e26\u7684\u7ba1\u7406\u540e\u53f0admin\u662f\u53c8\u7231\u53c8\u6068\uff0c\u4f18\u70b9\u662f\u51e0\u884c\u4ee3\u7801\u914d\u7f6e\u5c31\u53ef\u4ee5\u64b8\u51fa\u4e00\u4e2a\u529f\u80fd\u6027\u5f3a\u7684\u7ba1\u7406\u540e\u53f0\uff0c\u7f3a &hellip; <a href=\"http:\/\/www.zhushiyao.com\/?p=96884\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cDjango\u5b9e\u6218: \u624b\u628a\u624b\u6559\u4f60\u914d\u7f6eDjango SimpleUI\u6253\u9020\u7f8e\u4e3d\u540e\u53f0(\u591a\u56fe)\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[883,8],"_links":{"self":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/96884"}],"collection":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96884"}],"version-history":[{"count":2,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/96884\/revisions"}],"predecessor-version":[{"id":96895,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/96884\/revisions\/96895"}],"wp:attachment":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96884"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}