Update main/views.py, README.md files
This commit is contained in:
parent
729c0bec7e
commit
0bc34f8100
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user