Skip to content

Commit

Permalink
enable french admin in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolff committed Jan 27, 2020
1 parent 8efb969 commit e073415
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions example_project/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# flake8: noqa

import os

import sys
from django.utils.translation import ugettext_lazy as _


def abspath(*args):
Expand Down Expand Up @@ -47,6 +49,7 @@ def abspath(*args):
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
]

STATIC_URL = '/static/'
Expand Down Expand Up @@ -79,6 +82,17 @@ def abspath(*args):
},
]

LANGUAGE_CODE = 'en'

LANGUAGES = [
('en', _('English')),
('fr', _('French')),
]

USE_I18N = True

USE_L10N = True

DATETIME_FORMAT = 'Y-m-d @ H:i:s e'

# Enable specific currencies (djmoney)
Expand Down

0 comments on commit e073415

Please sign in to comment.