-
Notifications
You must be signed in to change notification settings - Fork 1
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
02cf167
commit f243201
Showing
24 changed files
with
15,498 additions
and
40 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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
FROM python:3.7.7 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
ENV SECRET_KEY "4bih3]<ae<'J_quAQyT2q^2-4'csa=" | ||
ENV ALLOWED_HOSTS 127.0.0.1, localhost, api | ||
ENV EMAIL_HOST_PASSWORD "lkdafn83nr2N98h3" | ||
|
||
RUN mkdir /backend | ||
WORKDIR /backend | ||
COPY requirements.txt /backend/ | ||
EXPOSE 8000 | ||
RUN pip install -r requirements.txt | ||
COPY . /backend/ | ||
CMD python manage.py makemigrations | ||
CMD python manage.py migrate | ||
RUN python manage.py migrate |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM python:3.7.7 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
ENV DJANGO_SECRET_KEY="4bih3]<ae<'J_quAQyT2q^2-4'csa | ||
RUN mkdir /backend | ||
WORKDIR /backend | ||
COPY requirements.txt /backend/ | ||
EXPOSE 8000 | ||
RUN pip install -r requirements.txt | ||
COPY . /backend/ | ||
CMD python manage.py makemigrations | ||
CMD python manage.py migrate |
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,17 +22,17 @@ | |
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ | ||
|
||
# SECURITY WARNING: keep the secret key used in production secret! | ||
SECRET_KEY = "yP[qaJ4#=ux+k3j[(kJBE%|YxQP*P3" | ||
SECRET_KEY = os.environ['SECRET_KEY'] | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
DEBUG = True | ||
|
||
ALLOWED_HOSTS = ['35.238.235.146', 'mutualhelptech.com', 'api'] | ||
ALLOWED_HOSTS = os.environ['ALLOWED_HOSTS'].split(" ") | ||
|
||
# Email backend settings for Django | ||
EMAIL_HOST = 'smtp.gmail.com' | ||
EMAIL_HOST_USER = '[email protected]' | ||
EMAIL_HOST_PASSWORD = 'cwgkixchdkhosgbo' | ||
EMAIL_HOST_PASSWORD = os.environ['EMAIL_HOST_PASSWORD'] | ||
EMAIL_PORT = 587 | ||
EMAIL_USE_TLS = True | ||
|
||
|
@@ -164,7 +164,7 @@ | |
# Use Django's standard `django.contrib.auth` permissions, | ||
# or allow read-only access for unauthenticated users. | ||
'DEFAULT_PERMISSION_CLASSES': [ | ||
'rest_framework.permissions.IsAuthenticatedOrReadOnly', | ||
'rest_framework.permissions.IsAuthenticated', | ||
], | ||
'DEFAULT_AUTHENTICATION_CLASSES': [ | ||
'rest_framework.authentication.TokenAuthentication', | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
gunicorn==20.0.4 | ||
numpy==1.18.5 | ||
pandas==1.0.4 | ||
asgiref==3.2.7 | ||
|
4 changes: 2 additions & 2 deletions
4
backend/templates/account/email/email_confirmation_message.txt
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,11 +1,11 @@ | ||
{% load account %}{% user_display user as user_display %}{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %} | ||
Greetings from the MutualHelp Tech Team! | ||
Greetings from the MutualHelpTech Team! | ||
|
||
You're receiving this e-mail because you have registered a new user under the username of {{ user_display }}. | ||
To activate this new account please click the following link: {{ activate_url }} | ||
{% endblocktrans %}{% endautoescape %} | ||
{% blocktrans with site_name=current_site.name site_domain=current_site.domain %} | ||
Thank you, | ||
|
||
MutualHelp Tech Team | ||
MutualHelpTech Team | ||
{% endblocktrans %} |
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
Oops, something went wrong.