thejagstudio commited on
Commit
7b1c03f
1 Parent(s): e9ca5f7

Update cloudStorage/settings.py

Browse files
Files changed (1) hide show
  1. cloudStorage/settings.py +5 -10
cloudStorage/settings.py CHANGED
@@ -27,7 +27,11 @@ SECRET_KEY = 'django-insecure-f221fh+#lk4ul5x@gk7bm2x5f&+u3uhu+t-(bri%t(uh!z6gf#
27
  DEBUG = False
28
  X_FRAME_OPTIONS = 'SAMEORIGIN'
29
 
30
- ALLOWED_HOSTS = ['127.0.0.1', 'thejagstudio-cloudstorage.hf.space']
 
 
 
 
31
 
32
 
33
  # Application definition
@@ -122,15 +126,6 @@ USE_TZ = True
122
  STATIC_URL = '/static/'
123
  STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
124
 
125
-
126
- EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
127
- EMAIL_HOST = 'smtp.gmail.com'
128
- EMAIL_USE_TLS = True
129
- EMAIL_PORT = 587
130
- EMAIL_HOST_USER = 'tempmailpatel@gmail.com'
131
- EMAIL_HOST_PASSWORD = 'Patel@99'
132
-
133
-
134
  # Default primary key field type
135
  # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
136
 
 
27
  DEBUG = False
28
  X_FRAME_OPTIONS = 'SAMEORIGIN'
29
 
30
+ ALLOWED_HOSTS = ['127.0.0.1', 'thejagstudio-cloudstorage.hf.space','*']
31
+ CORS_ALLOWED_ORIGINS = [
32
+ 'https://thejagstudio-cloudstorage.hf.space',
33
+ 'https://huggingface.co/spaces/thejagstudio/CloudStorage'
34
+ ]
35
 
36
 
37
  # Application definition
 
126
  STATIC_URL = '/static/'
127
  STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
128
 
 
 
 
 
 
 
 
 
 
129
  # Default primary key field type
130
  # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
131