Update main/views.py, README.md files

This commit is contained in:
Сокуров Идар 2021-02-08 17:17:03 +00:00
parent 729c0bec7e
commit 0bc34f8100
2 changed files with 3 additions and 2 deletions

View File

@ -46,6 +46,7 @@ pip install -r requirements.txt
./manage.py migrate
./manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.create_superuser('vasya', '1@abc.net', 'promprog')"
./manage.py runserver
Создать токен и указать вместе с почтой в запросах к Zendesk
```
## Read more

View File

@ -17,9 +17,9 @@ class CustomRegistrationView(RegistrationView):
def register(self, form):
creds = {
'email': 'idar.sokurov.05@mail.ru',
'email': 'DEFINE ME',
'subdomain': 'ngenix1612197338',
'token': 'xRL9Qqz7svFE3X9cHMVC2zOtJUdllzr441C3Z363',
'token': 'DEFINE ME',
}
client = Zenpy(**creds)
zenpy_user = client.search(form.data['email'], type='user')