Django、Vue 和Element UI 前后端原理论述
www.51testing.com 后端开发(Django+Rest Framework+MySQL): Django 负责处理 HTTP 请求和响应,以及 URL 路由的配置。它接收来自前端的 HTTP 请求,并根据 URL 将请求分发给相应的视图函数进行处理。 Rest Framework 是 Django 的扩展,用于快速构建 RESTful API 接口。通过 Rest Framework,可以定义 视图集等。 路由:DRF 提供了灵活的路由功能,用于将 API 请求映射到相应的视图处理函数上。 认证和权限:DRF 支持各种认证和权限控制方式,可以保护 API 的安全性。 分页和过滤:DRF 提供了分页和过滤功能,便于处理大量数据和筛选查询结果。 强大的请求和响应处理:DRF 支持各种数据格式的请求和响应处理,包括 JSON、 XML、HTML 等。 API 文档生成:DRF 自带的 自带的 Browsable API 功能可以生成易于阅读和理解的 API 文档, 方便开发人员和团队的协作。 6 《51 测试天地》七十四 www.51testing.com 4、npm 介绍 在前端环境中,npm 是非常重要的工具,它主要用于管理和安装前端项目的依赖、 构建工具和其他相关资源。以下是 npm 在前端开发中的应用介绍: 依赖管理:npm 可以管理前端项目的依赖,开发者可以在项目的0 码力 | 61 页 | 6.84 MB | 1 年前3Django 官方教程翻译项目
CN) 构建 致谢 当前文档 《Django 官方教程翻译项目》 由 进击的皇虫 使用 书栈(BookStack.CN) 进行 构建,生成于 2018-05-25。 书栈(BookStack.CN) 仅提供文档编写、整理、归类等功能,以及对文档内容的生成和导出工 具。 文档内容由网友们编写和整理,书栈(BookStack.CN) 难以确认文档内容知识点是否错漏。如 果您在阅读文档获取知 将知识准确、高效且有效地传递给每一个人。 同时,如果您在日常生活、工作和学习中遇到有价值有营养的知识文档,欢迎分享到 书栈 (BookStack.CN) ,为知识的传承献上您的一份力量! 如果当前文档生成时间太久,请到 书栈(BookStack.CN) 获取最新的文档,以跟上知识更新换 代的步伐。 文档地址:http://www.bookstack.cn/books/Django-intro-zh README - 5 - 本文档使用 书栈(BookStack.CN) 构建 初识 Django 初识 Django 设计模型 创建模型 享用便捷的 API 动态生成的管理页面:并非徒有其表 规划 URL 编写视图 设计模板 这只是冰山一角 Django 最初被设计用于具有快速开发需求的新闻类站点,目的是要实现简单快捷的网站开发。以下 内容简要介绍了如何使用 Django0 码力 | 103 页 | 1.86 MB | 1 年前3django cms 3.7.x Documentation
now have installed a fully functional CMS. If you need to log in at any time, append ?edit to the URL and hit Return. This will enable the toolbar, from where you can log in and manage your website. If the poll URL configuration to urlpatterns in the project’s urls.py: urlpatterns += i18n_patterns( url(r'^admin/', include(admin.site.urls)), url(r'^polls/', include('polls.urls')), url(r'^', include('cms include('cms.urls')), ) Note that it must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous0 码力 | 409 页 | 1.67 MB | 1 年前3django cms 3.3.x Documentation
something different from the default, it’s indicated with an asterisk *). Database configuration (in URL format): sqlite://localhost/project.db django CMS version: stable Django version: stable Activate Django Congratulations, you now have installed a fully functional CMS. To log in, append ?edit to the URL and hit enter. This will enable the toolbar, from where you can log in and manage your website. If urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s URL pattern needs0 码力 | 386 页 | 1.56 MB | 1 年前3django cms 3.4.x Documentation
Congratulations, you now have installed a fully functional CMS. To log in, append ?edit to the URL and hit enter. This will enable the toolbar, from where you can log in and manage your website. If urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s URL pattern needs urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s URL pattern needs0 码力 | 395 页 | 1.64 MB | 1 年前3django cms 3.5.x Documentation
Congratulations, you now have installed a fully functional CMS. To log in, append ?edit to the URL and hit enter. This will enable the toolbar, from where you can log in and manage your website. If urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s URL pattern needs urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s URL pattern needs0 码力 | 403 页 | 1.69 MB | 1 年前3django cms 3.6.x Documentation
now have installed a fully functional CMS. If you need to log in at any time, append ?edit to the URL and hit Return. This will enable the toolbar, from where you can log in and manage your website. If Add the poll URL configuration to urlpatterns in the project’s urls.py: urlpatterns += i18n_patterns( url(r'^admin/', include(admin.site.urls)), url(r'^polls/', include('polls.urls')), url(r'^', include('cms include('cms.urls')), ) Note that it must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous0 码力 | 278 页 | 1.63 MB | 1 年前3django cms 3.1.x Documentation
our suggestions differ from the default, they’re highlighted below: • Database configuration (in URL format): sqlite://localhost/project.db • django CMS version: stable • Django version: stable • Activate Congratulations, you now have installed a fully functional CMS! To log in, append ?edit to the URL and hit enter. This will enable the toolbar, from where you can log in and manage your website. Switch urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s URL pattern needs0 码力 | 200 页 | 1.63 MB | 1 年前3Django CMS 3.0.x Documentation
where our suggestions differ from the default, they’re highlighted below: • Database configuration (in URL format): sqlite://localhost/project.db • django CMS version: stable • Django version: 1.6 • Activate homepage. Congratulations, you now have installed a fully functional CMS! To log in, append ?edit to the URL and hit enter. This will enable the toolbar, from where you can log in and manage your website. Switch project’s urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s URL pattern needs0 码力 | 180 页 | 1.56 MB | 6 月前3Django CMS 3.9.x Documentation
now have installed a fully functional CMS. If you need to log in at any time, append ?edit to the URL and hit Return. This will enable the toolbar, from where you can log in and manage your website. If project’s settings.py (see the note on The INSTALLED_APPS setting about ordering ). Add the poll URL configuration to urlpatterns in the project’s urls.py: urlpatterns += i18n_patterns( re_path(r'^admin/' include('cms.urls')), ) Note that it must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous0 码力 | 417 页 | 1.68 MB | 6 月前3
共 55 条
- 1
- 2
- 3
- 4
- 5
- 6