随笔分类 -  Django

摘要:First, start the env: Then cd to our module Create a new app: Create a api.py inside auth_api folder: auth_api/serialilzer.py auth_api/urls.py: top le 阅读全文
posted @ 2017-04-26 18:53 Zhentiw 阅读(327) 评论(0) 推荐(0) 编辑
摘要:To build rest api easily, we can use ModelViewSet from rest_framework. It provides GET, POST, DELETE, PUT methods. To render those model view set, you 阅读全文
posted @ 2017-04-18 17:18 Zhentiw 阅读(418) 评论(0) 推荐(0) 编辑
摘要:Create a new app: Then add you app to INSTALLED_APP array in settings.py. In modes.py we create new models: More about Field: https://docs.djangoproje 阅读全文
posted @ 2017-03-09 02:33 Zhentiw 阅读(130) 评论(0) 推荐(0) 编辑
摘要:Install the rest api framework: In settings.py: Create serializers to transform python to JSON: It will according to 'Card' and 'List' Models to gener 阅读全文
posted @ 2017-03-08 02:46 Zhentiw 阅读(172) 评论(0) 推荐(0) 编辑
摘要:Now let's see how to access admin interface. 1. Create a super user which can access admin interface: 2. Inside admin.py, we import the Models we have 阅读全文
posted @ 2017-03-07 04:01 Zhentiw 阅读(398) 评论(0) 推荐(0) 编辑
摘要:To add a new app, first cd to the project. Then run: After that a new folder call 'scrumboard' will be created in you applicaiton folder. Now cd to sc 阅读全文
posted @ 2017-03-06 02:36 Zhentiw 阅读(218) 评论(0) 推荐(0) 编辑
摘要:Assume we already have a env created call 'demo-env': Start a new project: Run server: 阅读全文
posted @ 2017-03-01 02:49 Zhentiw 阅读(168) 评论(0) 推荐(0) 编辑
摘要:Install python3 on MacOS: Come alone with python3, there are also some other tools are installed as well, for examlpe: 'pip, setuptools'... We need 'p 阅读全文
posted @ 2017-03-01 02:20 Zhentiw 阅读(235) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示