12 2018 档案
摘要:1、安装scrapy 2、创建爬虫项目 scrapy startproject test_scrapy3、创建quotes_spider.py文件4、复制下面代码到quotes_spider.py文件import scrapy #导入模块#编写QuotesSpider类 class QuotesSp
阅读全文
摘要:import osimport hashlibfrom django.shortcuts import render,render_to_response,redirect,HttpResponseRedirectfrom django.contrib.auth.models import User
阅读全文
摘要:http://www.qttc.net/201404427.html
阅读全文
摘要:第一步:在app目录下建立static文件夹,将CSS文件、js文件放到static文件夹下 第二步:TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR,'templates').replace...
阅读全文
摘要:return HttpResponseRedirect('/index/')# 重定向返回url格式:http://127.0.0.1:8000/index/会去掉前期的所有路由重新写入/index/'路由urls代码 from django.urls import pathfrom django.
阅读全文
摘要:https://blog.csdn.net/lengfengyuyu/article/details/83342553#3_23
阅读全文
摘要:http://www.cnblogs.com/yijiaming/p/9684601.html 方法一: 1、需要安装pymssql pip install pymssql 2、使用方法: 方法二: 1、安装必要的组件: pip install django-sqlserver django-pyt
阅读全文