diff --git a/.editorconfig b/.editorconfig index 261407067..6a9a5c45d 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 diff --git a/.flake8 b/.flake8 new file mode 100644 index 000000000..84b4b4411 --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +exclude = docs +max-line-length = 119 diff --git a/.github/CONTRIBUTORS-template.md b/.github/CONTRIBUTORS-template.md new file mode 100644 index 000000000..bc0928478 --- /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 | +
Jelmer Draaijer | ++ foarsitter + | ++ |
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 + | ++ |
Adin Hodovic | ++ adinhodovic + | ++ |
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 + | ++ |
Arkadiusz Michał Ryś | ++ arrys + | ++ |
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 + | ++ |
Birtibu | ++ Birtibu + | ++ |
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 | ++ buckldav + | ++ |
David Díaz | ++ ddiazpinto + | +DavidDiazPinto | +
Davit Tovmasyan | ++ davitovmasyan + | ++ |
Davur Clementsen | ++ dsclementsen + | +davur | +
Delio Castillo | ++ jangeador + | +jangeador | +
Delphine LEMIRE | ++ DelphineLemire + | ++ |
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 | +
duffn | ++ duffn + | ++ |
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 + | ++ |
Hoai-Thu Vuong | ++ thuvh + | ++ |
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 + | ++ |
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 + | ++ |
Leifur Halldor Asgeirsson | ++ leifurhauks + | ++ |
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 + | ++ |
Matheus Jardim Bernardes | ++ matheusjardimb + | ++ |
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 + | ++ |
Morten Kaae | ++ MortenKaae + | ++ |
mozillazg | ++ mozillazg + | ++ |
mpoli | ++ mpoli + | ++ |
mpsantos | ++ mpsantos + | ++ |
Naveen | ++ naveensrinivasan + | +snaveen | +
Nico Stefani | ++ nicolas471 + | +moby_dick91 | +
Nikita Sobolev | ++ sobolevn + | ++ |
Noah H | ++ nthall + | ++ |
Oleg Russkin | ++ rolep + | ++ |
Omer-5 | ++ Omer-5 + | ++ |
Pablo | ++ oubiga + | ++ |
Pamela Fox | ++ pamelafox + | +pamelafox | +
Parbhat Puri | ++ parbhat + | ++ |
Patrick Tran | ++ theptrk + | ++ |
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-- + | ++ |
rguptar | ++ rguptar + | ++ |
Richard Hajdu | ++ Tusky + | ++ |
Robin | ++ Kaffeetasse + | ++ |
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 + | ++ |
TAKAHASHI Shuuji | ++ shuuji3 + | ++ |
Tames McTigue | ++ Tamerz + | ++ |
Tano Abeleyra | ++ tanoabeleyra + | ++ |
Taylor Baldwin | ++ + | ++ |
Thibault J. | ++ thibault + | +thibault | +
Thomas Booij | ++ ThomasBooij95 + | ++ |
Théo Segonds | ++ show0k + | ++ |
tildebox | ++ tildebox + | ++ |
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/403_csrf.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/403_csrf.html deleted file mode 100644 index c02bd4e9e..000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/403_csrf.html +++ /dev/null @@ -1,9 +0,0 @@ -{% raw %}{% extends "base.html" %} - -{% block title %}Forbidden (403){% endblock %} - -{% block content %} -CSRF verification failed. Request aborted.
-{% 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 1687ef311..621596412 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html @@ -1,9 +1,14 @@ {% raw %}{% extends "base.html" %} -{% block title %}Page not found{% endblock %} - +{% block title %}Page not found{% endblock title %} {% 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 122e0813e..890320164 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/500.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/500.html @@ -1,13 +1,11 @@ {% raw %}{% extends "base.html" %} -{% block title %}Server Error{% endblock %} - +{% block title %}Server Error{% endblock title %} {% block content %} -We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.
++ 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 index fe9b68078..a9112cf09 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html @@ -2,11 +2,11 @@ {% load i18n %} -{% block head_title %}{% trans "Account Inactive" %}{% endblock %} - +{% block head_title %} + {% translate "Account Inactive" %} +{% endblock head_title %} {% block inner %} -{% trans "This account is inactive." %}
-{% endblock %} -{% endraw %} +{% translate "This account is inactive." %}
+{% endblock inner %} +{%- 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 cd07bbabf..057618257 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html @@ -1,11 +1,14 @@ {% raw %}{% extends "base.html" %} -{% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %} +{% block title %} + {% block head_title %} + {% endblock head_title %} +{% endblock title %} {% 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 %} - - -{% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}
- - - -{% else %} - -{% 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 %}
- -{% endif %} - -{% endblock %} -{% endraw %} ++ {% blocktranslate with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktranslate %} +
+ + {% else %} + {% url 'account_email' as email_url %} ++ {% blocktranslate %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktranslate %} +
+ {% endif %} +{% endblock inner %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html index a71932225..5737afc06 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html @@ -4,45 +4,50 @@ {% load account socialaccount %} {% load crispy_forms_tags %} -{% block head_title %}{% trans "Sign In" %}{% endblock %} - +{% block head_title %} + {% translate "Sign In" %} +{% endblock head_title %} {% block inner %} - -{% 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 %}
- - - -{% include "socialaccount/snippets/login_extra.html" %} - -{% else %} -{% blocktrans %}If you have not created an account yet, then please -sign up first.{% endblocktrans %}
-{% endif %} - - - -{% endblock %} -{% endraw %} + +{% endblock inner %} +{%- 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 baa8183c9..43ae9ed38 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html @@ -2,21 +2,20 @@ {% load i18n %} -{% block head_title %}{% trans "Sign Out" %}{% endblock %} - +{% block head_title %} + {% translate "Sign Out" %} +{% endblock head_title %} {% block inner %} -{% trans 'Are you sure you want to sign out?' %}
- - - - -{% endblock %} -{% endraw %} +{% translate "Are you sure you want to sign out?" %}
+ +{% endblock inner %} +{%- 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 62bbbc138..2e6110d5d 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 @@ -3,15 +3,17 @@ {% load i18n %} {% load crispy_forms_tags %} -{% block head_title %}{% trans "Change Password" %}{% endblock %} - +{% block head_title %} + {% translate "Change Password" %} +{% endblock head_title %} {% block inner %} -{% trans "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 %}
-{% endblock %} -{% endraw %} + {% endif %} ++ {% translate "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %} +
+ +{% blocktranslate %}Please contact us if you have any trouble resetting your password.{% endblocktranslate %}
+{% endblock inner %} +{%- 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 cf2129b1e..a596425bb 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,15 +3,16 @@ {% load i18n %} {% load account %} -{% block head_title %}{% trans "Password Reset" %}{% endblock %} - +{% block head_title %} + {% translate "Password Reset" %} +{% endblock head_title %} {% block inner %} -{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}
-{% endblock %} -{% endraw %} + {% endif %} ++ {% blocktranslate %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktranslate %} +
+{% endblock inner %} +{%- 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 2171144d8..a958ba089 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,24 +2,36 @@ {% load i18n %} {% load crispy_forms_tags %} -{% block head_title %}{% trans "Change Password" %}{% endblock %} +{% block head_title %} + {% translate "Change Password" %} +{% endblock head_title %} {% block inner %} -{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}
+ {% translate "Bad Token" %} {% else %} - {% if form %} - - {% else %} -{% trans 'Your password is now changed.' %}
- {% endif %} + {% translate "Change Password" %} {% endif %} -{% endblock %} -{% endraw %} + + {% if token_fail %} + {% url 'account_reset_password' as passwd_reset_url %} ++ {% 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 %} +{% translate "Your password is now changed." %}
+ {% endif %} + {% endif %} +{% endblock inner %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html index 925b7aa23..ee399b404 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html @@ -1,10 +1,12 @@ {% raw %}{% extends "account/base.html" %} {% load i18n %} -{% block head_title %}{% trans "Change Password" %}{% endblock %} +{% block head_title %} + {% translate "Change Password" %} +{% endblock head_title %} {% block inner %} -{% trans 'Your password is now changed.' %}
-{% endblock %} -{% endraw %} +{% translate "Your password is now changed." %}
+{% endblock inner %} +{%- 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 c98277157..3efc30874 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 @@ -3,15 +3,20 @@ {% load i18n %} {% load crispy_forms_tags %} -{% block head_title %}{% trans "Set Password" %}{% endblock %} - +{% block head_title %} + {% translate "Set Password" %} +{% endblock head_title %} {% block inner %} -{% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %}
- - - -{% endblock %} -{% endraw %} ++ {% blocktranslate %}Already have an account? Then please sign in.{% endblocktranslate %} +
+ +{% endblock inner %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html index eca9b1568..b3472ed6d 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html @@ -2,11 +2,11 @@ {% load i18n %} -{% block head_title %}{% trans "Sign Up Closed" %}{% endblock %} - +{% block head_title %} + {% translate "Sign Up Closed" %} +{% endblock head_title %} {% block inner %} -{% trans "We are sorry, but the sign up is currently closed." %}
-{% endblock %} -{% endraw %} +{% translate "We are sorry, but the sign up is currently closed." %}
+{% endblock inner %} +{%- 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 ccc8d9a1f..d71bbc41a 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,12 +2,13 @@ {% load i18n %} -{% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} - +{% block head_title %} + {% translate "Verify Your E-mail Address" %} +{% endblock head_title %} {% block inner %} -{% blocktrans %}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.{% endblocktrans %}
- -{% endblock %} -{% endraw %} ++ {% 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 inner %} +{%- 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 f3078b68e..b736581ce 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,23 +2,24 @@ {% load i18n %} -{% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} - +{% block head_title %} + {% translate "Verify Your E-mail Address" %} +{% endblock head_title %} {% block inner %} -{% blocktrans %}This part of the site requires us to verify that +
+ {% 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. {% endblocktrans %}
- -{% blocktrans %}We have sent an e-mail to you for +verify ownership of your e-mail address. {% endblocktranslate %} +
++ {% 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.{% endblocktrans %}
- -{% blocktrans %}Note: you can still change your e-mail address.{% endblocktrans %}
- - -{% endblock %} -{% endraw %} +contact us if you do not receive it within a few minutes.{% endblocktranslate %} + ++ {% blocktranslate %}Note: you can still change your e-mail address.{% endblocktranslate %} +
+{% endblock inner %} +{%- endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html index 4470e955a..421973e57 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html @@ -1,121 +1,194 @@ -{% raw %}{% load static i18n {% endraw %}{% if cookiecutter.use_compressor == "y" %}compress{% endif %}{% raw %}%} - +{% raw %} +{% load static i18n {% endraw %} + +{%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}compress{%- endif %}{% raw %}%}{% endraw %} + {%- if cookiecutter.frontend_pipeline == 'Webpack' %}{% raw %} + {% load render_bundle from webpack_loader %} + + {% endraw %} +{%- endif %}{% raw %} +{% get_current_language as LANGUAGE_CODE %} + - - -Use this document as a way to quick start any new project.
+ {% endblock content %} +{{ object.name }}
- {% endif %} +{{ object.name }}
{% endif %}