https://github.com/fulanii/djang_setup
A simple cli too build in python to generate Django configs
https://github.com/fulanii/djang_setup
boilerplate cli django django-boilerplate python
Last synced: 15 days ago
JSON representation
A simple cli too build in python to generate Django configs
- Host: GitHub
- URL: https://github.com/fulanii/djang_setup
- Owner: fulanii
- License: mit
- Created: 2024-12-24T11:13:27.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-13T14:55:55.000Z (2 months ago)
- Last Synced: 2025-03-24T11:07:29.803Z (about 1 month ago)
- Topics: boilerplate, cli, django, django-boilerplate, python
- Language: Python
- Homepage: https://pypi.org/project/djang-setup/
- Size: 3.85 MB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Setup
A cli tool to setup django for you## Features
* install django if not already installed
* creates django project
* creates django app
* creates settings folder
* creates settings files: `base.py`, `developmemt.py`, `production.py`
* creates `.gitignore`, `.env.dev`, `.env,prod`, and `requirements.txt`
* updates `INSTALLED_APPS`, `DEBUG`, `ALLOWED_HOST` and `BASE_DIR`
* creates `app_name/urls.py`
* add `app_name/urls.py` to `project_name/urls.py` urlpatterns uisng `include()`
* update prod settings in prod file
* update django to use either env.dev or env.prod based on env var## Usage
1. Set up a virtual environment:
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```2. install the package
```bash
pip install djang-setup
```3. run it and follow the prompt
```bash
djang-setup
```
## Support
* Star the project :)