{"id":567,"date":"2023-11-06T22:54:11","date_gmt":"2023-11-06T14:54:11","guid":{"rendered":"http:\/\/ai.gitpp.com\/?p=567"},"modified":"2023-11-06T22:54:11","modified_gmt":"2023-11-06T14:54:11","slug":"%e5%ae%9e%e6%97%b6-django-%e7%ac%ac-1-%e9%83%a8%e5%88%86%ef%bc%9a%e4%bd%bf%e7%94%a8-django%e3%80%81rabbitmq-%e5%92%8c-vue-js-%e6%9e%84%e5%bb%ba%e8%81%8a%e5%a4%a9%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"http:\/\/ai.gitpp.com\/index.php\/2023\/11\/06\/%e5%ae%9e%e6%97%b6-django-%e7%ac%ac-1-%e9%83%a8%e5%88%86%ef%bc%9a%e4%bd%bf%e7%94%a8-django%e3%80%81rabbitmq-%e5%92%8c-vue-js-%e6%9e%84%e5%bb%ba%e8%81%8a%e5%a4%a9%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/","title":{"rendered":"\u5b9e\u65f6 Django \u7b2c 1 \u90e8\u5206\uff1a\u4f7f\u7528 django\u3001RabbitMQ \u548c Vue.js \u6784\u5efa\u804a\u5929\u5e94\u7528\u7a0b\u5e8f\uff08\u7b80\u4ecb\u548c\u8bbe\u7f6e\uff09"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5b9e\u65f6 Django  \u804a\u5929\u5e94\u7528\u7a0b\u5e8f <\/p>\n\n\n\n<p>\u6211\u4eec\u5c06\u8981\u6784\u5efa\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/danidee10.github.io\/images\/django\/realtime-django\/realtime-django-1.2.gif\" alt=\"\u5b9e\u65f6 Django 1.2\" \/><\/figure>\n\n\n\n<p>\u6211\u5c06\u5e94\u7528\u7a0b\u5e8f\u79f0\u4e3a chatire\uff0c\u4f46\u60a8\u53ef\u4ee5\u968f\u610f\u547d\u540d\u5b83\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installation\">\u5b89\u88c5<\/h2>\n\n\n\n<p><strong><em>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\u5e76\u5c06\u5176\u6fc0\u6d3b<\/em><\/strong><\/p>\n\n\n\n<p>\u7ee7\u7eed\u5b89\u88c5 django\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$&nbsp;pip install&nbsp;django<\/code><\/pre>\n\n\n\n<p>\u4e4b\u540e\u8ba9\u6211\u4eec\u5f00\u59cb\u4e00\u4e2a\u540d\u4e3a \u7684\u65b0\u9879\u76ee<code>chatire<\/code>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$&nbsp;django-admin startproject chatire<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u8fc1\u79fb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$&nbsp;python manage.py migrate<\/code><\/pre>\n\n\n\n<p>\u6700\u540e\uff0c\u542f\u52a8 django \u5f00\u53d1\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$&nbsp;python manage.py runserver<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u4e00\u5207\u6b63\u5e38\u4f60\u5e94\u8be5\u770b\u5230\u8fd9\u4e2a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/danidee10.github.io\/images\/django\/realtime-django\/realtime-django-1.2.png\" alt=\"\u5b9e\u65f6 Django 1.2\" \/><\/figure>\n\n\n\n<p>Django 2.0 \u767b\u9646\u9875\u9762\u770b\u8d77\u6765\u975e\u5e38\u6f02\u4eae\uff01<\/p>\n\n\n\n<p>\u8fd9\u4e00\u90e8\u5206\u5c31\u5230\u6b64\u4e3a\u6b62\u4e86\uff0c\u5728\u4e0b\u4e00\u90e8\u5206\u4e2d\u6211\u4eec\u5c06\u4f7f\u7528 djoser \u5b9e\u73b0\u7528\u6237\u6ce8\u518c\u548c\u8eab\u4efd\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<p>\u672c\u6559\u7a0b\u7684 Repo \u53ef\u5728<a href=\"https:\/\/github.com\/danidee10\/chatire\">Github\u4e0a\u83b7\u53d6<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9e\u65f6 Django \u804a\u5929\u5e94\u7528\u7a0b\u5e8f \u6211\u4eec\u5c06\u8981\u6784\u5efa\u7684\u5185\u5bb9\uff1a \u6211\u5c06\u5e94\u7528\u7a0b\u5e8f\u79f0\u4e3a chatire\uff0c\u4f46\u60a8\u53ef\u4ee5\u968f\u610f\u547d\u540d\u5b83\u3002 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-567","post","type-post","status-publish","format-standard","hentry","category-python"],"blocksy_meta":"","_links":{"self":[{"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/posts\/567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/comments?post=567"}],"version-history":[{"count":1,"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"predecessor-version":[{"id":568,"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/posts\/567\/revisions\/568"}],"wp:attachment":[{"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ai.gitpp.com\/index.php\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}