Skip to content

Instantly share code, notes, and snippets.

joker sponia-joker

Block or report user

Report or block sponia-joker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sponia-joker / gist:d773f007b845bd865b330a2a8174213e
Created Mar 8, 2019 — forked from dhbradshaw/gist:e2bdeb502b0d0d2acced
Rename field using migrations in django 1.7
View gist:d773f007b845bd865b330a2a8174213e
To change a field name in django 1.7+
1. Edit the field name in the model (but remember the old field name: you need it for step 3!)
2. Create an empty migration
$ python makemigrations --empty myApp
3. Edit the empty migration (it's in the migrations folder in your app folder, and will be the most recent migration) by adding
migrations.RenameField('MyModel', 'old_field_name', 'new_field_name'),
to the operations list.
sponia-joker /
Created Dec 28, 2017 — forked from 52cik/
npm 淘宝镜像配置
npm set registry # 注册模块镜像
npm set disturl # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set chromedriver_cdnurl # chromedriver 二进制包镜像
npm set operadriver_cdnurl # operadriver 二进制包镜像
npm set phantomjs_cdnurl # phantomjs 二进制包镜像
npm set sass_binary_site # node-sass 二进制包镜像
npm set electron_mirror # electron 二进制包镜像
sponia-joker /
Created Dec 21, 2017 — forked from staltz/
The introduction to Reactive Programming you've been missing
You can’t perform that action at this time.