{"id":159066,"date":"2020-09-23T05:00:52","date_gmt":"2020-09-22T21:00:52","guid":{"rendered":"http:\/\/4563.org\/?p=159066"},"modified":"2020-09-23T05:00:52","modified_gmt":"2020-09-22T21:00:52","slug":"django-2-2-%e5%af%bc%e5%85%a5%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a8%a1%e5%9d%97%e6%8f%90%e7%a4%ba-modulenotfounderror-no-module-named%ef%bc%9f%e9%85%8d%e7%bd%ae%e9%83%bd%e6%98%af%e6%ad%a3%e7%a1%ae","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=159066","title":{"rendered":"django 2.2 \u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21\u5757\u63d0\u793a ModuleNotFoundError: No module named\uff1f\u914d\u7f6e\u90fd\u662f\u6b63\u786e\u7684\uff0c\u5927\u4f6c\u6307\u70b9\u4e00\u4e8c\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  django 2.2 \u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21\u5757\u63d0\u793a ModuleNotFoundError: No module named\uff1f\u914d\u7f6e\u90fd\u662f\u6b63\u786e\u7684\uff0c\u5927\u4f6c\u6307\u70b9\u4e00\u4e8c\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : callmebigfaceman <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u73af\u5883\uff1a<br \/>pycharm 2018.1.4 professional<br \/>django==2.2<\/p>\n<p>\u95ee\u9898\uff1a<br \/>\u65b0\u589e startapp App\uff0c\u4f46\u662f\u5f53\u6211\u5f15\u7528\u5b83\u7684\u65f6\u5019\uff0c\u62a5\u9519 ModuleNotFoundError: No module named<br \/>setting \u91cc\u9762\u4e5f\u6ce8\u518c\u4e86\u8be5 App      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3416359\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : blueaurora <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\uff0c\u5e94\u8be5\u662f\u57fa\u672c\u4e8b\u60c5\u989d\uff0c\u6211 django3.0 \u6ca1\u9047\u5230\u8fd9\u6837\u7684\u4e8b\u60c5..\u4e3b\u53ea\u80fd\u518d\u4ed4\u7ec6\u67e5\u4e00\u4e0b\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3416360\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nonduality <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u662f\u76f8\u5bf9\u8def\u5f84\u5bfc\u5165\u7684\u95ee\u9898\uff0c\u641c\u4e0b relative import                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3416361\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : callmebigfaceman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @blueaurora <br \/>@nonduality <br \/>\u8c22\u8c22\u5927\u4f6c\uff0c\u6211\u4ed4\u7ec6\u67e5\u4e86\uff0c\u8fd8\u662f\u4e0d\u77e5\u9053\u95ee\u9898\u5728\u54ea\u91cc\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3416362\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nonduality <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b80\u5355\u8bb2\uff0c\u4f60\u5728 pycharm \u91cc\u6ca1\u8bbe\u7f6e\u597d\u8ba9 django \u505a\u76f8\u5173\u7684 setup\uff0c\u4fbf\u4f1a\u51fa ModuleNotFoundError \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>django 2.2 \u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159066"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159066"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159066\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159066"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}