Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed email send

  • Loading branch information...
commit 0d2fde6a0cc2dfd321e65fe658609bc417259f8a 1 parent d5d3566
@Guest007 authored
Showing with 3 additions and 13 deletions.
  1. +0 −10 eurocard/settings.py
  2. +3 −3 orders/views.py
View
10 eurocard/settings.py
@@ -70,16 +70,6 @@
# Database
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.mysql',
- "HOST": 'mysql',
- 'NAME': 'eurocard',
- 'USER': 'eurocard',
- 'PASSWORD': 'sUoh5tezRL',
- }
-}
-
# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/
View
6 orders/views.py
@@ -281,17 +281,17 @@ def callback(request):
time = datetime.datetime.now()
email = Settings.objects.get(slug='callback-mail')
- print email.content
+ # print email.content
try:
- messages.CALL_BACK.send(email,
+ messages.CALL_BACK.send(email.content,
**{
'name': name,
'phone': phone,
'message': message,
'time': time
})
- print "SENT"
+ # print "SENT"
except:
pass
Please sign in to comment.
Something went wrong with that request. Please try again.