pythonbrad / django-boot

Django starter project with πŸ”‹

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A batteries-included Django starter project. To learn more try the books Django for Beginners, Django for APIs, and Django for Professionals.

Homepage

πŸš€ Features

Table of Contents


πŸ“– Installation

DjangoBoot can be installed via Pip, Pipenv, or Docker. To start, clone the repo to your local computer and change into the proper directory. NB: We provide the raw version of the requirements.txt file.

$ git clone https://github.com/pythonbrad/django-boot.git
$ cd django-boot

Pip

$ python -m venv .venv

# Windows
$ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
$ .venv\Scripts\Activate.ps1

# macOS
$ source .venv/bin/activate

(.venv) $ pip install -r requirements.txt
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000

Pipenv

$ pipenv install
$ pipenv shell
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000

Environ

Duplicate the .env_example file in .env and configure your Django application.

Maintenance mode

python ./manage.py maintenance_mode <on|off>

Docker

To build the Docker image, run the container, and execute the standard commands within Docker.

$ docker-compose up -d --build
$ docker-compose exec web python manage.py migrate
$ docker-compose exec web python manage.py createsuperuser
# Load the site at http://127.0.0.1:8000

Next Steps

I cover all of these steps in my three books: Django for Beginners, Django for APIs, and Django for Professionals.


🀝 Contributing

Contributions, issues and feature requests are welcome! See CONTRIBUTING.md.

⭐️ Support

Give a ⭐️ if this project helped you!

License

The MIT License

About

Django starter project with πŸ”‹

License:Other


Languages

Language:HTML 50.3%Language:Python 43.3%Language:JavaScript 2.3%Language:Dockerfile 2.1%Language:CSS 2.0%