django locallibrary tutorial
1.0.0
教程“本地圖書館”網站用Django撰寫。
有關此項目的詳細信息,請參見關聯的MDN教程主頁。
該Web應用程序為一個小型本地圖書館創建了一個在線目錄,用戶可以在其中瀏覽可用的書籍並管理其帳戶。
當前已實施的主要功能是:
要在計算機上啟動該項目並在本地運行:
注意:這已經針對Django 3.10進行了測試(並且可能不起作用或對其他版本不起作用)。
py或py -3而不是python啟動Python): pip3 install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py collectstatic
python3 manage.py test # Run the standard tests. These should all pass.
python3 manage.py createsuperuser # Create a superuser
python3 manage.py runserver
http://127.0.0.1:8000/admin/打開管理網站http://127.0.0.1:8000 ,用新對象查看主站點。