Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added missing response codes and changed "invalid_password" message #42

Merged
merged 5 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

Если у вас его еще нет, вы можете скачать его с официального
[сайта](https://www.python.org/downloads/), рекомендуется установить версию в
диапазоне 3.9 - 3.11
диапазоне 3.9 - 3.12

### Установка Git

Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/bg/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ msgstr "пренасочване"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "Паролата не е верна"
msgstr "Невалидна парола"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ msgstr "Weiterleitung"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "Passwort ist nicht korrekt"
msgstr "Falsches Passwort"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ msgstr "redirect"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "The password is incorrect"
msgstr "Incorrect password"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ msgstr "redirección"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "La contraseña no es correcta"
msgstr "Contraseña incorrecta"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ msgstr "redirection"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "Le mot de passe est incorrect"
msgstr "Mot de passe incorrect"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/ja/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ msgstr "リダイレクト"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "パスワードが間違っています"
msgstr "無効なパスワード"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/ru/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ msgstr "перенаправление"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "Пароль не верный"
msgstr "Неверный пароль"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 1 addition & 1 deletion datanar/locale/uk/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ msgstr "перенапрямок"

#: .\redirects\views.py:48
msgid "invalid_password"
msgstr "Пароль не вірний"
msgstr "Невірний пароль"

#: .\statistic\apps.py:9 .\templates\includes\link_card.html:13
msgid "statistic"
Expand Down
2 changes: 0 additions & 2 deletions datanar/static_dev/css/api/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ pre.example {
}

.param {
width: 500px;
padding: 10px 0 0 20px;
font-weight: bold;
}

.param-desc {
width: 700px;
padding: 0 0 0 20px;
color: #777;
}
Expand Down
5 changes: 4 additions & 1 deletion datanar/templates/api/api_docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ <h3 class="field-label">Responses</h3>
<h4 class="field-label">200</h4>
Successful operation
<a href="#Redirect">Redirect</a>
<h4 class="field-label">400</h4>
Bad request
<a href="#"></a>
<h4 class="field-label">401</h4>
Invalid token supplied
<a href="#"></a>
Expand Down Expand Up @@ -219,7 +222,7 @@ <h3 class="field-label">Produces</h3>
</ul>

<h3 class="field-label">Responses</h3>
<h4 class="field-label">200</h4>
<h4 class="field-label">201</h4>
Successful operation
<a href="#Redirect">Redirect</a>
<h4 class="field-label">400</h4>
Expand Down
4 changes: 2 additions & 2 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ django-cleanup==8.1.0
django-user-agents==0.4.0
django-settings-export==1.2.1
django-tz-detect==0.5.0
djangorestframework==3.15.1
djangorestframework==3.15.2
geoip2==4.8.0
gunicorn==22.0.0
openpyxl==3.1.3
pillow==10.3.0
psycopg2-binary==2.9.9
python-decouple==3.8
redis==5.0.1
redis==5.0.6
segno==1.6.1
sorl-thumbnail==12.10.0
sqids==0.4.1
Expand Down
Loading