mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 04:58:01 +00:00
/account/ -> /accounts/
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user