-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33278e9
commit 5846d0e
Showing
16 changed files
with
26 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
from django.apps import AppConfig | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
from __future__ import unicode_literals | ||
import django.utils.timezone | ||
from django.utils.deprecation import MiddlewareMixin | ||
|
||
|
||
class TimezoneMiddleware(MiddlewareMixin): | ||
def process_request(self, request): | ||
if request.user.is_authenticated() and request.user.timezone: | ||
if request.user.is_authenticated and request.user.timezone: | ||
django.utils.timezone.activate(request.user.timezone) | ||
else: | ||
django.utils.timezone.deactivate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
import logging | ||
|
||
from django.utils.translation import ugettext_lazy as _ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
from __future__ import unicode_literals | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
import django.test | ||
import django.contrib.admin | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
import django.test | ||
import django.core.mail | ||
import django.db.models | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
import django.test | ||
import django.test.utils | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
import django.test | ||
import django.shortcuts | ||
import django.conf.urls | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
import django.test | ||
import django.test.utils | ||
import django.test.client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
from __future__ import unicode_literals | ||
|
||
import django.conf.urls | ||
from django.contrib.auth.urls import url | ||
import django.contrib.auth.urls | ||
import django.contrib.auth.views | ||
|
||
import views | ||
import forms | ||
|
||
from accountsplus import views | ||
from accountsplus import forms | ||
|
||
urlpatterns = [ | ||
url(r'^logout/$', views.logout_then_login, name='logout'), | ||
url(r'^password_change/$', views.password_change, name='password_change'), | ||
url(r'^password_reset/$', views.password_reset, name='password_reset'), | ||
url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', | ||
django.contrib.auth.views.password_reset_confirm, name='password_reset_confirm'), | ||
django.conf.urls.url(r'^logout/$', views.logout_then_login, name='logout'), | ||
django.conf.urls.url(r'^password_change/$', views.password_change, name='password_change'), | ||
django.conf.urls.url(r'^password_reset/$', views.password_reset, name='password_reset'), | ||
django.conf.urls.url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', | ||
django.contrib.auth.views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'), | ||
|
||
# override the admin password reset flow to use the normal site password | ||
# reset flow | ||
url(r'^password_reset/$', views.password_reset, name='admin_password_reset'), | ||
django.conf.urls.url(r'^password_reset/$', views.password_reset, name='admin_password_reset'), | ||
|
||
url(r'^login/$', | ||
django.contrib.auth.views.login, | ||
django.conf.urls.url(r'^login/$', | ||
django.contrib.auth.views.LoginView.as_view(), | ||
kwargs={'authentication_form': forms.EmailBasedAuthenticationForm, 'redirect_authenticated_user': True}, | ||
name='login'), | ||
url(r'^', django.conf.urls.include(django.contrib.auth.urls)), | ||
django.conf.urls.url(r'^', django.conf.urls.include(django.contrib.auth.urls)), | ||
|
||
# masquerade views | ||
url(r'^admin/masquerade/end/$', views.end_masquerade, name='end_masquerade'), | ||
url(r'^admin/masquerade/(?P<user_id>\d+)/$', views.masquerade, name='masquerade'), | ||
django.conf.urls.url(r'^admin/masquerade/end/$', views.end_masquerade, name='end_masquerade'), | ||
django.conf.urls.url(r'^admin/masquerade/(?P<user_id>\d+)/$', views.masquerade, name='masquerade'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
setuptools | ||
Django==1.10.1 | ||
Django==2.2.1 | ||
flake8 | ||
pep8 | ||
pyflakes | ||
|