-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcce77f
commit 6ac39b5
Showing
66 changed files
with
363 additions
and
29 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
pipenv shell | ||
if [ "$DATABASE" = "postgres" ] | ||
then | ||
echo "Waiting for postgres..." | ||
|
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0002_auto_20200422_2131.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0003_auto_20200422_2335.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0004_auto_20200422_2356.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0005_auto_20200423_0041.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0006_auto_20200423_0101.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0007_auto_20200423_0102.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0008_auto_20200423_0106.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0009_auto_20200423_1558.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0010_auto_20200423_1640.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0011_auto_20200423_1643.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0012_auto_20200423_1644.cpython-37.pyc
100644 → 100755
Empty file.
Empty file modified
0
mhbank/migrations/__pycache__/0013_account_last_added_question.cpython-37.pyc
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file not shown.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
""" | ||
Django settings for rasta_problem_bank project. | ||
Django settings for ra project. | ||
Generated by 'django-admin startproject' using Django 3.0.5. | ||
Generated by 'django-admin startproject' using Django 3.0.4. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/3.0/topics/settings/ | ||
|
@@ -12,32 +12,32 @@ | |
|
||
import os | ||
|
||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | ||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
|
||
def get_environment_var(var_name, default, prefixed=True): | ||
if prefixed: | ||
var_name = 'BANK_SERVER_%s' % var_name | ||
return os.getenv(var_name, default) | ||
|
||
# Quick-start development settings - unsuitable for production | ||
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ | ||
|
||
# SECURITY WARNING: keep the secret key used in production secret! | ||
SECRET_KEY = '3vn$cbhyxv5r3c-iu6i9cm8yaqvz0^9kblha1wq4@0jp13hgjv' | ||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | ||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
DEBUG = True | ||
|
||
ALLOWED_HOSTS = [] | ||
# Quick-start development settings - unsuitable for production | ||
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ | ||
|
||
|
||
# Application definition | ||
|
||
INSTALLED_APPS = [ | ||
'mhbank.apps.MhbankConfig', | ||
'django.contrib.admin', | ||
'django.contrib.auth', | ||
'django.contrib.contenttypes', | ||
'django.contrib.sessions', | ||
'django.contrib.messages', | ||
'django.contrib.staticfiles', | ||
'import_export', | ||
'mhbank', | ||
] | ||
|
||
MIDDLEWARE = [ | ||
|
@@ -63,6 +63,7 @@ | |
'django.template.context_processors.request', | ||
'django.contrib.auth.context_processors.auth', | ||
'django.contrib.messages.context_processors.messages', | ||
'homepage.context_processors.site_configuration_processor', | ||
], | ||
}, | ||
}, | ||
|
@@ -71,17 +72,6 @@ | |
WSGI_APPLICATION = 'rasta_problem_bank.wsgi.application' | ||
|
||
|
||
# Database | ||
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | ||
} | ||
} | ||
|
||
|
||
# Password validation | ||
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators | ||
|
||
|
@@ -104,7 +94,7 @@ | |
# Internationalization | ||
# https://docs.djangoproject.com/en/3.0/topics/i18n/ | ||
|
||
LANGUAGE_CODE = 'fa-ir' | ||
LANGUAGE_CODE = 'en-us' | ||
|
||
TIME_ZONE = 'Asia/Tehran' | ||
|
||
|
@@ -114,12 +104,44 @@ | |
|
||
USE_TZ = True | ||
|
||
|
||
|
||
# Static files (CSS, JavaScript, Images) | ||
# https://docs.djangoproject.com/en/3.0/howto/static-files/ | ||
|
||
STATIC_URL = '/static/' | ||
|
||
MEDIA_URL = '/media/' | ||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') | ||
|
||
|
||
EMAIL_HOST = 'smtp.zoho.com' | ||
EMAIL_HOST_USER = '[email protected]' | ||
EMAIL_HOST_PASSWORD = 'ET6vmrh.$gHZFjL' | ||
EMAIL_PORT = 587 | ||
EMAIL_USE_TLS = True | ||
EMAIL_USE_SSL = False | ||
DEFAULT_FROM_EMAIL = "Rastaiha <" + EMAIL_HOST_USER + ">" | ||
|
||
# Activate Django-Heroku. | ||
|
||
OK_STATUS = 'ok' | ||
ERROR_STATUS = 'err' | ||
HELP_STATUS = 'help' | ||
|
||
DJANGO_NOTIFICATIONS_CONFIG = { | ||
'USE_JSONFIELD': True, | ||
'SOFT_DELETE': True, | ||
'NUM_TO_FETCH': 40, | ||
} | ||
|
||
|
||
THUMBNAIL_ALIASES = { | ||
'': { | ||
'avatar': {'size': (80, 80), 'crop': True}, | ||
}, | ||
} | ||
|
||
|
||
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' | ||
|
Oops, something went wrong.