https://github.com/salaah01/create_django_project
Creates a Django project
https://github.com/salaah01/create_django_project
automation bash django python shell web webdevelopment
Last synced: 8 months ago
JSON representation
Creates a Django project
- Host: GitHub
- URL: https://github.com/salaah01/create_django_project
- Owner: Salaah01
- License: mit
- Created: 2020-09-10T00:42:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T03:06:30.000Z (about 5 years ago)
- Last Synced: 2025-01-06T21:49:13.717Z (9 months ago)
- Topics: automation, bash, django, python, shell, web, webdevelopment
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Create Django Project Script
A bash script to create and setup a Django project.
The script will do the following:
- Creates a virtual environment and installs Django.
- Creates a django project using the PACKAGE_NAME and APPS.
- Set static root and media root rules.
- Update `SECRET_KEY` and `DEBUG` to read from environment variables.
- Update `TEMPLATES` rule in settings.
- If the database argument (-d) is recognised, then set the appropriate environment for `DB_ENGINE`.
- If the database argument (-d) is recongised, then update the database settings.
- In the projects root `urls.py` file, create include rules routing to an url file in each app directory.
- Inside each app directory create a `urls.py` file with basic configurations.
- Remove `views.py` and `tests.py` in each directory and create a views and tests directory with an `__init__.py` inside each directory.
- In each app directory create template and static directories with related sub-directories.
- Updates `INSTALLED_APPS`.**NAME**
create_django_project - Django Project Creator
**SYNOPSIS**
bash create_django_project -p PROJECT_NAME [options]
**OPTIONS**
-p Project name.
-d Database type (postgresql, oracle or mysql).
-a App(s) to be created and set up.
-s Option to update static root settings.
-m Option to update media root settings.