{ "info": { "author": "Leone Bacciu", "author_email": "leonebacciu@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Readme in progress\n\n# Requirements\n+ Python >= 3.6\n+ Django 2.2\n\n## General concept\n\n\n## Installation\n\nYou can install by:\n\n```commandline\npip3 install django-email-verification\n```\n\nand import by:\n\n```python\nINSTALLED_APPS = [\n 'django.contrib.admin',\n 'django.contrib.auth',\n ...\n 'django_email_verification', # you have to add this\n]\n```\n\n## Settings parameters\nYou have to add these parameters to the settings, you have to include all of them except the last one:\n```python\nEMAIL_SERVER = 'smtp.gmail.com'\nEMAIL_PORT = 587\nEMAIL_ADDRESS = 'mymail@gmail.com'\nEMAIL_PASSWORD = 'mYC00lP4ssw0rd'\nEMAIL_MAIL_SUBJECT = 'Confirm your email'\nEMAIL_MAIL_HTML = 'mail_body.html'\nEMAIL_MAIL_PLAIN = 'mail_body.txt'\nEMAIL_PAGE_TEMPLATE = 'confirm_template.html'\nEMAIL_PAGE_DOMAIN = 'http://mysite.com/'\nEMAIL_MODEL_ADMIN = False # the default value is False\n```\nIn detail:\n+ `EMAIL_SERVER`: your mail provider's server (e.g. `'smtp.gmail.com'` for gmail)\n+ `EMAIL_PORT`: your mail provider's server port (e.g. `587` for gmail)\n+ `EMAIL_ADDRESS`: your email address\n+ `EMAIL_PASSWORD`: your email address' password\n+ `EMAIL_MAIL_`:\n * `SUBJECT`: the mail default subject (needed)\n * `HTML`: the mail body in form of html (not needed)\n * `PLAIN`: the mail body in form of .txt file (needed if `HTML` is not defined)\n+ `EMAIL_PAGE_TEMPLATE`: the template of the success/error view\n+ `EMAIL_PAGE_DOMAIN`: the domain of the confirmation link (usually your site's domain)\n+ `EMAIL_MODEL_ADMIN`: True if you want to see the model in the admin panel (only for debugging purposes)\n\n## Templates examples\nThe `EMAIL_MAIL_HTML` should look like this (`{{ link }}` is passed during the rendering):\n```html\n\n\n
\n \n \n\n \n