Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
djangocms-forms-maintained
Advanced tools
The easiest and most flexible Django CMS Form builder w/ ReCaptcha v2 support!
.. image:: http://img.shields.io/pypi/v/djangocms-forms-maintained.svg?style=flat-square :target: https://pypi.python.org/pypi/djangocms-forms-maintained/ :alt: Latest Version
.. image:: http://img.shields.io/pypi/dm/djangocms-forms-maintained.svg?style=flat-square :target: https://pypi.python.org/pypi/djangocms-forms-maintained/ :alt: Downloads
.. image:: http://img.shields.io/pypi/l/djangocms-forms-maintained.svg?style=flat-square :target: https://pypi.python.org/pypi/djangocms-forms-maintained/ :alt: License
.. image:: https://www.codefactor.io/repository/github/avryhof/djangocms-forms/badge :target: https://www.codefactor.io/repository/github/avryhof/djangocms-forms :alt: CodeFactor
This project requires django-cms v3.6 or higher to be properly installed and configured.
This package is compatible with Aldryn <http://www.aldryn.com/en/marketplace/djangocms-forms/>
_.
This version uses https://github.com/praekelt/django-recaptcha for ReCaptcha capabilities.
Install djangocms-forms-maintained
::
pip install djangocms-forms-maintained
Add djangocms_forms
to INSTALLED_APPS
::
INSTALLED_APPS = ( ... 'djangocms_forms', ... )
Sync database tables (requires south>=1.0.1 if you are using Django 1.6.x)::
python manage.py migrate
Add djangocms_forms.urls
to your project's urls
module or create a django CMS page to hook the application into. In Advanced Settings
, set its Application to Forms
(this requires a server restart)::
urlpatterns = patterns( ... path('', include('djangocms_forms.urls')), ... )
To use reCAPTCHA for spam protection, you need to sign up for an API key pair for your site::
DJANGOCMS_FORMS_RECAPTCHA_PUBLIC_KEY = '<recaptcha_site_key>' DJANGOCMS_FORMS_RECAPTCHA_SECRET_KEY = '<recaptcha_secret_key>'
You can register a new site via https://www.google.com/recaptcha/admin
Plugin(s) Module - If module is None, plugin is grouped Generic group::
DJANGOCMS_FORMS_PLUGIN_MODULE = _('Generic')
Name of the plugin::
DJANGOCMS_FORMS_PLUGIN_NAME = _('Form')
The path to the default template used to render the template::
DJANGOCMS_FORMS_DEFAULT_TEMPLATE = 'djangocms_forms/form_template/default.html'
or override the Form Template
dropdown choices to have different template options::
DJANGOCMS_FORMS_TEMPLATES = (
('djangocms_forms/form_template/default.html', _('Default')),
)
HTML5 required - When set to True all required fields inputs will be rendered with HTML5 required=required
attribute::
DJANGOCMS_FORMS_USE_HTML5_REQUIRED = False
By default, djangocms-forms
adds additional css classes to all form inputs. e.g. a Text
field generates an <input class="textinput">
You can override this to integrate your own CSS framework::
DJANGOCMS_FORMS_WIDGET_CSS_CLASSES = {'__all__': ('form-control', ) }
e.g. the above setting would generate <input class"form-control" ....
for all fields.
By default, djangocms-forms will redirect a successful form submission after 1000 milliseconds (1 second). You may provide your own redirect delay value for all forms site-wide via settings::
DJANGOCMS_FORMS_REDIRECT_DELAY = 10000 # 10 seconds
or on a per-form basis via the redirect_delay
field. The order of precedence for the redirect value is always::
instance.redirect_delay > DJANGOCMS_FORMS_REDIRECT_DELAY > 1000 (default)
As of 202206141310 you can now specify new FORMAT_CHOICES for the form, since tablib seems to be a bit finicky in the latest version::
DJANGOCMS_FORMS_FORMAT_CHOICES = (
("csv", _("CSV")),
("json", _("JSON")),
("yaml", _("YAML")),
("xlsx", _("Microsoft Excel")),
)
.. image:: http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_001.jpeg :target: http://mishbahr.github.io/djangocms-forms/assets/djangocms_forms_001.png :width: 768px :align: center
.. image:: http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_005.jpeg :target: http://mishbahr.github.io/djangocms-forms/assets/djangocms_forms_005.png :width: 768px :align: center
.. image:: http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_002.jpeg :target: http://mishbahr.github.io/djangocms-forms/assets/djangocms_forms_002.png :width: 768px :align: center
.. image:: http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_003.jpeg :target: http://mishbahr.github.io/djangocms-forms/assets/djangocms_forms_003.png :width: 768px :align: center
.. image:: http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_004.jpeg :target: http://mishbahr.github.io/djangocms-forms/assets/djangocms_forms_004.png :width: 768px :align: center
FAQs
The easiest and most flexible Django CMS Form builder w/ ReCaptcha v2 support!
We found that djangocms-forms-maintained demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.