django-simple-forms


Namedjango-simple-forms JSON
Version 0.1.9 PyPI version JSON
download
home_pagehttps://github.com/jonathanrickard
SummaryA Django app for creating forms
upload_time2024-02-06 18:38:51
maintainer
docs_urlNone
authorJonathan Rickard
requires_python
licenseMIT License
keywords django forms
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===================
django-simple-forms
===================

The django-simple-forms Django app is in an early stage of development and looking for contributors. Priorities are completing tests and documentation. Use at your own risk.

This app is used to build and manage Django forms in the admin without having to write code. Form responses can be viewed or edited in the admin, and reponses can be emailed to any number of recipients our output as PDFs with custom templates. Responses can be downloaded as an Excel spreadsheet.

-----------
Quick start
-----------

1. Run ``pip install django-simple-forms``.

2. Add django-simple-forms and its dependencies to your installed apps: ::

    INSTALLED_APPS = (
        ...
        'django.contrib.sites',

        'adminsortable2',
        'ckeditor',
        'django_simple_file_handler',
        'django_simple_forms',
    )

3. Run ``python manage.py migrate``.

4. Include the django-simple-forms URLconf and the django-simple-file-handler URLconf in your website's ``urls.py``: ::

    urlpatterns = [
        ...
        path(
            'forms/',
            include('django_simple_forms.urls')
        ),
        path(
            'pdf/',
            include('django_simple_file_handler.urls'),
        ),
    ]

5. If you are already using the Django sites framework, run ``python manage.py forms_import_sites``.
You will then need to go to FORMS > Site profiles in your admin site and check to be sure your details are correct.
All new site profiles will be assigned an ``https://`` protocol, so change this if necessary.

If you are not already using the Django sites framework, go to your admin site and, under FORMS > Site profiles, create a profile with your site's information.

The ``SITE_ID`` setting is needed for django-simple-forms. See the `Django sites framework documentation <https://docs.djangoproject.com/en/2.2/ref/contrib/sites/>`_ for more information.

6. Refer to the `Django email documentation <https://docs.djangoproject.com/en/2.2/topics/email/>`_ for information on configuring a website to send email.

7. If you intend to use PDF output, see the ``Generating PDFs`` section of the `django-simple-file-handler documentation <https://github.com/jonathanrickard/django-simple-file-handler>`_ for additional configuration information.

-------------------
Management commands
-------------------

* ``forms_import_sites``: Creates a FormsSiteProfile instance for each instance in the Django sites framework
* ``delete_unused_addresses``: Deletes email addresses that do not have any forms assigned
* ``delete_expired_responses``: Deletes form responses that have reached or passed their deletion date

---------------------
Needing documentation
---------------------

* Optional settings
* User permissions
* Use of ``initial_boolean`` field in admin
* Use of `XlsxWriter <https://github.com/jmcnamara/XlsxWriter/>`_ in spreadsheet generation
* Explanation of admin customization options for response categories
* Explanation of how to specify custom HTML and CSS files for most internal and external pages through the form definition admin
* Explanation that ``email`` can not be used as a field name because it is already used as a hidden honeypot field
* Explanation that default error messages are built in, and any entered in the admin are just for customization
* Explanation that deleting a form instance will not delete its response category
* Explanation that clicking the "Delete" button in the admin for a form's responses will only delete the category if the form instance does not exist anymore — otherwise, it will just delete all of the associated responses and leave the category
* Explanation that reply-to email address's last name field is not checked if there is not a reply-to first name given
* Explanation that "true" and "false" strings are available for use in a Select widget to set a BooleanField using a hidden TypedChoiceField.
* Explanation that DateField and TimeField are rudimentary with just text inputs; in practice, they would usually be replaced using JavaScript widgets; input formats is not yet supported, but can be set universally in settings per Django documentation
* Explanation of formatting for date and time stored as strings
* Explanation of how ``app_label`` and ``model_name`` are used for ease of subclassing and to change ``get_queryset``
* Explanation of what values are available in email templates and how to access those values
* Explanation that template field data lists have a string of ``label`` + ``suffix`` as the first item that can be accessed as ``data.0`` in a template
* Explanation that, by default, ``output_formatted_date_time`` and ``output_text`` are used in the default templates, but ``output_dict`` and ``output_no_br`` are also available in most cases
* Explanation that ``created`` and ``updated`` model instance data is also available in HTML and PDF templates
* Explanation of the ``checkbox_select_multiple`` class being automatically added to the CheckboxSelectMultiple <ul> tag to make styling easier

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jonathanrickard",
    "name": "django-simple-forms",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django,forms",
    "author": "Jonathan Rickard",
    "author_email": "jonathan@jonathanrickard.com",
    "download_url": "https://files.pythonhosted.org/packages/aa/e3/274ac85b0aa22a6af34958a93ebad6e37dd78054ba52a7b476e10fb5e57b/django_simple_forms-0.1.9.tar.gz",
    "platform": null,
    "description": "===================\ndjango-simple-forms\n===================\n\nThe django-simple-forms Django app is in an early stage of development and looking for contributors. Priorities are completing tests and documentation. Use at your own risk.\n\nThis app is used to build and manage Django forms in the admin without having to write code. Form responses can be viewed or edited in the admin, and reponses can be emailed to any number of recipients our output as PDFs with custom templates. Responses can be downloaded as an Excel spreadsheet.\n\n-----------\nQuick start\n-----------\n\n1. Run ``pip install django-simple-forms``.\n\n2. Add django-simple-forms and its dependencies to your installed apps: ::\n\n    INSTALLED_APPS = (\n        ...\n        'django.contrib.sites',\n\n        'adminsortable2',\n        'ckeditor',\n        'django_simple_file_handler',\n        'django_simple_forms',\n    )\n\n3. Run ``python manage.py migrate``.\n\n4. Include the django-simple-forms URLconf and the django-simple-file-handler URLconf in your website's ``urls.py``: ::\n\n    urlpatterns = [\n        ...\n        path(\n            'forms/',\n            include('django_simple_forms.urls')\n        ),\n        path(\n            'pdf/',\n            include('django_simple_file_handler.urls'),\n        ),\n    ]\n\n5. If you are already using the Django sites framework, run ``python manage.py forms_import_sites``.\nYou will then need to go to FORMS > Site profiles in your admin site and check to be sure your details are correct.\nAll new site profiles will be assigned an ``https://`` protocol, so change this if necessary.\n\nIf you are not already using the Django sites framework, go to your admin site and, under FORMS > Site profiles, create a profile with your site's information.\n\nThe ``SITE_ID`` setting is needed for django-simple-forms. See the `Django sites framework documentation <https://docs.djangoproject.com/en/2.2/ref/contrib/sites/>`_ for more information.\n\n6. Refer to the `Django email documentation <https://docs.djangoproject.com/en/2.2/topics/email/>`_ for information on configuring a website to send email.\n\n7. If you intend to use PDF output, see the ``Generating PDFs`` section of the `django-simple-file-handler documentation <https://github.com/jonathanrickard/django-simple-file-handler>`_ for additional configuration information.\n\n-------------------\nManagement commands\n-------------------\n\n* ``forms_import_sites``: Creates a FormsSiteProfile instance for each instance in the Django sites framework\n* ``delete_unused_addresses``: Deletes email addresses that do not have any forms assigned\n* ``delete_expired_responses``: Deletes form responses that have reached or passed their deletion date\n\n---------------------\nNeeding documentation\n---------------------\n\n* Optional settings\n* User permissions\n* Use of ``initial_boolean`` field in admin\n* Use of `XlsxWriter <https://github.com/jmcnamara/XlsxWriter/>`_ in spreadsheet generation\n* Explanation of admin customization options for response categories\n* Explanation of how to specify custom HTML and CSS files for most internal and external pages through the form definition admin\n* Explanation that ``email`` can not be used as a field name because it is already used as a hidden honeypot field\n* Explanation that default error messages are built in, and any entered in the admin are just for customization\n* Explanation that deleting a form instance will not delete its response category\n* Explanation that clicking the \"Delete\" button in the admin for a form's responses will only delete the category if the form instance does not exist anymore \u2014 otherwise, it will just delete all of the associated responses and leave the category\n* Explanation that reply-to email address's last name field is not checked if there is not a reply-to first name given\n* Explanation that \"true\" and \"false\" strings are available for use in a Select widget to set a BooleanField using a hidden TypedChoiceField.\n* Explanation that DateField and TimeField are rudimentary with just text inputs; in practice, they would usually be replaced using JavaScript widgets; input formats is not yet supported, but can be set universally in settings per Django documentation\n* Explanation of formatting for date and time stored as strings\n* Explanation of how ``app_label`` and ``model_name`` are used for ease of subclassing and to change ``get_queryset``\n* Explanation of what values are available in email templates and how to access those values\n* Explanation that template field data lists have a string of ``label`` + ``suffix`` as the first item that can be accessed as ``data.0`` in a template\n* Explanation that, by default, ``output_formatted_date_time`` and ``output_text`` are used in the default templates, but ``output_dict`` and ``output_no_br`` are also available in most cases\n* Explanation that ``created`` and ``updated`` model instance data is also available in HTML and PDF templates\n* Explanation of the ``checkbox_select_multiple`` class being automatically added to the CheckboxSelectMultiple <ul> tag to make styling easier\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A Django app for creating forms",
    "version": "0.1.9",
    "project_urls": {
        "Homepage": "https://github.com/jonathanrickard"
    },
    "split_keywords": [
        "django",
        "forms"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a93b2134d1b162f61b0f9ec6d8b9443ed84818e3772036887b284e5dec5c2531",
                "md5": "ff513e07b5b9ff193fae1842c5813ce7",
                "sha256": "106d72159871237d2a08b6111d397bf08e9274775c805112b235a3d8f360ece8"
            },
            "downloads": -1,
            "filename": "django_simple_forms-0.1.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ff513e07b5b9ff193fae1842c5813ce7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 45353,
            "upload_time": "2024-02-06T18:38:49",
            "upload_time_iso_8601": "2024-02-06T18:38:49.837633Z",
            "url": "https://files.pythonhosted.org/packages/a9/3b/2134d1b162f61b0f9ec6d8b9443ed84818e3772036887b284e5dec5c2531/django_simple_forms-0.1.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aae3274ac85b0aa22a6af34958a93ebad6e37dd78054ba52a7b476e10fb5e57b",
                "md5": "61f499c0c95033f978c0dd8c7c7433ff",
                "sha256": "5064b66bc8673c6136242b577290dad48873b4db3be20fc43ff1854de9ec692c"
            },
            "downloads": -1,
            "filename": "django_simple_forms-0.1.9.tar.gz",
            "has_sig": false,
            "md5_digest": "61f499c0c95033f978c0dd8c7c7433ff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 35028,
            "upload_time": "2024-02-06T18:38:51",
            "upload_time_iso_8601": "2024-02-06T18:38:51.217700Z",
            "url": "https://files.pythonhosted.org/packages/aa/e3/274ac85b0aa22a6af34958a93ebad6e37dd78054ba52a7b476e10fb5e57b/django_simple_forms-0.1.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-06 18:38:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "django-simple-forms"
}
        
Elapsed time: 0.17739s