move apps to own dir

This commit is contained in:
Pierre-antoine Comby 2019-08-11 14:47:44 +02:00
parent 7b23537ce1
commit fd9b9c34c7
29 changed files with 4 additions and 0 deletions

View File

@ -3,11 +3,15 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import os import os
import sys
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 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 # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/