From 50325ddb4fd0b1685631cf873987a606290d5d20 Mon Sep 17 00:00:00 2001 From: mpuhacz Date: Sat, 11 Mar 2017 12:10:55 +0100 Subject: [PATCH 1/7] polish translation --- rest_auth/locale/pl/pl.mo | Bin 0 -> 2306 bytes rest_auth/locale/pl/pl.po | 99 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 rest_auth/locale/pl/pl.mo create mode 100644 rest_auth/locale/pl/pl.po diff --git a/rest_auth/locale/pl/pl.mo b/rest_auth/locale/pl/pl.mo new file mode 100644 index 0000000000000000000000000000000000000000..bee2ff6f01bcb23f7c53085c80cf425d27f6b7fc GIT binary patch literal 2306 zcmb7_&u<$=6vr1Rzs&DKp+G?oi>8Ufn%$JN!HGeoNlOGtLrDta5>0j|_QdNMGc%jT zR!@;a?-e~%{S&xyK!`&Rj)b^#;DX@9iNB$IXKdGQphB$l^4amc_vX!eZ(n{pdgMlc z=NRM!qz8Eol0ASwczy@ZfPa8)|M-JJ@G3Yv;3wcqShv6#a36dI{2qK0{0Te-{sq1Z z9($=hWkr7K%&5fx9 zi+o#1jx}pTbu-DBF(f4I3SJC16P9ILENO1$I{U|7Cb+bR?3Vh6;5ex)?Q$))1y3u% zvP_iLJhAZ7&TWNQk|2srtD0Pr(v+x_yDMn^WiAl-xXCWdavrSY##tv>4$U%mmnjpI zDV5uZyihtVR}Lw;yhzsK|Dnf`BP6gqQb$1dJ7JXDx@%2Z*a1O8byOtXQ`o7r1F%d z7PCpC5^PAel|fNCTUSHh5pAt@MG8*|a*bmI%g_=Vu8&X|l}n`Bc{0uz7rWvsnJ_Dq z9CniN;ax$yI9*ro)VEanmJf-9C8UR;w9@jg&<#ur=PppqU`?wXbVInDhH!1*wMwPS zysfkiS4>@`;Rku$gzE}FuU%RX&!e&3+2JCyyh<}sd^U_uhtVv}#MRj|VKf&-Pz*2g zUE#bP(u-q?XR2{D9mUXFSzcKh9UE7o(s>u6wBdTE4eu`6x7!&La-Na~)2Lu=WBo!n zH`3Egnr*JbCG>SFWW7prTf&ysvRtz)yr6W;R7tk|($r4RQ~$L#DQmTu-lvGLeKL;T ztIg2FgnwPAz2jad-OtfN9MRRQ{&%MnO~EFH&CJw%>0>7AIji$U40`B8asRILl^glK9sQ?KQ>%Ou-Q*pmog!n0tHJIW+^&1?>l5eGo%3*@=5%xgOT9OaXs&w zkxRMD6=s99ouunL`&{=^?7R+a1oMh87~~R~AK^1n_a, YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-05 21:56-0800\n" +"PO-Revision-Date: 2017-03-11 12:10+0100\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.11\n" +"Last-Translator: \n" +"Language: pl\n" + +#: registration/serializers.py:53 +msgid "View is not defined, pass it as a context variable" +msgstr "Widok nie został zdefiniowany, przekaż go przez zmienną \"context\"" + +#: registration/serializers.py:58 +msgid "Define adapter_class in view" +msgstr "Zdefiniuj \"adapter_class\" w widoku" + +#: registration/serializers.py:77 +msgid "Define callback_url in view" +msgstr "Zdefiniuj \"callback_url\" w widoku" + +#: registration/serializers.py:81 +msgid "Define client_class in view" +msgstr "Zdefiniuj \"client_class\" w widoku" + +#: registration/serializers.py:102 +msgid "Incorrect input. access_token or code is required." +msgstr "Podano błędne dane. \"access_token\" lub \"code\" są wymagne." + +#: registration/serializers.py:111 +msgid "Incorrect value" +msgstr "Niepoprawna wartość." + +#: registration/serializers.py:140 +msgid "A user is already registered with this e-mail address." +msgstr "Istnieje już użytkownik z takim adresem email." + +#: registration/serializers.py:148 +msgid "The two password fields didn't match." +msgstr "Hasła nie są identyczne." + +#: registration/views.py:44 +msgid "Verification e-mail sent." +msgstr "Email weryfikacyjny został wysłany." + +#: registration/views.py:91 +msgid "ok" +msgstr "ok" + +#: serializers.py:30 +msgid "Must include \"email\" and \"password\"." +msgstr "Musisz podać email i hasło." + +#: serializers.py:41 +msgid "Must include \"username\" and \"password\"." +msgstr "Musisz podać nazwę użytkownika i hasło." + +#: serializers.py:54 +msgid "Must include either \"username\" or \"email\" and \"password\"." +msgstr "Musisz podać nazwę użytkownika (lub email) i hasło." + +#: serializers.py:95 +msgid "User account is disabled." +msgstr "Konto użytkownika zostało wyłączone." + +#: serializers.py:98 +msgid "Unable to log in with provided credentials." +msgstr "Podane dane do logowania są niepoprawne." + +#: serializers.py:107 +msgid "E-mail is not verified." +msgstr "Email nie został zweryfikowany." + +#: views.py:126 +msgid "Successfully logged out." +msgstr "Wylogowano." + +#: views.py:174 +msgid "Password reset e-mail has been sent." +msgstr "Email z linkiem do resetu hasła został wysłany." + +#: views.py:200 +msgid "Password has been reset with the new password." +msgstr "Hasło zostało zresetowane." + +#: views.py:222 +msgid "New password has been saved." +msgstr "Nowe hasło zostało zapisane." From d0d348bf6b12474f1771b793ec821492ad0db1b6 Mon Sep 17 00:00:00 2001 From: mpuhacz Date: Sat, 11 Mar 2017 12:33:25 +0100 Subject: [PATCH 2/7] polish translation --- rest_auth/locale/pl/{ => LC_MESSAGES}/pl.mo | Bin rest_auth/locale/pl/{ => LC_MESSAGES}/pl.po | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename rest_auth/locale/pl/{ => LC_MESSAGES}/pl.mo (100%) rename rest_auth/locale/pl/{ => LC_MESSAGES}/pl.po (100%) diff --git a/rest_auth/locale/pl/pl.mo b/rest_auth/locale/pl/LC_MESSAGES/pl.mo similarity index 100% rename from rest_auth/locale/pl/pl.mo rename to rest_auth/locale/pl/LC_MESSAGES/pl.mo diff --git a/rest_auth/locale/pl/pl.po b/rest_auth/locale/pl/LC_MESSAGES/pl.po similarity index 100% rename from rest_auth/locale/pl/pl.po rename to rest_auth/locale/pl/LC_MESSAGES/pl.po From bf96f6ab8e397586aba74982c71917357e9765bc Mon Sep 17 00:00:00 2001 From: mpuhacz Date: Sat, 11 Mar 2017 15:50:27 +0100 Subject: [PATCH 3/7] polish translation --- .../locale/pl/LC_MESSAGES/{pl.mo => django.mo} | Bin .../locale/pl/LC_MESSAGES/{pl.po => django.po} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename rest_auth/locale/pl/LC_MESSAGES/{pl.mo => django.mo} (100%) rename rest_auth/locale/pl/LC_MESSAGES/{pl.po => django.po} (100%) diff --git a/rest_auth/locale/pl/LC_MESSAGES/pl.mo b/rest_auth/locale/pl/LC_MESSAGES/django.mo similarity index 100% rename from rest_auth/locale/pl/LC_MESSAGES/pl.mo rename to rest_auth/locale/pl/LC_MESSAGES/django.mo diff --git a/rest_auth/locale/pl/LC_MESSAGES/pl.po b/rest_auth/locale/pl/LC_MESSAGES/django.po similarity index 100% rename from rest_auth/locale/pl/LC_MESSAGES/pl.po rename to rest_auth/locale/pl/LC_MESSAGES/django.po From cbda9ee075a3ea916dc26a76215f489919bc51bd Mon Sep 17 00:00:00 2001 From: Maxim Kukhtenkov Date: Mon, 15 May 2017 10:36:19 -0400 Subject: [PATCH 4/7] Add Django 1.11 to Travis CI --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7b4f050..ce9529d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,9 @@ python: - "2.7" - "3.5" env: - - DJANGO=1.8.17 - - DJANGO=1.9.12 - - DJANGO=1.10.4 + - DJANGO=1.8.18 + - DJANGO=1.10.7 + - DJANGO=1.11.1 install: - pip install -q Django==$DJANGO - pip install coveralls From 937162bd9709be2ab3aaaadd5a1abb05a77e5e2e Mon Sep 17 00:00:00 2001 From: Nathanael Gordon Date: Wed, 17 May 2017 23:36:09 +1000 Subject: [PATCH 5/7] Fix docs settings typo --- docs/configuration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 1f5b40f..59b301f 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -36,7 +36,7 @@ Configuration You can define your custom serializers for registration endpoint. Possible key values: - - REGISTER_SERIALIZER - serializer class in ``rest_auth.register.views.RegisterView``, default value ``rest_auth.registration.serializers.RegisterSerializer`` + - REGISTER_SERIALIZER - serializer class in ``rest_auth.registration.views.RegisterView``, default value ``rest_auth.registration.serializers.RegisterSerializer`` .. note:: The custom REGISTER_SERIALIZER must define a ``def save(self, request)`` method that returns a user model instance From 8981317b1c94eb3dc713122959b3469212b3720f Mon Sep 17 00:00:00 2001 From: Daniel Vitiello Date: Sun, 4 Jun 2017 16:54:03 -0500 Subject: [PATCH 6/7] Add step to remind user to migrate their database I didn't do this and spent a while tracking down errors with CSRF and Token Validation. --- docs/installation.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/installation.rst b/docs/installation.rst index 6144011..7508cd0 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -31,7 +31,13 @@ Installation url(r'^rest-auth/', include('rest_auth.urls')) ) +4. Migrate your database +.. code-block:: python + + python manage.py migrate + + You're good to go now! From f0175b4aac31cf47d8d5a5cbf170e0068e74a429 Mon Sep 17 00:00:00 2001 From: David Gunter Date: Thu, 15 Jun 2017 16:30:21 -0700 Subject: [PATCH 7/7] Update JWT Support documentation to explain how the library uses django-rest-framework-jwt to handle token encoding. --- docs/installation.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index 7508cd0..d4edbd3 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -157,13 +157,15 @@ If you are using Twitter for your social authentication, it is a bit different s JWT Support (optional) ---------------------- -By default, ``django-rest-auth`` uses Django's Token-based authentication. If you want to use JWT authentication, you need to install the following: +By default ``django-rest-auth`` uses Django's Token-based authentication. If you want to use JWT authentication, follow these steps: -1. Install ``django-rest-framework-jwt`` http://getblimp.github.io/django-rest-framework-jwt/ . Right now this is the only supported JWT library. +1. Install `django-rest-framework-jwt `_ + - ``django-rest-framework-jwt`` is currently the only supported JWT library. +2. The ``JWT_PAYLOAD_HANDLER`` and ``JWT_ENCODE_HANDLER`` settings are imported from the ``django-rest-framework-jwt`` settings object. + - Refer to `the library's documentation `_ for information on using different encoders. -2. Add the following to your settings +3. Add the following configuration value to your settings file to enable JWT authentication. .. code-block:: python - REST_USE_JWT = True - + REST_USE_JWT = True \ No newline at end of file