-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from fleizean/spa
Spa
- Loading branch information
Showing
10 changed files
with
22 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,10 @@ | |
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ | ||
|
||
# SECURITY WARNING: keep the secret key used in production secret! | ||
SECRET_KEY = environ.get("SECRET_KEY", default="w^bxst+y6yv=d*5+7h)2s3)5vfz!b2jayit+#1epn(gr1-fotw") | ||
SECRET_KEY = environ.get("SECRET_KEY") | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
DEBUG = environ.get("DEBUG", default=False) | ||
DEBUG = environ.get("DEBUG", default=False) == 'True' | ||
|
||
BASE_URL = environ.get("BASE_URL", default='https://localhost:8443') | ||
|
||
|
@@ -121,9 +121,9 @@ | |
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.postgresql', | ||
'NAME': os.getenv('POSTGRES_DB', default='pong'), | ||
'USER': os.getenv('POSTGRES_USER', default='indianpong'), | ||
'PASSWORD': os.getenv('POSTGRES_PASSWORD', default='indianpong123'), | ||
'NAME': os.getenv('POSTGRES_DB'), | ||
'USER': os.getenv('POSTGRES_USER'), | ||
'PASSWORD': os.getenv('POSTGRES_PASSWORD'), | ||
'HOST': 'db', | ||
'PORT': '5432', | ||
} | ||
|
@@ -197,8 +197,8 @@ | |
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' | ||
EMAIL_HOST = 'smtp.gmail.com' | ||
EMAIL_PORT = 587 | ||
EMAIL_HOST_USER = environ.get("EMAIL_HOST_USER", default="[email protected]") | ||
EMAIL_HOST_PASSWORD = environ.get("EMAIL_HOST_PASSWORD", default="hxog cqpq jltp xjhi") | ||
EMAIL_HOST_USER = environ.get("EMAIL_HOST_USER") | ||
EMAIL_HOST_PASSWORD = environ.get("EMAIL_HOST_PASSWORD") | ||
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER | ||
EMAIL_USE_TLS = True | ||
EMAIL_USE_SSL = False | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ | |
class Command(BaseCommand): | ||
def handle(self, *args, **options): | ||
# Create superuser if not exists | ||
superuser = environ.get("SUPER_USER", default="Bitlis") | ||
supermail = environ.get("SUPER_MAIL", default="[email protected]") | ||
superpass = environ.get("SUPER_PASS", default="9247") | ||
superuser = environ.get("SUPER_USER") | ||
supermail = environ.get("SUPER_MAIL") | ||
superpass = environ.get("SUPER_PASS") | ||
if not UserProfile.objects.filter(username=superuser).exists(): | ||
super_user = UserProfile.objects.create_superuser(superuser, supermail, superpass) | ||
file = File(open('static/assets/profile/default_avatar.jpeg', "rb")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters