前言 Django的配置文件settings.py用于配置整个网站的环境和功能,核心配置必须有项目路径、密钥配置、域名访问权限、App列表、中间件、资源文件、模板配置、数据库的连接方式 基本配置信息 import os # 项目路径 # Build paths inside the project ...
分类:
其他好文 时间:
2021-05-24 06:51:57
阅读次数:
0
基于exynos4412的开发板,编写了一个使用中断的按键程序,实现按键点灯的功能。 实现效果是按下按键灯亮,再按一次灯灭。 旨在学习中断的用法。 linux kernel version:4.4.38 1 gpx3: gpx3 { 2 gpio-controller; 3 #gpio-cells ...
分类:
其他好文 时间:
2021-05-24 06:49:17
阅读次数:
0
import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.*; import java.time.format.DateTimeFormatter; import java.util.Ca ...
分类:
编程语言 时间:
2021-05-24 06:45:07
阅读次数:
0
文件上传 1.前端加入表单 <form method="POST" , action = "/Upload", enctype="multipart/form-data"> <input type="file", name = "file"/><br> <input type="submit", v ...
分类:
Web程序 时间:
2021-05-24 05:55:31
阅读次数:
0
[System.Runtime.InteropServices.DllImport("user32.dll", CharSet =System.Runtime.InteropServices.CharSet.Auto, ExactSpelling =true)] public static exte ...
1.django.db.utils.OperationalError: no such table: django_session 原因:数据库中没有创建对应的表 执行 python manage.py makemigrations; python manage.py migrate 解决 ...
分类:
其他好文 时间:
2021-05-24 05:27:32
阅读次数:
0
1、打开Scopus,使用【检索】-【作者检索】 scopus网址(中文):https://www.scopus.com/search/form.uri?display=authorLookup#author scopus网址(英文):https://blog.scopus.com/ 2、定位作者 ...
分类:
其他好文 时间:
2021-05-24 05:12:13
阅读次数:
0
一个登录窗体,FormBorderStyle属性设置为None,打开后不能挪动位置,有时候会妨碍使用,有点恶心。网上找了段内容,实现拖动效果: #region 无边框拖动效果,Form被PictureBox覆盖,Form事件不会被触发 [System.Runtime.InteropServices. ...
get 头部header为 'content-type': 'application/json' post 头部 'content-type':"application/x-www-form-urlencoded" ...
分类:
其他好文 时间:
2021-05-24 04:36:32
阅读次数:
0
## nginx的日志```SHELL #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_u ...
分类:
系统相关 时间:
2021-05-24 04:12:29
阅读次数:
0