Skip to main content

A Django extension to deploy web apps anywhere, from bare metal to cloud VMs.

Project description

Django Kamal Extension

The Django Kamal Extension adds the 'djamal' alias command to the .env file in the root of the Django project. This extension simplifies the usage of the Docker image 'ghcr.io/basecamp/kamal:latest' within your Django project.

Installation

Install the Django Kamal Extension using pip:

python -m pip install djamal


# Usage
Add 'django_kamal_extension' to your Django project's INSTALLED_APPS and 'django_kamal_extension.middleware.Command' to the MIDDLEWARE:

# settings.py

INSTALLED_APPS = [
    # ...
    'django_kamal_extension',
    # ...
]

MIDDLEWARE = [
    # ...
    'django_kamal_extension.middleware.Command',
    # ...
]

## To add the 'kamal' alias command to the .env file, run the following Django management command:
```bash
python manage.py djamal add_alias

## This will append the necessary command to the .env file, enabling you to run the 'djamal' command within your Django project.

# License
This project is licensed under the MIT License - see the LICENSE file for details.

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

djamal-0.1.1.tar.gz (614.1 kB view hashes)

Uploaded Source

Built Distribution

djamal-0.1.1-py3-none-any.whl (614.6 kB view hashes)

Uploaded Python 3

Supported by

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