Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
1696eaf0
Commit
1696eaf0
authored
Nov 20, 2019
by
alexandre
Browse files
Merge branch '8-add-reset-password-view' into 'pad-management'
Fix
#8
Add a reset password view See merge request
!10
parents
a6082dc1
d7bb4930
Changes
3
Hide whitespace changes
Inline
Side-by-side
ethertoff/urls.py
View file @
1696eaf0
from
django.contrib.auth
import
views
as
auth_views
from
django.conf.urls
import
include
from
django.urls
import
path
,
re_path
from
.
import
views
...
...
@@ -22,12 +23,6 @@ urlpatterns = [
path
(
'css-offset/'
,
views
.
offsetprint
,
name
=
'css-offset'
),
path
(
'css-slide/'
,
views
.
css_slide
,
name
=
'css-slide'
),
re_path
(
r
'^(?P<slug>[^/]+)\.xhtml$'
,
views
.
xhtml
,
name
=
'xhtml'
),
path
(
'accounts/login'
,
auth_views
.
LoginView
.
as_view
(),
{
'template_name'
:
'login.html'
},
name
=
'login'
),
path
(
'accounts/logout'
,
auth_views
.
LogoutView
.
as_view
(),
{
'template_name'
:
'logout.html'
},
name
=
'logout'
),
path
(
'accounts/password_change'
,
auth_views
.
PasswordChangeView
.
as_view
(),
name
=
"password_change"
),
path
(
'accounts/password_change_done'
,
auth_views
.
PasswordChangeDoneView
.
as_view
(),
name
=
"password_change_done"
),
path
(
'create/'
,
views
.
padCreate
,
name
=
'pad-create'
),
path
(
'create/<path:prefix>'
,
views
.
padCreate
,
name
=
'pad-create'
),
re_path
(
r
'^rename/(?P<pk>\d+)/$'
,
views
.
padRename
,
name
=
'pad-rename'
),
...
...
my_project/local_settings.py.example
View file @
1696eaf0
...
...
@@ -35,3 +35,4 @@ MEDIA_ROOT = ''
# Example: "/var/www/example.com/static/"
STATIC_ROOT = '/home/osp/static-ethertoff-collected/'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
my_project/urls.py
View file @
1696eaf0
...
...
@@ -22,6 +22,7 @@ except AttributeError:
app_name
=
"ethertoff"
urlpatterns
=
[
path
(
'accounts/'
,
include
(
'django.contrib.auth.urls'
)),
path
(
''
,
include
(
"ethertoff.urls"
)),
]
+
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment