摘要: 当使用:python manage.py runserver 0.0.0.0:8080方法启动开发服务器时,如果对python代码进行修改,则服务器会自动重启。 当使用:python manage.py runserver 0.0.0.0:8080 --noreload方法启动开发服务器时,对dja 阅读全文
posted @ 2020-07-14 10:15 Fmaj-7 阅读(913) 评论(0) 推荐(0)
摘要: class _AttributeHolder(object): """Abstract base class that provides __repr__. The __repr__ method returns a string in the format:: ClassName(attr=nam 阅读全文
posted @ 2020-07-14 09:55 Fmaj-7 阅读(227) 评论(0) 推荐(0)
摘要: Python sorted() 函数 Python 内置函数 描述 sorted() 函数对所有可迭代的对象进行排序操作。 sort 与 sorted 区别: sort 是应用在 list 上的方法,sorted 可以对所有可迭代的对象进行排序操作。 list 的 sort 方法返回的是对已经存在的 阅读全文
posted @ 2020-07-14 09:45 Fmaj-7 阅读(232) 评论(0) 推荐(0)
摘要: callable() 函数用于检查一个对象是否是可调用的。如果返回 True,object 仍然可能调用失败;但如果返回 False,调用对象 object 绝对不会成功。 阅读全文
posted @ 2020-07-08 16:39 Fmaj-7 阅读(286) 评论(0) 推荐(0)
摘要: dict(kwargs, dest=dest, option_strings=[]) 请思考输出结果? 阅读全文
posted @ 2020-07-08 15:45 Fmaj-7 阅读(127) 评论(0) 推荐(0)
摘要: class _ActionsContainer(object): def __init__(self): self._registries = {} def register(self, registry_name, value, object): registry = self._registri 阅读全文
posted @ 2020-07-08 14:42 Fmaj-7 阅读(229) 评论(0) 推荐(0)
摘要: 一、部署设备: nginx服务器:192.168.110.128(转交设备) uwsgi服务器:192.168.110.129/130/131(负载设备) 二、环境配置: 1、django环境(192.168.110.129/130/131) #系统环境yum install -y gcc-c++ 阅读全文
posted @ 2020-07-07 11:55 Fmaj-7 阅读(375) 评论(0) 推荐(0)
摘要: vim ~/.bashrc VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 export WORKON_HOME=$HOME/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh source ~/.bas 阅读全文
posted @ 2020-07-06 16:05 Fmaj-7 阅读(134) 评论(0) 推荐(0)
摘要: cd mkdir .pip cd .pip vim pip.conf [global]#阿里index-url=http://mirrors.aliyun.com/pypi/simple/#百度index-url=https://mirror.baidu.com/pypi/simple#清华inde 阅读全文
posted @ 2020-07-06 15:33 Fmaj-7 阅读(219) 评论(0) 推荐(0)
摘要: #删除 fdfs_monitor /etc/fdfs/storage.conf delete group1 192.168.110.128 #查看 fdfs_monitor /etc/fdfs/storage.conf #重启 fdfs_trackerd /etc/fdfs/tracker.conf 阅读全文
posted @ 2020-07-03 12:14 Fmaj-7 阅读(231) 评论(0) 推荐(0)