/account/ -> /accounts/

This commit is contained in:
Oliver Falk
2018-05-14 11:20:28 +02:00
parent cafd282283
commit d7065640e0
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import os import os
from sys import platform, argv from sys import platform, argv
from ivatar.settings import BASE_DIR from ivatar.settings import BASE_DIR
from django.urls import reverse_lazy
ADMIN_USERS = [] ADMIN_USERS = []
ALLOWED_HOSTS = [ ALLOWED_HOSTS = [
@@ -43,7 +44,7 @@ SITE_URL = 'https://ivatar.io'
SITE_NAME = 'ivatar' SITE_NAME = 'ivatar'
IVATAR_VERSION = '0.1' IVATAR_VERSION = '0.1'
LOGIN_REDIRECT_URL = '/account/profile/' LOGIN_REDIRECT_URL = reverse_lazy('profile')
MAX_LENGTH_EMAIL = 254 # http://stackoverflow.com/questions/386294 MAX_LENGTH_EMAIL = 254 # http://stackoverflow.com/questions/386294
SERVER_EMAIL = 'accounts@ivatar.io' SERVER_EMAIL = 'accounts@ivatar.io'
DEFAULT_FROM_EMAIL = SERVER_EMAIL DEFAULT_FROM_EMAIL = SERVER_EMAIL

View File

@@ -10,7 +10,7 @@ from ivatar import settings
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
url('openid/', include('django_openid_auth.urls')), url('openid/', include('django_openid_auth.urls')),
url('account/', include('ivatar.ivataraccount.urls')), url('accounts/', include('ivatar.ivataraccount.urls')),
] ]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)