FerdinandPyCode commited on
Commit
745765c
·
1 Parent(s): c2b9868

database okay

Browse files
lambdaAPI/__pycache__/settings.cpython-310.pyc CHANGED
Binary files a/lambdaAPI/__pycache__/settings.cpython-310.pyc and b/lambdaAPI/__pycache__/settings.cpython-310.pyc differ
 
lambdaAPI/settings.py CHANGED
@@ -1,14 +1,3 @@
1
- """
2
- Django settings for lambdaAPI project.
3
-
4
- Generated by 'django-admin startproject' using Django 4.2.5.
5
-
6
- For more information on this file, see
7
- https://docs.djangoproject.com/en/4.2/topics/settings/
8
-
9
- For the full list of settings and their values, see
10
- https://docs.djangoproject.com/en/4.2/ref/settings/
11
- """
12
  import os
13
  from pathlib import Path
14
  from datetime import timedelta
@@ -26,9 +15,6 @@ SECRET_KEY = 'django-insecure-@+xrq$v0iii&b$az^pve=_d)2tf@(m6p7r$ceh2&3(2#k9y+3x
26
  # SECURITY WARNING: don't run with debug turned on in production!
27
  DEBUG = True
28
 
29
- ALLOWED_HOSTS = ['*']
30
-
31
-
32
  # Application definition
33
 
34
  INSTALLED_APPS = [
@@ -95,6 +81,16 @@ DATABASES = {
95
  }
96
  }
97
 
 
 
 
 
 
 
 
 
 
 
98
 
99
  # Password validation
100
  # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
@@ -114,6 +110,8 @@ AUTH_PASSWORD_VALIDATORS = [
114
  },
115
  ]
116
 
 
 
117
  CORS_ALLOWED_ORIGINS = [
118
  "http://localhost",
119
  "https://ferdinandpycode-lambda-hf.hf.space",
 
 
 
 
 
 
 
 
 
 
 
 
1
  import os
2
  from pathlib import Path
3
  from datetime import timedelta
 
15
  # SECURITY WARNING: don't run with debug turned on in production!
16
  DEBUG = True
17
 
 
 
 
18
  # Application definition
19
 
20
  INSTALLED_APPS = [
 
81
  }
82
  }
83
 
84
+ # DATABASES = {
85
+ # 'default': {
86
+ # 'ENGINE': 'django.db.backends.postgresql',
87
+ # 'NAME': 'lambdaadb',
88
+ # 'USER': 'lambdaus',
89
+ # 'PASSWORD': 'LaMbd@r2o24C10',
90
+ # 'HOST': '15.237.37.208',
91
+ # 'PORT': '5432',
92
+ # }
93
+ # }
94
 
95
  # Password validation
96
  # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
 
110
  },
111
  ]
112
 
113
+ ALLOWED_HOSTS = ['127.0.0.1','https://ferdinandpycode-lambda-hf.hf.space','http://localhost']
114
+
115
  CORS_ALLOWED_ORIGINS = [
116
  "http://localhost",
117
  "https://ferdinandpycode-lambda-hf.hf.space",