随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Assume we already have a env created call 'demo-env': Start a new project: Run server:
阅读全文
摘要: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
阅读全文