Skip to content

zaboevai/otus_web_site

Repository files navigation

Документация

Info

Учебный проект.

Создание сайта с учебными курсами.

http://127.0.0.1:8000

Install

RabbitMQ:

sudo apt-get install rabbitmq-server

requirements.txt:

pip install -r requriments.txt

Before run

Create local_settings.py and add yours email host settings

EMAIL_HOST = 'smtp.yandex.ru'

EMAIL_PORT = 465

EMAIL_USE_SSL = True

DEFAULT_FROM_EMAIL = 'email'

EMAIL_HOST_USER = 'login'

EMAIL_HOST_PASSWORD = 'password'

Run

Celery

run_celery.sh

Web server

run_server.sh

Rest api

Добавление новых пользователей:

URL: http://127.0.0.1:8000/api/auth/

{ "username": "", "first_name": "", "last_name": "", "email": "", "password": "" }

Список курсов:

URL: http://127.0.0.1:8000/api/courses/

Список курсов:

URL: http://127.0.0.1:8000/api/courses/1/

GraphQl:

URL: http://127.0.0.1:8000/graphql/

Tests

python manage.py test

About

Otus learning - main project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published