WCF-tcp

1.创建一个空的解决方案 在里面添加如下IService:用于定义服务契约,引用System.ServiceModel程序集。Service:用于定义服务类型。引用System.ServiceModel程序集、IService、DAL。SopService:控制台应用作为服务宿主,引用System.ServiceModel程序集、IService、ServiceWindowsFormsA...
分类: 其他 发布时间: 02-27 09:53 阅读次数: 0

使用saveFileDialog导出gridControl中 gridView里的数据

private void button1_Click(object sender, EventArgs e) { saveFileDialog1.ShowDialog(); string filepath = saveFileDialog1.FileName.Trim(); string fstyle =...
分类: 其他 发布时间: 02-27 09:53 阅读次数: 0

Redis类

public class RedisCacheImp { private IDatabase cache; private ConnectionMultiplexer connection; public RedisCacheImp() { connection = ConnectionMultiplexer.Connect("127.0.0.1:6379"); cache = con
分类: 其他 发布时间: 02-27 09:53 阅读次数: 0

django-haystack-and-es

https://github.com/Einsteinish/Django-Haystack-Elasticsearch/tree/master/search_apphttps://zhuanlan.zhihu.com/p/34094103elasticsearch模块: http://www.openskill.cn/article/47elasticsearch是一个CS架构的软件,是一个分布式可扩展的实时搜索和分析引擎,也是一个框架 除了后端在服务器上面装了elasticsearch
分类: 其他 发布时间: 02-27 09:52 阅读次数: 0

重写django自带的user model

重写user model : https://www.cnblogs.com/chadiandianwenrou/p/7516224.html
分类: 其他 发布时间: 02-27 09:52 阅读次数: 0

原生django-allauth里面的urls

原生django-allauth里面的urlsurlpatterns = [ path("signup/", views.signup, name="account_signup"), path("login/", views.login, name="account_login"), path("logout/", views.logout, name="account_logout"), path("password/change/", views.password_c
分类: 其他 发布时间: 02-27 09:51 阅读次数: 0

WSGIRequest是什么

WSGIRequest是什么print(request)<WSGIRequest: GET '/profile/'>https://blog.csdn.net/caoshou1866/article/details/100959164def profile(request): # return HttpResponse("hello, success") print('request',request) user = request.user emai
分类: 其他 发布时间: 02-27 09:51 阅读次数: 0

django 里面的@login_required

django 里面的@login_requiredhttps://www.cnblogs.com/wodekaifalog/p/10817275.html
分类: 其他 发布时间: 02-27 09:51 阅读次数: 0

django-allauth

django-allauth案例: https://blog.csdn.net/bbwangj/article/details/89093616官方文档: https://django-allauth.readthedocs.io/en/latest/installation.html特别要注意settings.py文件中使用的是SSL加密方式,EMAIL_USE_SSL = True # SSL加密方式报错Django: SocialApp matching query
分类: 其他 发布时间: 02-27 09:51 阅读次数: 0

django-slug的使用

django-slugdjango-slug的使用: https://zhidao.baidu.com/question/920320198339717299.html
分类: 其他 发布时间: 02-27 09:50 阅读次数: 0

Django开发的一些技术点(类视图,django-taggit,markdownx)

Django一. 类视图(CBV):https://www.cnblogs.com/chichung/p/9886655.htmlhttps://blog.csdn.net/AI_GG/article/details/103696360https://www.cnblogs.com/knighterrant/p/10503645.htmlhttps://blog.csdn.net/xujin0/article/details/84038778https://blog.csdn.net/xujin
分类: 其他 发布时间: 02-27 09:50 阅读次数: 0

django的中间件是什么

django的中间件是什么http://www.manongjc.com/detail/12-yhgjirxsalgqpew.htmlcsrf: https://www.jianshu.com/p/3b3264061b26
分类: 其他 发布时间: 02-27 09:50 阅读次数: 0

templates里面的一些常用语法

templates里面的一些常用语法<a href="{% url 'users:edit_profile' 9 %}">修改资料</a><a href="/accounts/edit_profile/{{ user.id }}">修改资料</a><form enctype="multipart/form-data" action="/learnformapp/edit_user/{{ nid }}" method="post" novalida
分类: 其他 发布时间: 02-27 09:50 阅读次数: 0

python 利用logging记录日志(一)

python 利用logging记录日志(一)最基本的用法:import logginglogging.debug('debug 信息')logging.info('info 信息')logging.warning('warning 信息')logging.error('error 信息')logging.critical('critial 信息')import logginglogging.basicConfig(format='%(asctime)s - %(pathname)s[l
分类: 其他 发布时间: 02-27 09:49 阅读次数: 0

python利用logging记录日志

python利用logging记录日志logging库采取了模块化的设计,提供了许多组件:记录器Logger,处理器Handler, 过滤器Filter和格式化器Formatter.过滤器用于过滤记录器和处理器Logger暴露了应用程序代码能直接使用的接口Logger对象需要做三件事情,首先,它们向应用代码暴露了很多方法,这样应用就可以在运行时记录消息,其次,记录器对象通过严重程度(默认的过滤设施)或者过滤器对象来决定哪些日志消息需要记录下来.第三,记录器对象将相关的日志消息传递给所有感兴趣
分类: 其他 发布时间: 02-27 09:49 阅读次数: 0

学学Dockerfile

学学DockerfileDockerfile中包括FROM、MAINTAINER、RUN、CMD、EXPOSE、ENV、ADD、COPY、ENTRYPOINT、VOLUME、USER、WORKDIR、ONBUILD等13个指令。下面是一个demo实例,可做学习参考:Dockerfile指令详解 - Ruthless - 博客园 (cnblogs.com)Dockerfile 时区设置 - Ruthless - 博客园 (cnblogs.com)下面我们尝试着使用Dockerfile将django
分类: 其他 发布时间: 02-27 09:49 阅读次数: 0

centos7启动网卡

启动网卡在 vim /etc/sysconfig/network-scripts/ifcfg-eth0里面网卡是开机自启动的,但是重启之后,网卡还是没有启动,需要使用service network restart才生效.没有启动网卡的话就无法使用ssh进行连接服务器.为了解决这个问题,可以执行一下命令:systemctl enable network/sbin/chkconfig network on使用以下命令查看sshd是否启动systemctl start sshdsystemct
分类: 其他 发布时间: 02-27 09:48 阅读次数: 0

配置一台新的服务器

配置一台新的服务器安装anaconda: https://blog.csdn.net/jh0218/article/details/85097061安装mysql: https://www.cnblogs.com/luohanguo/p/9045391.htmlyum install redisyum install httpie安装dockercurl -sSL https://get.daocloud.io/docker | shhttps://www.runoob.co
分类: 其他 发布时间: 02-27 09:48 阅读次数: 0

vue 请求接口获取数据

vue 请求接口获取数据1.链接:https://www.cnblogs.com/kymming/p/6484626.html<!doctype html><html> <head> <meta charset="UTF-8"> <title>获取图片列表</title> <meta name="viewport" content="width=device-width
分类: 其他 发布时间: 02-27 09:48 阅读次数: 0

bootstrap file input多文件上传插件

bootstrap file input多文件上传插件文章链接: https://blog.csdn.net/y19910825/article/details/80242331​ https://blog.csdn.net/qq_41520636/article/details/82928825
分类: 其他 发布时间: 02-27 09:47 阅读次数: 0