Django 修改 app 在 admin 后台显示的名称(verbose_name) # 环境 1. python: 3.6.8 2. django==1.11.22 # app 目录下新建一个 apps.py,添加内容:(我的目录结构多了一层 apps) from d ... continue reading django zhuoyuebiji 2019/7/26 1830
Django 配置 sitemap.xml # settings.py 添加 apps: 'django.contrib.sites', 'django.contrib.sitemaps', INSTALLED ... continue reading django zhuoyuebiji 2019/7/26 656
Pip install pypinyin Killed (djangoblog) [root@taiwan-ss Joyo]# pip install pypinyin Collecting pypinyin Using cached https://files.pythonhost ... continue reading django zhuoyuebiji 2019/7/25 1249
Django 使用邮箱登录(扩展用户表、继承 AbstractUser) # 前提 继承 django 自带的用户类(AbstractUser) # 环境 1. python: 3.6.x 2. django==1.11.22 # ... continue reading django zhuoyuebiji 2019/7/25 943
Centos7 + virtualenv + django + uwsgi + nginx 部署 Django 站点 安装环境 centos: 7.x python: 3.6.x django:1.11 virtualenv 和 virtualenvwrapper 安装 c ... continue reading django zhuoyuebiji 2019/7/24 1458
Django 静态文件使用七牛云存储并使用(nginx 转发静态文件) 部署目的 1. 本地的 python manage.py collectstatic 收集到的静态文件,全部上传到七牛云( 收集静态文件时会把静态文件传到七牛云) 2. 当需要使用静态文件时,使用七牛云上的静态文件,访问速度快, ... continue reading django zhuoyuebiji 2019/7/12 1704
Google 和 百度 SEO google 1. 注册账号:https://search.google.com/search-console 2. 提交 sitemap 百度 1. 注册账号:https://ziyuan.baidu.co ... continue reading django zhuoyuebiji 2019/7/10 631
Python3 + Django + xamdin + DjangoUediter,UEditorField 在 xadmin 下加载不出来的解决办法 使用环境 python==3.6.8 django==1.11.18 xadmin # pip install git+git://github.com/sshwsfc/xadmin.git DjangoUed ... continue reading django zhuoyuebiji 2019/6/13 1003
Django sitemap.xml 修改 loc 显示的 example.com 参考链接:http://blog.sina.com.cn/s/blog_6fbca40e0101er8p.html 进入数据库,找到表单:django_site, 把 settings.py 里面 SITE_ID 对应 id 的字段 ... continue reading django zhuoyuebiji 2018/8/8 1306
网站 http 资源切换成 https jquery : https://libs.baidu.com/jquery/2.1.4/jquery.min.js,https://www.bootcdn.cn/jquery/ amazeui: https: ... continue reading django zhuoyuebiji 2018/8/4 1087