Django 学习整理(三) 一、Django自带后台管理系统 admin.py ,把数据模块放进去。进入demo01\admin.py ,写以下代码:from django.contrib import admin# Register your models here.from .models import Useradmin.site.register(User)在命令行中创建超级管理员:py...
Django学习整理(二) 一、使用 models.py (对象管理映射)通过创建一个类来创建数据库和表:在demo01/models.py打以下代码:from django.db import models# Create your models here.class User (models.Model): user_name = models.CharField(max_length=32, ...
Django学习整理(二) 一、使用 models.py (对象管理映射)通过创建一个类来创建数据库和表:在demo01/models.py打以下代码:from django.db import models# Create your models here.class User (models.Model): user_name = models.CharField(max_length=32, ...
Django学习整理(一) 1.安装Django:因为我的Python是3.5,就安装Django1.10.3版本pip install Django==1.10.3创建demoproject项目django-admin startproject demoproject进入项目cd demoproject运行项目python manage.py runserver在浏览器...
电影数据分析(大数据分享) 1.导入包:%matplotlib inlineimport pandas as pdimport matplotlib.pyplot as plt2.导入用户数据;unames = ['user_id','gender','age','occupation','zip']users=pd.read_table('ml-1m/users.dat',sep='::',header=No...
@RequestParam,@PathParam,@PathVariable等注解区别 1.直接转链接:https://blog.csdn.net/u011410529/article/details/66974974
出现spring boot Configuration Annotation Proessor not found in classpath springboot版本太高的原因,多加一个注解就可以@PropertySource(“classpath:application.yml”)
安装ruby和sacc 1.下载ruby: 去官方网站下载,在这里不写了,打开命令行,出现以下图案说明安装成功: 2。在命令行中敲以下代码:gem sources -a http://gems.ruby-china.org但是会出现以下情况: 因为SSL证书验证不了,ruby没有SSL证书,所以http请求会被服务器拒绝。 详细参考:https://blog.csdn.net/...
Vuex 是一个专为 Vue.js 设计的状态管理模式 vuex解决了组件之间同一状态的共享问题。当我们的应用遇到多个组件共享状态时,会需要:多个组件依赖于同一状态。传参的方法对于多层嵌套的组件将会非常繁琐,并且对于兄弟组件间的状态传递无能为力。这需要你去学习下,vue编码中多个组件之间的通讯的做法。 来自不同组件的行为需要变更同一状态。我们经常会采用父子组件直接引用或者通过事件来变更和同步状态的多份拷贝。以上的这些模式非常脆弱,通常会导致无...
element UI的使用 1.找官网 http://element.eleme.io/#/zh-CN/component/quickstart2.安装 : cnpm i element-ui -S -S表示 --save3.引入element UI的css 和 插件 import ElementUI from 'element-ui'; import '...
mintUI的使用 1.找官网2.安装 npm install mint-ui -S S表示 --save3.引入mint Ui的css 和 插件import Mint from 'mint-ui'; Vue.use(Mint); import 'mint-ui/lib/style.css'4.看文档直接使用。...
vue路由配置 vue路由配置:1.安装 npm install vue-router --save / cnpm install vue-router --save2、引入并 Vue.use(VueRouter) (main.js)import VueRouter from 'vue-router' Vue.use(VueRouter)3、配置路由...