DjangoURL路径注意 📋urlpatterns = [ path('admin/', admin.site.urls), path('index',views.index), #在路径末尾加 '/' 例如:index/ path('login',views.login),] 📋def in ...
分类:
其他好文 时间:
2020-02-08 12:05:08
阅读次数:
72
解决办法 断开wifi,连接手机热点 额外补充 https://github.com/pytorch/vision/tree/master/torchvision/models 几乎所有的常用预训练模型都在这里面 总结下各种模型的下载地址: Resnet: model_urls = { 'resne ...
分类:
其他好文 时间:
2020-02-07 21:06:31
阅读次数:
370
Activity的启动和关闭 1.启动activity activity的启动分为两种,一种为入口activity,另一种为其他activity 在AndroidManifests进行配置,入口activity的启动只要在要启动的activity里加入intent,例如下面代码将MainActivi ...
分类:
移动开发 时间:
2020-02-07 01:10:14
阅读次数:
109
1、框架增加Identity注册功能 2、框架增加identity登录以后获取JWTtoken 3、请求接口通过token请求,增加验证特性 源代码地址:https://github.com/topgunymn/YMNNetCoreFrameWork JWTtoken生成代码: private st ...
分类:
Web程序 时间:
2020-02-06 15:04:18
阅读次数:
111
前面写了关于HTML和Django结合的文章,通过视图与HTML结合,然后加上urls渲染返回给用户浏览器。很明显我们都能看到这些仅仅是静态HTML,那如何通过Django创建动态的HTML呢? 动态的页面 我们先通过一个例子来简单了解下。 1、首先通过在views.py文件中添加一些动态的数据 # ...
分类:
其他好文 时间:
2020-02-05 20:26:16
阅读次数:
85
打开设置>Editor>Code Style>Java>Scheme Default>Imports 设置导入类数值阈值,默认同包类是超过5个变成*,静态导入超过3个变成* 将Class count to use import with "*"改为99(导入同一个包的类超过这个数值自动变为 * ) ...
分类:
其他好文 时间:
2020-02-04 20:30:20
阅读次数:
90
1.在myblog中的urls.py中 from django.urls import include from django.conf.urls import url urlpatterns = [ path('blog/',include('blog.urls')), ] 2.在blog的url ...
分类:
其他好文 时间:
2020-02-04 14:02:45
阅读次数:
135
server { listen 80; server_name ××××.com; access_log /×××/×××/nginx/log/access.log; error_log /×××/×××/nginx/log/error.log; location / { proxy_pass ht ...
分类:
其他好文 时间:
2020-02-02 23:23:14
阅读次数:
95
虽然http的response header类型众多,但是并不是所有的请求都会返回每一种response header类型。 示例:百度搜索soapui create http context www.baidu.com scheme=https get /s?tn=50000021_hao_pg& ...
分类:
Web程序 时间:
2020-02-02 21:55:26
阅读次数:
250
get response status关键字——获取http请求返回的状态码。 示例:获取百度搜索soapui返回的http状态码 create http context www.baidu.com/ scheme=https get /s?wd=soapui&pn=10&oq=soapui&tn= ...
分类:
Web程序 时间:
2020-02-02 21:27:18
阅读次数:
93