Skip to main content

Collection of frequently used tasks for Django development

Project description

django-invoke

PyPI

Collection of frequently used tasks for Django development. It's built on top of invoke to streamline how to manage task execution.

Configuration

Add a tasks.py to your project

import invoke

import django_invoke

ns = invoke.Collection(
    django_invoke.docker,
    django_invoke.django,
)


# # Configurations for run command
ns.configure(
    dict(
        run=dict(
            pty=True,
            echo=True,
        ),
        django_invoke=django_invoke.Config(
            docker=django_invoke.DockerSettings(
                main_containers=["container1", "container2"],
            ),
            django=django_invoke.DjangoSettings(
                settings_path="<relative/path/to/django_settings>",
            ),
        )
    ),
)

Usage

Here a few commands that you can use:

inv docker.up
inv docker.stop
inv django.run
inv django.migrate
inv django.makemigrations
inv django.check-new-migrations
inv django.db
inv django.dbshell

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_invoke-0.0.0.dev2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_invoke-0.0.0.dev2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file django_invoke-0.0.0.dev2.tar.gz.

File metadata

  • Download URL: django_invoke-0.0.0.dev2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for django_invoke-0.0.0.dev2.tar.gz
Algorithm Hash digest
SHA256 71ad4d21286d6d8480978e2886e30d45859b2d55111a1c88311e43f07630d848
MD5 9fb14220c9f363f33cce100e09fa37b1
BLAKE2b-256 a23a5d9f7e8907aa9ca04d1441a464065466bb1c683cc829d6403879ab079c33

See more details on using hashes here.

File details

Details for the file django_invoke-0.0.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_invoke-0.0.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 33e3117e5072776414a18d00af6ea99bd54e07b0d559e150fb198a09a11f4a5e
MD5 654771c7fc8f8e7e01f0e5d1fec9f2a8
BLAKE2b-256 2525b7cc788f520fc1fb6949862a6fe610ad5749a6685fc20d8166ccdccddeed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page