Skip to content

Commit

Permalink
mix fix for the email
Browse files Browse the repository at this point in the history
  • Loading branch information
slabia committed Oct 27, 2021
1 parent a8ee5b4 commit a8dc175
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
DJANGO_SETTINGS_MODULE='config.settings.local'
DATABASE_URL='postgresql://localhost/alissproject'
SECRET_KEY='thisisasecrectkey'
ALLOWED_HOSTS='localhost,www.localhost,127.0.0.1'
ELASTICSEARCH_URL=http://localhost:9200
ELASTICSEARCH_USERNAME=''
ELASTICSEARCH_PASSWORD=''
GOOGLE_API_KEY='secretinit'
CLOUDINARY_CLOUD_NAME='test'
CLOUDINARY_API_KEY='test'
CLOUDINARY_API_SECRET='test'
CLOUDINARY_URL='cloudinary://x:y@z'
ANALYTICS_ID='<google analytics id>'
SECRET_KEY=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

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ target/
.DS_Store

#App Specific
.env

staticfiles/

#Node + Gulp
Expand Down
2 changes: 1 addition & 1 deletion aliss/templates/account/password_reset.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>Reset your password</h1>
document.getElementById("Check").style.display = "none";
function DoSubmit(){

if(document.getElementById("Check").value.length == 0)
if(document.getElementById("Check").value.length != 0)
{
alert("Only registered user are able to send a request");
}
Expand Down
7 changes: 6 additions & 1 deletion config/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from .base import *
import environ


DEBUG = False

env = environ.Env()
environ.Env.read_env()

# Elasticsearch
ELASTICSEARCH_URL = os.environ.get('FOUNDELASTICSEARCH_URL')
ELASTICSEARCH_USERNAME = os.environ.get('ELASTICSEARCH_USERNAME', '')
Expand All @@ -17,6 +22,6 @@
EMAIL_HOST= 'smtp.sendgrid.net'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_PASSWORD = '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'
EMAIL_HOST_PASSWORD = env('SECRET_KEY')

SECURE_SSL_REDIRECT = True
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ cloudinary==1.14.0
requests>=2.22.0
Shapely>=1.6.4.post2
django-google-analytics-app==4.4.0
django-admin-bootstrapped>=1.6.4
django-admin-bootstrapped>=1.6.4
django-environ

0 comments on commit a8dc175

Please sign in to comment.