-
Notes for Studying Django
- Once you added a new application to INSTALLED_APPS, the database tables need to be updated, thus you need to run python manage.py syncdb.
- Normally the server auto-reloads code every time you modify a file, but creating a new file does not trigger the auto-reloading logic. If a new file is added you need to restart the development server by using python manage runserver.
- The url() function is passed four arguments, two required: regex and view, and two optional: kwargs, and name.
- Each view is responsible for doing one of two things: returning an HttpResponse object containing the content for the requested page, or raising an exception such as Http404.
-
相关阅读:
TCP的三次握手与四次挥手理解及面试题(很全面)
python解释器锁的理解
Flask的基本使用、四剑客和配置文件
Django cache缓存
xadmin后台管理
cookies与session
Java stream流
Java IO流
springboot配置文件加载顺序与一些常用配置
OAuth2.0开放授权
-
原文地址:https://www.cnblogs.com/cheese-bacon/p/3185298.html
Copyright © 2020-2023
润新知