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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Tirrilee_Contact_Form-0.3.1.tar.gz.
File metadata
- Download URL: Tirrilee_Contact_Form-0.3.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d920c01248ad2272e215a99e087e5cb23090c001e17ba520236c5f3b12b1b33
|
|
| MD5 |
ebe99829d3b2231b2b43ffce6241bbea
|
|
| BLAKE2b-256 |
4c7e2bf9983ed03a51ebc4f5e1a1dd1bf25ef150d799fcb6906c19624edb7831
|
File details
Details for the file Tirrilee_Contact_Form-0.3.1-py3-none-any.whl.
File metadata
- Download URL: Tirrilee_Contact_Form-0.3.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b4c86172ceae576acbda1bbde78172a58c8e7bb350c8692632504f094282c96
|
|
| MD5 |
2f625eb89011b73647cb4a363312efee
|
|
| BLAKE2b-256 |
e3ba21ada414e0b50231321b12be32fd0635213c60e909c7132333e700154361
|