摘要:
使用如下代码: $("#click").click(function(){ $.ajax({ url: "{% url 'Analyse:getLastMonthDataByCountry'%}", type: "POST", success: function (data) { str = ""; 阅读全文
posted @ 2020-06-15 17:50
zju_cxl
阅读(55)
评论(0)
推荐(0)
摘要:
一般模型更改时执行一下两条指令: 1. python manage.py makemigrations 2. python manage.py migrate 但是我今天是把两个表通过可视化工具给删掉了,再执行这两条语句就不好使了。 情况如下: 为什么生成不了新的表格呢? 因为系统自动生成的有一张表 阅读全文
posted @ 2020-06-15 15:20
zju_cxl
阅读(575)
评论(0)
推荐(0)
摘要:
配置favicon.ico,即可解决: {% load staticfiles %} <link REL="SHORTCUT ICON" HREF="{% static "images/favicon.ico" %}"/> 需要添加静态文件: 阅读全文
posted @ 2020-06-15 10:01
zju_cxl
阅读(1102)
评论(0)
推荐(0)
摘要:
subject, from_email, to = '来自123的测试邮件', '123@qq.com', '123@hrbust.edu.cn' text_content = 'welcome!' html_content = '<p>欢迎访问<a href="http://www.baidu.c 阅读全文
posted @ 2020-06-15 00:14
zju_cxl
阅读(50)
评论(0)
推荐(0)
摘要:
该错误出现的问题是:SSL选项未选择 setting.py添加以下代码(以QQ邮箱为例子): EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.qq.com' EMAIL_PORT = 4 阅读全文
posted @ 2020-06-15 00:09
zju_cxl
阅读(369)
评论(0)
推荐(0)

浙公网安备 33010602011771号