No project description provided
Project description
Django Venv
This repository contains a set of Python and Bash scripts designed to simplify the process of setting up a development environment for Django projects. Whether you are a seasoned Django developer or just starting out, these scripts aim to streamline common tasks and make it easier to get your Django project up and running quickly.
Table of Contents
- About The Project
- Getting Started
- Upcoming Features
- Code of Conduct
- Contributing
- License
- Acknowledgments
Features
Django-Venv provides the following features:
-
Virtual Environment Setup: Automatically creates a virtual environment and installs project dependencies.
-
Django Project Initialization: Automates the creation of a Django project, along with additional directories and files such as static files, apps directory, and a base.html template.
-
Django Settings Configuration: Edits the
settings.py
file to include various settings, including database configuration (MySQL, PostgreSQL) with docker, htmx setup, SMTP configuration, and other common settings. -
Database Setup: Users have the option to either utilize their own server or have the script generate a Docker container for the specified database. When opting for MySQL or other compatible databases, the script will endeavor to create a Docker container with your chosen database, establish a user profile with the requisite permissions, set up a database, and store the credentials securely in an .env file.
Built With
Getting Started
Prerequisites
Before you begin, please ensure that you have the following dependencies installed on your system:
-
Linux Operating System: Django-Venv is designed to work on Linux-based systems.
-
Docker: Django-Venv relies on Docker for certain functionality. Make sure you have Docker installed on your machine. You can find installation instructions for Docker on the Docker website.
Once you have these dependencies in place, you can proceed with the installation and usage of Django-Venv.
Installation
To get started, follow these steps:
-
Install the package:
pip install django-venv
Usage
Run the script to set up your Django project:
django-venv <project_name>
Command-Line Options
django-venv <project_name> [OPTIONS]
Options:
-h, --help Display this help message
-d, --database <database_type> Specify the database type (required)
Choose between 'mysql' or 'postgre'
--smtp Configure SMTP settings in settings.py
--htmx Configure HTMX settings in settings.py
Usage Example
django-venv <project_name> -d mysql --htmx --smtp
This will generate settings.py, an '.env' file with all the credentials, a locally running MySQL Docker container if the database is not specified, as well as all the static directories and application directories for the Django project.
Upcoming Features
- Cassandra Support with Docker: Integrate support for Cassandra databases with Docker.
- Scylla Support with Docker: Extend our Docker support to include Scylla, a highly available NoSQL database compatible with Apache Cassandra.
Code of Conduct
Please review our Code of Conduct before contributing to Django-Venv.
Contributing
We welcome contributions from the community! Please see our Contributing Guidelines for more information.
License
Distributed under the Apache-2.0 license. See LICENSE for more information.
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-venv-1.0.0.tar.gz
.
File metadata
- Download URL: django-venv-1.0.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81dd82138fcd838c0218067ea20da37496204f0d63defd544a866d057b01e4c3 |
|
MD5 | 30ac0aef1d643b225d4e79f3ff75bc07 |
|
BLAKE2b-256 | 7a9a6ac6af982a640aec23cdadf87add856d23f55d3b996cbdc46e71c49fd9c3 |
File details
Details for the file django_venv-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_venv-1.0.0-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92fde870ddecda409e08adbbd6354b9e712b1cb3980c35064f5f275635723b0c |
|
MD5 | bc8914092607864ec673e39b9118fe22 |
|
BLAKE2b-256 | 6545f02d2a0a0ace0d097f048db4d583a9ed8600be01ae3e286ba2089a208ac2 |