From fd9b9c34c796467045419e1483381dc0372dc42a Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Sun, 11 Aug 2019 14:47:44 +0200 Subject: [PATCH] move apps to own dir --- {activity => apps/activity}/__init__.py | 0 {activity => apps/activity}/admin.py | 0 {activity => apps/activity}/apps.py | 0 {activity => apps/activity}/locale/fr/LC_MESSAGES/django.po | 0 {activity => apps/activity}/migrations/__init__.py | 0 {activity => apps/activity}/models.py | 0 {activity => apps/activity}/tests/__init__.py | 0 {member => apps/member}/__init__.py | 0 {member => apps/member}/admin.py | 0 {member => apps/member}/apps.py | 0 {member => apps/member}/forms.py | 0 {member => apps/member}/locale/fr/LC_MESSAGES/django.po | 0 {member => apps/member}/migrations/__init__.py | 0 {member => apps/member}/models.py | 0 {member => apps/member}/tests/__init__.py | 0 {member => apps/member}/views.py | 0 {note => apps/note}/__init__.py | 0 {note => apps/note}/admin.py | 0 {note => apps/note}/apps.py | 0 {note => apps/note}/locale/fr/LC_MESSAGES/django.po | 0 {note => apps/note}/migrations/__init__.py | 0 {note => apps/note}/models/__init__.py | 0 {note => apps/note}/models/notes.py | 0 {note => apps/note}/models/transactions.py | 0 {note => apps/note}/signals.py | 0 {note => apps/note}/tests/__init__.py | 0 {note => apps/note}/urls.py | 0 {note => apps/note}/views.py | 0 note_kfet/settings.py | 4 ++++ 29 files changed, 4 insertions(+) rename {activity => apps/activity}/__init__.py (100%) rename {activity => apps/activity}/admin.py (100%) rename {activity => apps/activity}/apps.py (100%) rename {activity => apps/activity}/locale/fr/LC_MESSAGES/django.po (100%) rename {activity => apps/activity}/migrations/__init__.py (100%) rename {activity => apps/activity}/models.py (100%) rename {activity => apps/activity}/tests/__init__.py (100%) rename {member => apps/member}/__init__.py (100%) rename {member => apps/member}/admin.py (100%) rename {member => apps/member}/apps.py (100%) rename {member => apps/member}/forms.py (100%) rename {member => apps/member}/locale/fr/LC_MESSAGES/django.po (100%) rename {member => apps/member}/migrations/__init__.py (100%) rename {member => apps/member}/models.py (100%) rename {member => apps/member}/tests/__init__.py (100%) rename {member => apps/member}/views.py (100%) rename {note => apps/note}/__init__.py (100%) rename {note => apps/note}/admin.py (100%) rename {note => apps/note}/apps.py (100%) rename {note => apps/note}/locale/fr/LC_MESSAGES/django.po (100%) rename {note => apps/note}/migrations/__init__.py (100%) rename {note => apps/note}/models/__init__.py (100%) rename {note => apps/note}/models/notes.py (100%) rename {note => apps/note}/models/transactions.py (100%) rename {note => apps/note}/signals.py (100%) rename {note => apps/note}/tests/__init__.py (100%) rename {note => apps/note}/urls.py (100%) rename {note => apps/note}/views.py (100%) diff --git a/activity/__init__.py b/apps/activity/__init__.py similarity index 100% rename from activity/__init__.py rename to apps/activity/__init__.py diff --git a/activity/admin.py b/apps/activity/admin.py similarity index 100% rename from activity/admin.py rename to apps/activity/admin.py diff --git a/activity/apps.py b/apps/activity/apps.py similarity index 100% rename from activity/apps.py rename to apps/activity/apps.py diff --git a/activity/locale/fr/LC_MESSAGES/django.po b/apps/activity/locale/fr/LC_MESSAGES/django.po similarity index 100% rename from activity/locale/fr/LC_MESSAGES/django.po rename to apps/activity/locale/fr/LC_MESSAGES/django.po diff --git a/activity/migrations/__init__.py b/apps/activity/migrations/__init__.py similarity index 100% rename from activity/migrations/__init__.py rename to apps/activity/migrations/__init__.py diff --git a/activity/models.py b/apps/activity/models.py similarity index 100% rename from activity/models.py rename to apps/activity/models.py diff --git a/activity/tests/__init__.py b/apps/activity/tests/__init__.py similarity index 100% rename from activity/tests/__init__.py rename to apps/activity/tests/__init__.py diff --git a/member/__init__.py b/apps/member/__init__.py similarity index 100% rename from member/__init__.py rename to apps/member/__init__.py diff --git a/member/admin.py b/apps/member/admin.py similarity index 100% rename from member/admin.py rename to apps/member/admin.py diff --git a/member/apps.py b/apps/member/apps.py similarity index 100% rename from member/apps.py rename to apps/member/apps.py diff --git a/member/forms.py b/apps/member/forms.py similarity index 100% rename from member/forms.py rename to apps/member/forms.py diff --git a/member/locale/fr/LC_MESSAGES/django.po b/apps/member/locale/fr/LC_MESSAGES/django.po similarity index 100% rename from member/locale/fr/LC_MESSAGES/django.po rename to apps/member/locale/fr/LC_MESSAGES/django.po diff --git a/member/migrations/__init__.py b/apps/member/migrations/__init__.py similarity index 100% rename from member/migrations/__init__.py rename to apps/member/migrations/__init__.py diff --git a/member/models.py b/apps/member/models.py similarity index 100% rename from member/models.py rename to apps/member/models.py diff --git a/member/tests/__init__.py b/apps/member/tests/__init__.py similarity index 100% rename from member/tests/__init__.py rename to apps/member/tests/__init__.py diff --git a/member/views.py b/apps/member/views.py similarity index 100% rename from member/views.py rename to apps/member/views.py diff --git a/note/__init__.py b/apps/note/__init__.py similarity index 100% rename from note/__init__.py rename to apps/note/__init__.py diff --git a/note/admin.py b/apps/note/admin.py similarity index 100% rename from note/admin.py rename to apps/note/admin.py diff --git a/note/apps.py b/apps/note/apps.py similarity index 100% rename from note/apps.py rename to apps/note/apps.py diff --git a/note/locale/fr/LC_MESSAGES/django.po b/apps/note/locale/fr/LC_MESSAGES/django.po similarity index 100% rename from note/locale/fr/LC_MESSAGES/django.po rename to apps/note/locale/fr/LC_MESSAGES/django.po diff --git a/note/migrations/__init__.py b/apps/note/migrations/__init__.py similarity index 100% rename from note/migrations/__init__.py rename to apps/note/migrations/__init__.py diff --git a/note/models/__init__.py b/apps/note/models/__init__.py similarity index 100% rename from note/models/__init__.py rename to apps/note/models/__init__.py diff --git a/note/models/notes.py b/apps/note/models/notes.py similarity index 100% rename from note/models/notes.py rename to apps/note/models/notes.py diff --git a/note/models/transactions.py b/apps/note/models/transactions.py similarity index 100% rename from note/models/transactions.py rename to apps/note/models/transactions.py diff --git a/note/signals.py b/apps/note/signals.py similarity index 100% rename from note/signals.py rename to apps/note/signals.py diff --git a/note/tests/__init__.py b/apps/note/tests/__init__.py similarity index 100% rename from note/tests/__init__.py rename to apps/note/tests/__init__.py diff --git a/note/urls.py b/apps/note/urls.py similarity index 100% rename from note/urls.py rename to apps/note/urls.py diff --git a/note/views.py b/apps/note/views.py similarity index 100% rename from note/views.py rename to apps/note/views.py diff --git a/note_kfet/settings.py b/note_kfet/settings.py index c7814b10..67314982 100644 --- a/note_kfet/settings.py +++ b/note_kfet/settings.py @@ -3,11 +3,15 @@ # SPDX-License-Identifier: GPL-3.0-or-later import os +import sys from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +PROJECT_DIR = os.path.dirnam(os.path.realpath(__file__)) +APPS_DIR = os.path.realpath(oas.path.join(BASE_DIR,"apps")) +sys.path.append(APPS_DIR) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/