Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.15 KB

README.md

File metadata and controls

52 lines (40 loc) · 1.15 KB

Django example Service

Tech

Requirements:

  • Python +3.5 - Python object oriented programming language
  • PostgreSQL +10 - Open source object-relational database system

We use:

  • Django - is a high-level Python Web framework
  • Django REST framework - Django REST framework is a powerful and flexible toolkit for building Web APIs

Installation

Project

$ mkdir myproject && cd myproject
$ git clone https://github.com/wienerdeming/django-example.git .
$ virtualenv -p /usr/bin/python3 .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python manage.py migrate

Postgres

$ su postgres
$ psql
postgres=# CREATE DATABASE mydb;

Run test

$ python manage.py test

Run

$ python manage.py runserver

Documentation

Api http://localhost:8000/docs/ also you can find docs in this link