No project description provided
Project description
Start Django App
Start-django-app is a command-line tool that automates the creation of a new Django project by setting up a virtual environment, installing Django, and initializing the project. It works on both Windows and Unix-like systems, ensuring cross-platform compatibility.
Features
- Automatically creates a virtual environment in the project directory.
- Installs Django inside the virtual environment.
- Initializes a new Django project with a given project name.
- Cross-platform support (Windows, macOS, and Linux).
Requirements
- Python 3.6 or higher must be installed on your system.
- Ensure pip is installed and up to date.
Installation
You can install start-django-app using pip:
pip install start-django-app
Usage
To create a new Django project, run the following command:
start-django-app <project_name>
Replace <project_name> with the desired name of your Django project.
Example
start-django-app my_project
This will:
- Create a directory named
my_project. - Set up a virtual environment in
my_project/.venv. - Install Django within the virtual environment.
- Initialize a new Django project inside the my_project directory with
django-admin.
Virtual Environment
After creating the project, the virtual environment will be automatically created and set up. However, due to the nature of subprocess, the virtual environment will be deactivated once the script finishes running.
You can manually activate the virtual environment by navigating into the project directory and using the following commands:
- Windows:
cd my_project
.venv\Scripts\activate
- macOS/Linux:
cd my_project
.venv/bin/activate
To deactivate the virtual environment, run:
deactivate
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or improvements.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file start_django_app-0.2.tar.gz.
File metadata
- Download URL: start_django_app-0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10639cc293beb9fef35535c98498694ddb0a90e33edb064cc36186b8a2998c93
|
|
| MD5 |
c8e882dede19074e53118475b49564b7
|
|
| BLAKE2b-256 |
0428692137f4d5a85080139ee51f17eeab3df76a32745eadfba26b51fea511c7
|
File details
Details for the file start_django_app-0.2-py3-none-any.whl.
File metadata
- Download URL: start_django_app-0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fc11b08fb0ad16d9fb6f6edd91d7e2cf788b724f9a83a944c8320ed27250fc8
|
|
| MD5 |
d2ed6fa116c91f04c5ba7f5bc64b2ac5
|
|
| BLAKE2b-256 |
35aa2f8764d4fa75c85856d9610e7fe4fdcf27d4859ffe3a8abf024b23eaf876
|