# -*- coding:utf-8 -*-from setting import *import osimport sys# print(DATA_DIR)class DataManage(): '''数据的存储和读取''' def __init__(self,): sys.path.append ...
分类:
其他好文 时间:
2019-12-12 15:22:40
阅读次数:
105
from setting import *import datetimesys.path.append(LIB_DIR)# print(LIB_DIR)class TimeFormat: '''格式化时间''' def now_time(self, format): ''' 当前时间 :param ...
分类:
其他好文 时间:
2019-12-12 14:53:45
阅读次数:
158
build/ android 先看看Android官方的解释Understand Build LayersThe build hierarchy includes the abstraction layers that correspond to the physical make... ...
分类:
移动开发 时间:
2019-12-12 01:26:40
阅读次数:
114
1、安装:pip install robotframe-seleniumlibrary 然后通过以下步骤引进第三方库: *** Settings ***Library SeleniumLibrary 元素操作 22、浏览器操作 ...
分类:
其他好文 时间:
2019-12-11 23:40:56
阅读次数:
168
androidStudio打开cocos3.17.2Lua项目时,出现了 Configuration on demand is not supported by the current version of the Android Gradle plugin since you are using ...
分类:
移动开发 时间:
2019-12-11 14:44:08
阅读次数:
134
一 auth模块 我们在开发一个网站的时候,无可避免的需要设计实现网站的用户系统。此时我们需要实现包括用户注册、用户登录、用户认证、注销、修改密码等功能,这还真是个麻烦的事情呢。 Django作为一个完美主义者的终极框架,当然也会想到用户的这些痛点。它内置了强大的用户认证系统 auth,它默认使用 ...
分类:
其他好文 时间:
2019-12-11 09:26:35
阅读次数:
96
爬虫07 /scrapy图片爬取、中间件、selenium在scrapy中的应用、CrawlSpider、分布式、增量式 [TOC] 1. scrapy图片的爬取/基于管道类实现 爬取流程: 1. 爬虫类中将解析到的图片地址存储到item,将item提交给指定的管道 2. 在管道文件中导包:from ...
分类:
其他好文 时间:
2019-12-11 09:25:01
阅读次数:
94
[TOC] 一、admin后台管理 Xadmin组件(有很多bug) 1. 如何使用 1.去应用下的admin.py中注册你想要管理的模型类。 2.要想登陆到后台管理,必须是超级用户,需要管理员用户root权限。所以需要用createsuperuser创建一个超级用户先。 特点: 1.admin会自 ...
分类:
其他好文 时间:
2019-12-10 22:28:52
阅读次数:
139
Django 是一个重量级的 Web 框架,很多成功的网站和 App 都是基于 Django 开发的。Django 开发必备 Python3 PyCharm Community EditionDjango 使用 python 开发,推荐安装 Python3,并且使用 pip 安装 django:pi... ...
分类:
其他好文 时间:
2019-12-10 00:47:01
阅读次数:
84
CSRF令牌失效或丢失,Ajax请求页面报错(403 Forbidden ) csrftoken存在 页面响应为CSRF验证失败请求被中断,经过测试,该错误并非是没有在表单中加入{% csrf_token%} 导致【试过】 刷新dns缓存依然无法解决该问题, 解决: 检查setting配置中 'dj ...
分类:
其他好文 时间:
2019-12-09 21:34:38
阅读次数:
103