Skip to main content

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.

Source Distribution

Tirrilee_Contact_Form-0.3.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Tirrilee_Contact_Form-0.3.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file Tirrilee_Contact_Form-0.3.1.tar.gz.

File metadata

File hashes

Hashes for Tirrilee_Contact_Form-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2d920c01248ad2272e215a99e087e5cb23090c001e17ba520236c5f3b12b1b33
MD5 ebe99829d3b2231b2b43ffce6241bbea
BLAKE2b-256 4c7e2bf9983ed03a51ebc4f5e1a1dd1bf25ef150d799fcb6906c19624edb7831

See more details on using hashes here.

File details

Details for the file Tirrilee_Contact_Form-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Tirrilee_Contact_Form-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b4c86172ceae576acbda1bbde78172a58c8e7bb350c8692632504f094282c96
MD5 2f625eb89011b73647cb4a363312efee
BLAKE2b-256 e3ba21ada414e0b50231321b12be32fd0635213c60e909c7132333e700154361

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page