Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Contact Form Package From Tirrilee

Project description

Tirrilee Contact Form Package

Install

$ pip install Tirrilee-Contact-Form

settings.py

INSTALLED_APPS = [
    ...
    'Tirrilee_Contact_Form',
]

...

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'         # 메일을 호스트하는 서버
EMAIL_PORT = '587'                    # 이메일 통신 포트(g-mail)
EMAIL_HOST_USER = 'your@gmail.com'    # 발신할 이메일
EMAIL_HOST_PASSWORD = 'your password' # 발신할 이메일 비밀번호
EMAIL_USE_TLS = True                  # TLS 사용 여부에 대한 설정
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER  # 응답을 받을 메일

TIRRILEE_SUBJECT_INTRO = '[고객문의] '  # 메일 타이틀 인트로

app/views.py

from Tirrilee_Contact_Form.views import ContactView
from django.views.generic import TemplateView

class Test(TemplateView, ContactView):
    template_name = 'index.html'

app/templates/index.html

{% load tirrilee_contact_tags %}

<header> ... </header>

{% render_contact_form %}

<footer> ... </footer>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Tirrilee-Contact-Form, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size Tirrilee_Contact_Form-0.3.1-py3-none-any.whl (10.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Tirrilee_Contact_Form-0.3.1.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page