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
+1
View File
@@ -46,6 +46,7 @@ pip install -r requirements.txt
./manage.py migrate ./manage.py migrate
./manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.create_superuser('vasya', '[email protected]', 'promprog')" ./manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.create_superuser('vasya', '[email protected]', 'promprog')"
./manage.py runserver ./manage.py runserver
Создать токен и указать вместе с почтой в запросах к Zendesk
``` ```
## Read more ## Read more
+2 -2
View File
@@ -17,9 +17,9 @@ class CustomRegistrationView(RegistrationView):
def register(self, form): def register(self, form):
creds = { creds = {
'email': '[email protected]', 'email': 'DEFINE ME',
'subdomain': 'ngenix1612197338', 'subdomain': 'ngenix1612197338',
'token': 'xRL9Qqz7svFE3X9cHMVC2zOtJUdllzr441C3Z363', 'token': 'DEFINE ME',
} }
client = Zenpy(**creds) client = Zenpy(**creds)
zenpy_user = client.search(form.data['email'], type='user') zenpy_user = client.search(form.data['email'], type='user')