Skip to content

Commit 148d74f

Browse files
committed
adicionando secret key via variável de ambiente
1 parent 8735291 commit 148d74f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

djangoecommerce/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = 'q37vaci*j=sokz04h*nxsxd1(%)%yjk$5ltg2pixirh+f91pbb'
25+
SECRET_KEY = os.getenv('SECRET_KEY','123')
2626

2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = False

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ gunicorn==19.4.5
44
model-mommy==1.3.1
55
psycopg2-binary==2.8.5
66
whitenoise==3.2
7+
django-widget-tweaks==1.4.8

0 commit comments

Comments
 (0)