diff --git a/config.py b/config.py index f30b7d5..36f681a 100644 --- a/config.py +++ b/config.py @@ -1,6 +1,7 @@ import os from sys import platform, argv from ivatar.settings import BASE_DIR +from django.urls import reverse_lazy ADMIN_USERS = [] ALLOWED_HOSTS = [ @@ -43,7 +44,7 @@ SITE_URL = 'https://ivatar.io' SITE_NAME = 'ivatar' IVATAR_VERSION = '0.1' -LOGIN_REDIRECT_URL = '/account/profile/' +LOGIN_REDIRECT_URL = reverse_lazy('profile') MAX_LENGTH_EMAIL = 254 # http://stackoverflow.com/questions/386294 SERVER_EMAIL = 'accounts@ivatar.io' DEFAULT_FROM_EMAIL = SERVER_EMAIL diff --git a/ivatar/urls.py b/ivatar/urls.py index 3717c28..4ffab7a 100644 --- a/ivatar/urls.py +++ b/ivatar/urls.py @@ -10,7 +10,7 @@ from ivatar import settings urlpatterns = [ path('admin/', admin.site.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)