Update translations
This commit is contained in:
@ -145,10 +145,10 @@ USE_TZ = True
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, "static"),
|
||||
os.path.join(BASE_DIR, 'static'),
|
||||
]
|
||||
|
||||
STATIC_ROOT = config('STATIC_ROOT',None)
|
||||
STATIC_ROOT = config('STATIC_ROOT',os.path.join(BASE_DIR, '../static'))
|
||||
|
||||
EMAIL_FROM_ADDRESS = config('EMAIL_FROM_ADDRESS', default='Do not reply<no-reply@rug.nl>')
|
||||
EMAIL_HOST = config('EMAIL_HOST', default='')
|
||||
|
@ -17,9 +17,14 @@ from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from django.conf.urls.static import static
|
||||
from django.conf.urls.i18n import i18n_patterns
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
admin.site.index_title = _('University of Groningen Polyclinic planning tool')
|
||||
admin.site.site_header = _('University of Groningen Polyclinic planning tool')
|
||||
admin.site.site_title = _('Polyclinic planning tool')
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('i18n/', include('django.conf.urls.i18n')),
|
||||
path('accounts/', include('django.contrib.auth.urls')),
|
||||
|
||||
@ -27,6 +32,12 @@ urlpatterns = [
|
||||
path('schedule/', include('apps.schedule.urls')),
|
||||
]
|
||||
|
||||
# Use language prefix option for admin translations
|
||||
urlpatterns += i18n_patterns (
|
||||
path('admin/', admin.site.urls),
|
||||
prefix_default_language=False
|
||||
)
|
||||
|
||||
if settings.DEBUG:
|
||||
import debug_toolbar
|
||||
urlpatterns = [
|
||||
|
Reference in New Issue
Block a user