This boilerplate creates a simple Django project with a core app and some pre-defined settings.
The project contains:
- Settings config
- App accounts
- App core
- App crm
Packages used in conjunction with Django.
- Python 3.8.9
- Django 3.1.8
- dj-database-url
- django-extensions
- django-localflavor
- isort
- python-decouple
This script run in Unix.
git clone https://github.com/rg3915/django-boilerplate.git /tmp/django-boilerplate
# Copy this file to your actual folder.
cp /tmp/django-boilerplate/boilerplatesimple.sh .
Update USERNAME to your username.
Type the following command. You can change the project name.
source boilerplatesimple.sh myproject username<optional>
If yout want to use a alias.
alias bsimple='git clone https://github.com/rg3915/django-boilerplate.git /tmp/django-boilerplate;
cp /tmp/django-boilerplate/boilerplatesimple.sh .
printf "Type:\n`tput setaf 2`source boilerplatesimple.sh myproject\n"'
The app core contains abstract models to use in other models.
The app core contains a management commands example.
$ python manage.py hello --help
usage: manage.py hello [-h] [--awards] ...
Print hello world.
optional arguments:
-h, --help show this help message and exit
--awards, -a Help of awards options.
.
├── manage.py
├── myproject
│ ├── asgi.py
│ ├── accounts
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── models.py
│ │ ├── tests.py
│ │ ├── urls.py
│ │ └── views.py
│ ├── core
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── management
│ │ │ └── commands
│ │ │ ├── hello.py
│ │ │ └── __init__.py
│ │ ├── models.py
│ │ ├── tests.py
│ │ ├── urls.py
│ │ └── views.py
│ ├── crm
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── forms.py
│ │ ├── models.py
│ │ ├── tests.py
│ │ ├── urls.py
│ │ └── views.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── README.md
└── requirements.txt