Spaces:
Running
Running
luanpoppe
commited on
Commit
·
133d931
1
Parent(s):
d88cecb
feat: dividindo o installed apps em outro arquivo
Browse files- setup/installed_apps.py +21 -0
- setup/settings.py +1 -34
setup/installed_apps.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
config_apps = [
|
2 |
+
"django.contrib.admin",
|
3 |
+
"django.contrib.auth",
|
4 |
+
"django.contrib.contenttypes",
|
5 |
+
"django.contrib.sessions",
|
6 |
+
"django.contrib.messages",
|
7 |
+
"django.contrib.staticfiles",
|
8 |
+
"rest_framework",
|
9 |
+
"adrf",
|
10 |
+
"django_filters",
|
11 |
+
"corsheaders",
|
12 |
+
"pdfs",
|
13 |
+
"drf_spectacular",
|
14 |
+
]
|
15 |
+
|
16 |
+
INSTALLED_APPS = config_apps + [
|
17 |
+
"resumos",
|
18 |
+
"modelos_usuarios",
|
19 |
+
"ragas_api",
|
20 |
+
"gerar_relatorio_modelo_usuario",
|
21 |
+
]
|
setup/settings.py
CHANGED
@@ -1,20 +1,9 @@
|
|
1 |
import os
|
2 |
from dotenv import load_dotenv
|
|
|
3 |
|
4 |
load_dotenv()
|
5 |
|
6 |
-
"""
|
7 |
-
Django settings for setup project.
|
8 |
-
|
9 |
-
Generated by 'django-admin startproject' using Django 4.2.9.
|
10 |
-
|
11 |
-
For more information on this file, see
|
12 |
-
https://docs.djangoproject.com/en/4.2/topics/settings/
|
13 |
-
|
14 |
-
For the full list of settings and their values, see
|
15 |
-
https://docs.djangoproject.com/en/4.2/ref/settings/
|
16 |
-
"""
|
17 |
-
|
18 |
# from pathlib import Path
|
19 |
|
20 |
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
@@ -39,28 +28,6 @@ ALLOWED_HOSTS = [
|
|
39 |
"*",
|
40 |
]
|
41 |
|
42 |
-
|
43 |
-
# Application definition
|
44 |
-
|
45 |
-
INSTALLED_APPS = [
|
46 |
-
"django.contrib.admin",
|
47 |
-
"django.contrib.auth",
|
48 |
-
"django.contrib.contenttypes",
|
49 |
-
"django.contrib.sessions",
|
50 |
-
"django.contrib.messages",
|
51 |
-
"django.contrib.staticfiles",
|
52 |
-
"rest_framework",
|
53 |
-
"adrf",
|
54 |
-
"django_filters",
|
55 |
-
"corsheaders",
|
56 |
-
"pdfs",
|
57 |
-
"drf_spectacular",
|
58 |
-
"resumos",
|
59 |
-
"modelos_usuarios",
|
60 |
-
"ragas_api",
|
61 |
-
"gerar_relatorio_modelo_usuario",
|
62 |
-
]
|
63 |
-
|
64 |
MIDDLEWARE = [
|
65 |
"corsheaders.middleware.CorsMiddleware",
|
66 |
"django.middleware.security.SecurityMiddleware",
|
|
|
1 |
import os
|
2 |
from dotenv import load_dotenv
|
3 |
+
from setup.installed_apps import INSTALLED_APPS
|
4 |
|
5 |
load_dotenv()
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# from pathlib import Path
|
8 |
|
9 |
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
|
28 |
"*",
|
29 |
]
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
MIDDLEWARE = [
|
32 |
"corsheaders.middleware.CorsMiddleware",
|
33 |
"django.middleware.security.SecurityMiddleware",
|