Giter VIP home page Giter VIP logo

serializers's Introduction

Запуск
  1. Склонировать репо git clone [email protected]:DEsipov/serializers.git

  2. Создать вирт. окружение.

  3. Обновить pip python -m pip install --upgrade pip

  4. Установить зависимости из requirements.txt pip install -r requirements.txt

  5. Активировать окружение.

  6. Применить миграции ./manage.py migrate

  7. Создать админа ./manage.py createsuperuser

  8. Запустить сервер ./manage.py runserver

Как изспользовать http-запросы pycharm.

Создать токен, см. тест api.tests.RecipeTestCase.setUpClass
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token

user = User.objects.get()
token, _ = Token.objects.get_or_create(user=user)
print(token.key)
Подставить token.key в заголовк Token.

Authorization: Token 0c73436bd884a502b6ea710cace9a5e633e0358b

Полезные ссылки

https://docs.google.com/document/d/195C3crfvMDfxL7GSxoKYyj1Pfnfx8zyPoEtmMD8JZQE/edit#heading=h.oe06q2t0a6zt https://www.django-rest-framework.org/api-guide/serializers/

serializers's People

Contributors

desipov avatar crockoman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.