leukeleu-django-checks


Nameleukeleu-django-checks JSON
Version 1.2.2 PyPI version JSON
download
home_pagehttps://github.com/leukeleu/leukeleu-django-checks
SummaryAdditional deploy checks and other tools to validate if a Django project is set up correctly.
upload_time2024-03-04 20:55:14
maintainer
docs_urlNone
authorJaap Roes
requires_python>=3.6
licenseMIT
keywords django deploy checks tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Leukeleu Django Checks

Additional deploy checks and other tools to validate if a Django project is set up correctly.

## Installation

Add `'leukeleu_django_checks'` to `INSTALLED_APPS`.

## Included checks

* `leukeleu.W001`: Check if `FILE_UPLOAD_PERMISSIONS` is set to `0o644`
* `leukeleu.W002`: Check if `EMAIL_BACKEND` is set to `bandit.backends.smtp.HijackSMTPBackend`
  * Disable this for test/staging environments using `SILENCED_SYSTEM_CHECKS`
* `leukeleu.W003`: Check if `EMAIL_BACKEND` is **not** set to `bandit.backends.smtp.HijackSMTPBackend`
  * Disable this for production environments using `SILENCED_SYSTEM_CHECKS`
* `leukeleu.W004`: Check if `WAGTAIL_ENABLE_UPDATE_CHECK` is set to `False`
  * This check only runs if wagtail is installed
* `leukeleu.W005`: Check if `sentry-sdk` is installed
* `leukeleu.W006`: Check if `sentry-sdk` is configured correctly
* `leukeleu.W007`: Make sure there is no `/admin` or `/admin/` url
* `leukeleu.I008`: Check if `leukeleu-django-gdpr` is in `INSTALLED_APPS`

Run `./manage.py check --deploy` to execute these checks (in addition to Django's default set).

## List superusers

Run `./manage.py list_superusers` to print a list of all (in)active superusers.

The name of each superuser is printed with a "+" (active) or "-" (inactive) prefix.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/leukeleu/leukeleu-django-checks",
    "name": "leukeleu-django-checks",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "django,deploy,checks,tools",
    "author": "Jaap Roes",
    "author_email": "jroes@leukeleu.nl",
    "download_url": "https://files.pythonhosted.org/packages/f5/0b/5aa81c3edd5aa0cabfc078146ea8016b44f2159738d5859674b715e46a44/leukeleu-django-checks-1.2.2.tar.gz",
    "platform": null,
    "description": "# Leukeleu Django Checks\n\nAdditional deploy checks and other tools to validate if a Django project is set up correctly.\n\n## Installation\n\nAdd `'leukeleu_django_checks'` to `INSTALLED_APPS`.\n\n## Included checks\n\n* `leukeleu.W001`: Check if `FILE_UPLOAD_PERMISSIONS` is set to `0o644`\n* `leukeleu.W002`: Check if `EMAIL_BACKEND` is set to `bandit.backends.smtp.HijackSMTPBackend`\n  * Disable this for test/staging environments using `SILENCED_SYSTEM_CHECKS`\n* `leukeleu.W003`: Check if `EMAIL_BACKEND` is **not** set to `bandit.backends.smtp.HijackSMTPBackend`\n  * Disable this for production environments using `SILENCED_SYSTEM_CHECKS`\n* `leukeleu.W004`: Check if `WAGTAIL_ENABLE_UPDATE_CHECK` is set to `False`\n  * This check only runs if wagtail is installed\n* `leukeleu.W005`: Check if `sentry-sdk` is installed\n* `leukeleu.W006`: Check if `sentry-sdk` is configured correctly\n* `leukeleu.W007`: Make sure there is no `/admin` or `/admin/` url\n* `leukeleu.I008`: Check if `leukeleu-django-gdpr` is in `INSTALLED_APPS`\n\nRun `./manage.py check --deploy` to execute these checks (in addition to Django's default set).\n\n## List superusers\n\nRun `./manage.py list_superusers` to print a list of all (in)active superusers.\n\nThe name of each superuser is printed with a \"+\" (active) or \"-\" (inactive) prefix.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Additional deploy checks and other tools to validate if a Django project is set up correctly.",
    "version": "1.2.2",
    "project_urls": {
        "Homepage": "https://github.com/leukeleu/leukeleu-django-checks"
    },
    "split_keywords": [
        "django",
        "deploy",
        "checks",
        "tools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bfe1f1df41cb4345e88f7f55c77ada955204731d0ef903d906af8bd38da93191",
                "md5": "e5f4daee4b8b0f03ba8f808a7aa3bd22",
                "sha256": "bef567a8631e37542d8258098625d5002ab1d0836ffe3d5fee5f3541fa7b9a47"
            },
            "downloads": -1,
            "filename": "leukeleu_django_checks-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e5f4daee4b8b0f03ba8f808a7aa3bd22",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6033,
            "upload_time": "2024-03-04T20:55:12",
            "upload_time_iso_8601": "2024-03-04T20:55:12.476028Z",
            "url": "https://files.pythonhosted.org/packages/bf/e1/f1df41cb4345e88f7f55c77ada955204731d0ef903d906af8bd38da93191/leukeleu_django_checks-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f50b5aa81c3edd5aa0cabfc078146ea8016b44f2159738d5859674b715e46a44",
                "md5": "df75fe33d3b6847ec357361ae8730dd3",
                "sha256": "ca92184896adda268ac1b33027d18502f517b46e5c371ecd2e782aadad5f819a"
            },
            "downloads": -1,
            "filename": "leukeleu-django-checks-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "df75fe33d3b6847ec357361ae8730dd3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 10512,
            "upload_time": "2024-03-04T20:55:14",
            "upload_time_iso_8601": "2024-03-04T20:55:14.140942Z",
            "url": "https://files.pythonhosted.org/packages/f5/0b/5aa81c3edd5aa0cabfc078146ea8016b44f2159738d5859674b715e46a44/leukeleu-django-checks-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-04 20:55:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "leukeleu",
    "github_project": "leukeleu-django-checks",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "leukeleu-django-checks"
}
        
Elapsed time: 0.56736s