django鍚勪釜鏂囦欢鐨勪綔鐢
Django鏄竴涓紑鏀炬簮浠g爜鐨刉eb搴旂敤妗嗘灦锛岀敤Python璇█鍐欐垚銆

Django鐨勪富瑕佹枃浠跺寘鎷細

manage.py: 涓涓懡浠よ宸ュ叿锛屽彲浠ヤ娇浣犵敤澶氱鏂瑰紡瀵笵jango椤圭洰杩涜浜や簰銆

settings.py: 璇ユ枃浠跺寘鍚簡椤圭洰鐨勯粯璁よ缃紝濡傛暟鎹簱淇℃伅锛岃皟璇曟爣蹇楋紝URLconf绛夈

urls.py: 杩欎釜鏂囦欢鍖呭惈浜嗛」鐩殑URL璁剧疆锛屽嵆濡備綍灏哢RL鏄犲皠鍒拌鍥惧嚱鏁般

wsgi.py: 杩欎釜鏂囦欢鏄敤浜庝綘鐨勯」鐩繍琛屽湪WSGI鍏煎鐨刉eb鏈嶅姟鍣ㄤ笂鐨勫叆鍙g偣銆

init.py: 杩欎釜鏂囦欢鏄竴涓┖鏂囦欢锛屽憡璇塒ython杩欎釜鐩綍搴旇琚湅浣滀竴涓狿ython鍖呫

models.py: 杩欎釜鏂囦欢鍖呭惈浜咲jango鐨凮RM锛岀敤浜庡畾涔変綘鐨勬暟鎹ā鍨嬨

views.py: 杩欎釜鏂囦欢鍖呭惈浜嗕綘鐨勮鍥惧嚱鏁帮紝鐢ㄤ簬鍝嶅簲鐢ㄦ埛璇锋眰銆

admin.py: 杩欎釜鏂囦欢鐢ㄤ簬閰嶇疆Django admin鍚庡彴銆

tests.py: 杩欎釜鏂囦欢鍖呭惈浜嗕綘鐨勬祴璇曚唬鐮併

migrations: 鏂囦欢澶癸紝鍖呭惈浜嗘暟鎹簱杩佺Щ鐨勮褰曘

浠ヤ笂鏄疍jango椤圭洰涓父瑙佺殑鏂囦欢锛屽叿浣撻」鐩繕鍙兘鏈夊叾浠栨枃浠讹紝鏍规嵁椤圭洰闇姹傝屽畾銆

浠ヤ笂灏辨槸Django鍚勪釜鏂囦欢鐨勪綔鐢ㄧ殑璇︾粏鍐呭锛屾洿澶氫俊鎭鍏虫敞OD浜戝叾瀹冪浉鍏虫枃绔狅紒



鏈枃URL锛http://www.odweb.cn/news_show.html?id=388