diff --git a/.editorconfig b/.editorconfig index 585e2abce0..6a9a5c45df 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ trim_trailing_whitespace = true indent_style = space indent_size = 4 -[*.{html,css,scss,json,yml}] +[*.{html,css,scss,json,yml,xml}] indent_style = space indent_size = 2 @@ -21,3 +21,7 @@ trim_trailing_whitespace = false [Makefile] indent_style = tab + +[nginx.conf] +indent_style = space +indent_size = 2 diff --git a/.github/CONTRIBUTORS-template.md b/.github/CONTRIBUTORS-template.md new file mode 100644 index 0000000000..d8ba28c630 --- /dev/null +++ b/.github/CONTRIBUTORS-template.md @@ -0,0 +1,56 @@ +# Contributors + +## Core Developers + +These contributors have commit flags for the repository, and are able to +accept and merge pull requests. + +
| Name | +Github | +|
|---|---|---|
| {{ contributor.name }} | ++ {{ contributor.github_login }} + | +{{ contributor.twitter_username }} | +
| Name | +Github | +|
|---|---|---|
| {{ contributor.name }} | ++ {{ contributor.github_login }} + | +{{ contributor.twitter_username }} | +
+$ cookiecutter https://github.com/cookiecutter/cookiecutter-django +project_name [Project Name]: ... ++
| Name | +Github | +|
|---|---|---|
| Daniel Roy Greenfeld | ++ pydanny + | +pydanny | +
| Audrey Roy Greenfeld | ++ audreyr + | +audreyr | +
| Fábio C. Barrionuevo da Luz | ++ luzfcb + | +luzfcb | +
| Saurabh Kumar | ++ theskumar + | +_theskumar | +
| Jannis Gebauer | ++ jayfk + | ++ |
| Burhan Khalid | ++ burhan + | +burhan | +
| Shupeyko Nikita | ++ webyneter + | +webyneter | +
| Bruno Alla | ++ browniebroke + | +_BrunoAlla | +
| Wan Liuyang | ++ sfdye + | +sfdye | +
| Name | +Github | +|
|---|---|---|
| 18 | ++ dezoito + | ++ |
| 2O4 | ++ 2O4 + | ++ |
| a7p | ++ a7p + | ++ |
| Aadith PM | ++ aadithpm + | ++ |
| Aaron Eikenberry | ++ aeikenberry + | ++ |
| Abdul Qoyyuum | ++ Qoyyuum + | +Qoyyuum | +
| Abdullah Adeel | ++ mabdullahadeel + | +abdadeel_ | +
| Abe Hanoka | ++ abe-101 + | +abe__101 | +
| Adam Bogdał | ++ bogdal + | ++ |
| Adam Dobrawy | ++ ad-m + | ++ |
| Adam Steele | ++ adammsteele + | ++ |
| Agam Dua | ++ + | ++ |
| Agustín Scaramuzza | ++ scaramagus + | +scaramagus | +
| Alberto Sanchez | ++ alb3rto + | ++ |
| Alex Tsai | ++ caffodian + | ++ |
| Alvaro [Andor] | ++ andor-pierdelacabeza + | ++ |
| Amjith Ramanujam | ++ amjith + | ++ |
| Andreas Meistad | ++ ameistad + | ++ |
| Andres Gonzalez | ++ andresgz + | ++ |
| Andrew Chen Wang | ++ Andrew-Chen-Wang + | ++ |
| Andrew Mikhnevich | ++ zcho + | ++ |
| Andy Rose | ++ + | ++ |
| Anna Callahan | ++ jazztpt + | ++ |
| Anna Sidwell | ++ takkaria + | ++ |
| Antonia Blair | ++ antoniablair + | +antoniablairart | +
| Anuj Bansal | ++ ahhda + | ++ |
| Arcuri Davide | ++ dadokkio + | ++ |
| Areski Belaid | ++ areski + | ++ |
| Arnav Choudhury | ++ arnav13081994 + | ++ |
| Artur Barseghyan | ++ barseghyanartur + | ++ |
| AsheKR | ++ ashekr + | ++ |
| Ashley Camba | ++ + | ++ |
| Barclay Gauld | ++ yunti + | ++ |
| Bartek | ++ btknu + | ++ |
| Ben Lopatin | ++ + | ++ |
| Ben Warren | ++ bwarren2 + | ++ |
| Benjamin Abel | ++ + | ++ |
| Bert de Miranda | ++ bertdemiranda + | ++ |
| Bo Lopker | ++ blopker + | ++ |
| Bo Peng | ++ BoPeng + | ++ |
| Bogdan Mateescu | ++ mateesville93 + | ++ |
| Bouke Haarsma | ++ + | ++ |
| Brandon Rumiser | ++ brumiser1550 + | ++ |
| Brent Payne | ++ brentpayne + | +brentpayne | +
| Bruce Olivier | ++ bolivierjr + | ++ |
| Caio Ariede | ++ caioariede + | +caioariede | +
| Carl Johnson | ++ carlmjohnson + | +carlmjohnson | +
| Catherine Devlin | ++ catherinedevlin + | ++ |
| Cebrail Yılmaz | ++ b1sar + | ++ |
| Chao Yang Wu | ++ goatwu1993 + | ++ |
| Charlie Macfarlane Brodie | ++ tannart + | ++ |
| Charlie Smith | ++ chuckus + | ++ |
| Chris Curvey | ++ ccurvey + | ++ |
| Chris Franklin | ++ + | ++ |
| Chris Franklin | ++ hairychris + | ++ |
| Chris Pappalardo | ++ ChrisPappalardo + | ++ |
| Christopher Clarke | ++ chrisdev + | ++ |
| Cole Mackenzie | ++ cmackenzie1 + | ++ |
| Cole Maclean | ++ cole + | +cole | +
| Collederas | ++ Collederas + | ++ |
| Corey Garvey | ++ coreygarvey + | ++ |
| Craig Margieson | ++ cmargieson + | ++ |
| Cristian Vargas | ++ cdvv7788 + | ++ |
| Cullen Rhodes | ++ c-rhodes + | ++ |
| Curtis St Pierre | ++ curtisstpierre + | +cstpierre1388 | +
| Cédric Gaspoz | ++ cgaspoz + | ++ |
| dalrrard | ++ dalrrard + | ++ |
| Dan Shultz | ++ shultz + | ++ |
| Dani Hodovic | ++ danihodovic + | ++ |
| Daniel Hepper | ++ dhepper + | +danielhepper | +
| Daniel Hillier | ++ danifus + | ++ |
| Daniel Sears | ++ highpost + | +highpost | +
| Daniele Tricoli | ++ eriol + | ++ |
| David Díaz | ++ ddiazpinto + | +DavidDiazPinto | +
| Davit Tovmasyan | ++ davitovmasyan + | ++ |
| Davur Clementsen | ++ dsclementsen + | +davur | +
| Delio Castillo | ++ jangeador + | +jangeador | +
| Demetris Stavrou | ++ demestav + | ++ |
| Denis Bobrov | ++ delneg + | ++ |
| Denis Orehovsky | ++ apirobot + | ++ |
| Denis Savran | ++ blaxpy + | ++ |
| Diane Chen | ++ purplediane + | +purplediane88 | +
| Diego Montes | ++ d57montes + | ++ |
| Dong Huynh | ++ trungdong + | ++ |
| Douglas | ++ douglascdev + | ++ |
| Duda Nogueira | ++ dudanogueira + | +dudanogueira | +
| Dónal Adams | ++ epileptic-fish + | ++ |
| Emanuel Calso | ++ bloodpet + | +bloodpet | +
| enchance | ++ enchance + | ++ |
| Eraldo Energy | ++ eraldo + | ++ |
| Eric Groom | ++ ericgroom + | ++ |
| Ernesto Cedeno | ++ codnee + | ++ |
| Eyad Al Sibai | ++ eyadsibai + | ++ |
| Fabian Affolter | ++ fabaff + | +fabaff | +
| Felipe Arruda | ++ arruda + | ++ |
| Florian Idelberger | ++ step21 + | +windrush | +
| Floyd Hightower | ++ fhightower + | ++ |
| Fuzzwah | ++ Fuzzwah + | ++ |
| Gabriel Mejia | ++ elgartoinf + | +elgartoinf | +
| Garry Cairns | ++ garry-cairns + | ++ |
| Garry Polley | ++ garrypolley + | ++ |
| ghazi-git | ++ ghazi-git + | ++ |
| Gilbishkosma | ++ Gilbishkosma + | ++ |
| Glenn Wiskur | ++ gwiskur + | ++ |
| Grant McLean | ++ grantm + | +grantmnz | +
| Guilherme Guy | ++ guilherme1guy + | ++ |
| Hamish Durkin | ++ durkode + | ++ |
| Hana Quadara | ++ hanaquadara + | ++ |
| Hannah Lazarus | ++ hanhanhan + | ++ |
| Harry Moreno | ++ morenoh149 + | +morenoh149 | +
| Harry Percival | ++ hjwp + | ++ |
| Haseeb ur Rehman | ++ professorhaseeb + | +professorhaseeb | +
| Hendrik Schneider | ++ hendrikschneider + | ++ |
| Henrique G. G. Pereira | ++ ikkebr + | ++ |
| Howie Zhao | ++ howiezhao + | ++ |
| Ian Lee | ++ IanLee1521 + | ++ |
| innicoder | ++ innicoder + | ++ |
| Irfan Ahmad | ++ erfaan + | +erfaan | +
| Isaac12x | ++ Isaac12x + | ++ |
| Ivan Khomutov | ++ ikhomutov + | ++ |
| Jakub Musko | ++ umgelurgel + | ++ |
| James Williams | ++ jameswilliams1 + | ++ |
| Jan Fabry | ++ janfabry + | ++ |
| Jan Van Bruggen | ++ jvanbrug + | ++ |
| Jelmer Draaijer | ++ foarsitter + | ++ |
| Jens Nilsson | ++ phiberjenz + | ++ |
| Jerome Caisip | ++ jeromecaisip + | ++ |
| Jerome Leclanche | ++ jleclanche + | +Adys | +
| Jimmy Gitonga | ++ Afrowave + | +afrowave | +
| John | ++ thorrak + | ++ |
| John Cass | ++ jcass77 + | +cass_john | +
| Jonathan Thompson | ++ nojanath + | ++ |
| Jorge Valdez | ++ jorgeavaldez + | ++ |
| jugglinmike | ++ jugglinmike + | ++ |
| Jules Cheron | ++ jules-ch + | ++ |
| Julien Almarcha | ++ sladinji + | ++ |
| Julio Castillo | ++ juliocc + | ++ |
| Kaido Kert | ++ kaidokert + | ++ |
| kappataumu | ++ kappataumu + | +kappataumu | +
| Kaveh | ++ ka7eh + | ++ |
| Keith Bailey | ++ keithjeb + | ++ |
| Keith Callenberg | ++ keithcallenberg + | ++ |
| Keith Webber | ++ townie + | ++ |
| Kevin A. Stone | ++ + | ++ |
| Kevin Ndung'u | ++ kevgathuku + | ++ |
| Keyvan Mosharraf | ++ keyvanm + | ++ |
| krati yadav | ++ krati5 + | ++ |
| Krzysztof Szumny | ++ noisy + | ++ |
| Krzysztof Żuraw | ++ krzysztofzuraw + | ++ |
| Kuo Chao Cheng | ++ wwwtony5488 + | ++ |
| lcd1232 | ++ lcd1232 + | ++ |
| LECbg | ++ LECbg + | ++ |
| Leo won | ++ leollon + | ++ |
| Leo Zhou | ++ glasslion + | ++ |
| Leon Kim | ++ PilhwanKim + | ++ |
| Leonardo Jimenez | ++ xpostudio4 + | ++ |
| Liam Brenner | ++ SableWalnut + | ++ |
| Lin Xianyi | ++ iynaix + | ++ |
| Luis Nell | ++ originell + | ++ |
| Lukas Klein | ++ + | ++ |
| Lyla Fischer | ++ + | ++ |
| Malik Sulaimanov | ++ flyudvik + | +flyudvik | +
| Manjit Pardeshi | ++ Manjit2003 + | ++ |
| Marcio Mazza | ++ marciomazza + | +marciomazza | +
| Martin Blech | ++ + | ++ |
| Martin Saizar | ++ msaizar + | ++ |
| Mateusz Ostaszewski | ++ mostaszewski + | ++ |
| Mathijs Hoogland | ++ MathijsHoogland + | ++ |
| Matt Braymer-Hayes | ++ mattayes + | +mattayes | +
| Matt Knapper | ++ mknapper1 + | ++ |
| Matt Linares | ++ + | ++ |
| Matt Menzenski | ++ menzenski + | ++ |
| Matt Warren | ++ mfwarren + | ++ |
| Matthew Sisley | ++ mjsisley + | ++ |
| Matthias Sieber | ++ manonthemat + | +MatzeOne | +
| Meghan Heintz | ++ dot2dotseurat + | ++ |
| Meraj | ++ ichbinmeraj + | +merajsafari | +
| Mesut Yılmaz | ++ myilmaz + | ++ |
| mfosterw | ++ mfosterw + | ++ |
| Michael Gecht | ++ mimischi + | +_mischi | +
| Michael Samoylov | ++ msamoylov + | ++ |
| Mike97M | ++ Mike97M + | ++ |
| Min ho Kim | ++ minho42 + | ++ |
| monosans | ++ monosans + | ++ |
| mozillazg | ++ mozillazg + | ++ |
| mpoli | ++ mpoli + | ++ |
| Naveen | ++ naveensrinivasan + | +snaveen | +
| Nico Stefani | ++ nicolas471 + | +moby_dick91 | +
| Nikita Sobolev | ++ sobolevn + | ++ |
| Noah H | ++ nthall + | ++ |
| Oleg Russkin | ++ rolep + | ++ |
| Pablo | ++ oubiga + | ++ |
| Parbhat Puri | ++ parbhat + | ++ |
| Pawan Chaurasia | ++ rjsnh1522 + | ++ |
| Pedro Campos | ++ pcampos119104 + | ++ |
| Peter Bittner | ++ bittner + | ++ |
| Peter Coles | ++ mrcoles + | ++ |
| Philipp Matthies | ++ canonnervio + | ++ |
| Pierre Chiquet | ++ pchiquet + | ++ |
| PJ Hoberman | ++ pjhoberman + | ++ |
| Raony Guimarães Corrêa | ++ raonyguimaraes + | ++ |
| Raphael Pierzina | ++ hackebrot + | ++ |
| Ray Besiga | ++ raybesiga + | +raybesiga | +
| Reggie Riser | ++ reggieriser + | ++ |
| René Muhl | ++ rm-- + | ++ |
| Richard Hajdu | ++ Tusky + | ++ |
| Roman Afanaskin | ++ siauPatrick + | ++ |
| Roman Osipenko | ++ romanosipenko + | ++ |
| Russell Davies | ++ + | ++ |
| Ryan Fitch | ++ ryfi + | ++ |
| Sam Collins | ++ MightySCollins + | ++ |
| Sascha | ++ saschalalala + | +saschalalala | +
| Sebastian Reyes Espinosa | ++ sebastian-code + | +sebastianreyese | +
| Simon Rey | ++ eqqe + | ++ |
| Sorasful | ++ sorasful + | ++ |
| Srinivas Nyayapati | ++ shireenrao + | ++ |
| stepmr | ++ stepmr + | ++ |
| Steve Steiner | ++ ssteinerX + | ++ |
| Sudarshan Wadkar | ++ wadkar + | ++ |
| Sule Marshall | ++ suledev + | ++ |
| Sławek Ehlert | ++ slafs + | ++ |
| Tames McTigue | ++ Tamerz + | ++ |
| Tano Abeleyra | ++ tanoabeleyra + | ++ |
| Taylor Baldwin | ++ + | ++ |
| Thibault J. | ++ thibault + | +thibault | +
| Théo Segonds | ++ show0k + | ++ |
| Tim Claessens | ++ timclaessens + | ++ |
| Tim Freund | ++ timfreund + | ++ |
| Timm Simpkins | ++ PoDuck + | ++ |
| Tom Atkins | ++ knitatoms + | ++ |
| Tom Offermann | ++ + | ++ |
| Travis McNeill | ++ Travistock + | +tavistock_esq | +
| Tubo Shi | ++ Tubo + | ++ |
| Umair Ashraf | ++ umrashrf + | +fabumair | +
| Vadim Iskuchekov | ++ Egregors + | +egregors | +
| vascop | ++ vascop + | ++ |
| Vicente G. Reyes | ++ reyesvicente + | +highcenburg | +
| Vikas Yadav | ++ vik-y + | ++ |
| Vitaly Babiy | ++ + | ++ |
| Vivian Guillen | ++ viviangb + | ++ |
| Vlad Doster | ++ vladdoster + | ++ |
| Wes Turner | ++ westurner + | +westurner | +
| Will Farley | ++ goldhand + | +g01dhand | +
| Will Gordon | ++ wgordon17 + | ++ |
| William Archinal | ++ archinal + | ++ |
| Xaver Y.R. Chen | ++ yrchen + | +yrchen | +
| Yaroslav Halchenko | ++ + | ++ |
| Yotam Tal | ++ yotamtal + | ++ |
| Yuchen Xie | ++ mapx + | ++ |
| Zach Borboa | ++ zachborboa + | ++ |
{% if exception %}{{ exception }}{% else %}You're not allowed to access this page.{% endif %}
+{% endblock content %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html index 0d7a787f8e..d98241858a 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html @@ -1,9 +1,10 @@ {% raw %}{% extends "base.html" %} -{% block title %}Page Not found{% endblock %} +{% block title %}Page not found{% endblock %} {% block content %} -This is not the page you were looking for.
-{% endblock content %}{% endraw %} +{% if exception %}{{ exception }}{% else %}This is not the page you were looking for.{% endif %}
+{% endblock content %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/500.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/500.html index 122e0813e6..481bb2d0b9 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/500.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/500.html @@ -9,5 +9,4 @@We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.
{% endblock content %} - -{% endraw %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html new file mode 100644 index 0000000000..ab910820ed --- /dev/null +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html @@ -0,0 +1,12 @@ +{% raw %}{% extends "account/base.html" %} + +{% load i18n %} + +{% block head_title %}{% translate "Account Inactive" %}{% endblock %} + +{% block inner %} +{% translate "This account is inactive." %}
+{% endblock %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html index 6703bb8b0b..03c86724bb 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html @@ -1,3 +1,11 @@ {% raw %}{% extends "base.html" %} {% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %} -{% endraw %} \ No newline at end of file + +{% block content %} +{% trans 'The following e-mail addresses are associated with your account:' %}
- - - - {% else %} -{% trans 'Warning:'%} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}
- - {% endif %} - - -{% translate 'The following e-mail addresses are associated with your account:' %}
+ + + +{% else %} +{% translate 'Warning:'%} {% translate "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}
+ +{% endif %} + + +{% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}
+{% blocktranslate with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktranslate %}
- + - {% else %} +{% else %} - {% url 'account_email' as email_url %} +{% url 'account_email' as email_url %} -{% blocktrans %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktrans %}
+{% blocktranslate %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktranslate %}
+ +{% endif %} - {% endif %} -{% blocktrans with email_address.email as email %}You have confirmed that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}
-{% blocktrans with site.name as site_name %}Please sign in with one - of your existing third party accounts. Or, sign up - for a {{ site_name }} account and sign in below:{% endblocktrans %}
+{% block inner %} - ++ {% blocktranslate trimmed %} + If you have not created an account yet, then please + sign up first. + {% endblocktranslate %} +
+ {% endif %} +{% endif %} + + + {% endblock %} -{% endraw %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html index 039dc7be91..5edc60478e 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html @@ -2,27 +2,19 @@ {% load i18n %} -{% block head_title %}{% trans "Sign Out" %}{% endblock %} +{% block head_title %}{% translate "Sign Out" %}{% endblock %} -{% block content %} -{% trans 'Are you sure you want to sign out?' %}
- - -{% translate 'Are you sure you want to sign out?' %}
+ {% endblock %} -{% endraw %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html index 9855c0f5af..b8dd7ac535 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html @@ -2,21 +2,16 @@ {% load i18n %} {% load crispy_forms_tags %} -{% block head_title %}{% trans "Change Password" %}{% endblock %} -{% block content %} -{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}
+{% translate "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}
- + -{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}
-{% blocktranslate %}Please contact us if you have any trouble resetting your password.{% endblocktranslate %}
{% endblock %} - -{% block javascript %} - {{ block.super }} - -{% endblock javascript %} -{% endraw %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html index e954abc61d..76d07eb21c 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html @@ -3,21 +3,15 @@ {% load i18n %} {% load account %} -{% block head_title %}{% trans "Password Reset" %}{% endblock %} +{% block head_title %}{% translate "Password Reset" %}{% endblock %} -{% block content %} -{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}
-{% blocktranslate %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktranslate %}
{% endblock %} -{% endraw %} \ No newline at end of file +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html index 8e1b39e26a..ce5d72a6d2 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html @@ -2,31 +2,24 @@ {% load i18n %} {% load crispy_forms_tags %} +{% block head_title %}{% translate "Change Password" %}{% endblock %} -{% block head_title %}{% trans "Change Password" %}{% endblock %} - -{% block content %} -{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}
+{% blocktranslate %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktranslate %}
{% else %} {% if form %} - {% else %} -{% trans 'Your password is now changed.' %}
+{% translate 'Your password is now changed.' %}
{% endif %} {% endif %} -{% trans 'Your password is now changed.' %}
-{% translate 'Your password is now changed.' %}
{% endblock %} -{% endraw %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html index 7e2967e377..812410fc0f 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html @@ -1,23 +1,17 @@ -{% raw %} -{% extends "account/base.html" %} +{% raw %}{% extends "account/base.html" %} -{% load i18n crispy_forms_tags %} +{% load i18n %} +{% load crispy_forms_tags %} -{% block head_title %}{% trans "Set Password" %}{% endblock %} +{% block head_title %}{% translate "Set Password" %}{% endblock %} -{% block content %} -{% trans "We are sorry, but the sign up is currently closed." %}
-{% translate "We are sorry, but the sign up is currently closed." %}
{% endblock %} -{% endraw %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html index 0c082288cc..be8f1cef97 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html @@ -2,18 +2,12 @@ {% load i18n %} -{% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} +{% block head_title %}{% translate "Verify Your E-mail Address" %}{% endblock %} -{% block content %} -{% blocktrans %}We have sent an e-mail to {{ email }} for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}
-{% blocktranslate %}We have sent an e-mail to you for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.{% endblocktranslate %}
{% endblock %} -{% endraw %} \ No newline at end of file +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html index 7d071c6a6f..2148a18042 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html @@ -2,27 +2,21 @@ {% load i18n %} -{% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} +{% block head_title %}{% translate "Verify Your E-mail Address" %}{% endblock %} -{% block content %} -{% blocktrans %}This part of the site requires us to verify that - you are who you claim to be. For this purpose, we require that you - verify ownership of your e-mail address. {% endblocktrans %}
+{% blocktranslate %}This part of the site requires us to verify that +you are who you claim to be. For this purpose, we require that you +verify ownership of your e-mail address. {% endblocktranslate %}
-{% blocktrans %}We have sent an e-mail to you for - verification. Please click on the link inside this e-mail. Please - contact us if you do not receive it within a few minutes.{% endblocktrans %}
+{% blocktranslate %}We have sent an e-mail to you for +verification. Please click on the link inside this e-mail. Please +contact us if you do not receive it within a few minutes.{% endblocktranslate %}
-{% blocktrans %}Note: you can still change your e-mail address.{% endblocktrans %}
-{% blocktranslate %}Note: you can still change your e-mail address.{% endblocktranslate %}
{% endblock %} -{% endraw %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html index b54692228e..58aca7208d 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html @@ -1,83 +1,121 @@ -{% raw %}{% load staticfiles i18n %} - +{% raw %}{% load static i18n {% endraw %}{% if cookiecutter.frontend_pipeline == 'Django Compressor' %}compress{% endif %}{% raw %}%} +{% get_current_language as LANGUAGE_CODE %} +