From 20953ff214f02d419f8369abd55acb1b269bf686 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Thu, 20 Feb 2020 22:15:28 +0100 Subject: [PATCH] Change default site name with project fixture --- note_kfet/fixtures/initial.json | 10 ++++++++++ note_kfet/settings/base.py | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 note_kfet/fixtures/initial.json diff --git a/note_kfet/fixtures/initial.json b/note_kfet/fixtures/initial.json new file mode 100644 index 00000000..08501606 --- /dev/null +++ b/note_kfet/fixtures/initial.json @@ -0,0 +1,10 @@ +[ + { + "model": "sites.site", + "pk": 1, + "fields": { + "domain": "localhost", + "name": "La Note Kfet \ud83c\udf7b" + } + } +] \ No newline at end of file diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index 410f496f..92ed5819 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -160,6 +160,8 @@ USE_TZ = True LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")] +FIXTURE_DIRS = [os.path.join(BASE_DIR, "note_kfet/fixtures")] + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.2/howto/static-files/