base site for phantas.ma
This commit is contained in:
parent
1e082c6786
commit
d27f4ac0c0
32 changed files with 50 additions and 710 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from django.conf import settings
|
||||
from django.core.mail import EmailMessage
|
||||
from django.shortcuts import render
|
||||
from app.video.utils import render_to_json_response
|
||||
from ..utils import render_to_json_response
|
||||
from . import forms
|
||||
from . import models
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ def index(request):
|
|||
form = forms.ContactForm(request.POST)
|
||||
if form.is_valid():
|
||||
message = 'From: %s\n\n%s' % (form.cleaned_data['email'], form.cleaned_data['message'])
|
||||
subject = 'njp.ma contact message'
|
||||
subject = 'phantas.ma contact message'
|
||||
from_ = settings.CONTACT_FROM_EMAIL
|
||||
to = [settings.CONTACT_TO_EMAIL]
|
||||
msg = EmailMessage(subject, message, from_, to, reply_to=[form.cleaned_data['email']])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue