Free Django CMS Contact Form plugin

If you're looking for easy way to set up contact form on Djnago website, then you came to the right place. In this article we will present you free django cms contact form plugin, with nice and responsible design . 

 

Go to https://github.com/blaz1988/Django-CMS-Contact-Form-Plugingithub page  .On the right click on Downlaod Zip , extract files and navigate to folder Django-CMS-Contact-Form-Plugin/cmsplugin-contact-master /

There you need to run command

python setup.py install

If you have git , then you can use

git clone https://github.com/blaz1988/Django-CMS-Contact-Form-Plugin.git

 

 

Open settings.py and add 'cmsplugin_contact' under INSTALLED_APS 

 

In settings.py you need to add your email configuration information, for example I've created email address on webfaction web hosting , so I've added in settings.py 

 

 

DEFAULT_FROM_EMAIL = 'my_email _address'
EMAIL_HOST='smtp.webfaction.com'
EMAIL_PORT=25
EMAIL_HOST_USER='mymailbox_username'
EMAIL_HOST_PASSWORD='xxxxxxxxxxxxxxxxxxxx'

If you want to use gmail ,  then .. 

 

EMAIL_USE_TLS =True
EMAIL_HOST ='smtp.gmail.com'
EMAIL_PORT =587
EMAIL_HOST_USER ='me@gmail.com'
EMAIL_HOST_PASSWORD ='password'

We will use  south migrate to syncronize plugin database with django CMS , execute commands 

python manage.py migrate --fake
python manage.py schemamigration cmsplugin_contact --auto
python manage.py migrate cmsplugin_contact

 

If you don't have south then execute : 

python manage.py syncdb


 

 

After this we will able to add Contact form through placeholder,  go to django CMS edit mode "?edit", select Structure  and add Contact Form 

 

Through DjangoCMS interface you can set up , contact form settings. 

 

Contact form looks as show on image below :

 

 

email@djangotutsme.com Dec. 22, 2014, 5:55 a.m.