WebsiteX

A production-ready Django boilerplate based on DjangoX.

Features

  • Django 3.1
  • Bootstrap 5
  • PostgreSQL
  • SSL (in production).

Other Dependencies

Installation

Everything is bundled up in a single Docker Compose configuration. So, once you have Docker installed on your machine, all you need to do is run the command below.

$ docker-compose up -d --build

Activate the virtual environment, and install the Python dependencies.

$ source venv/bin/activate
$ pip install -r requirements.txt

Development

To run the development server, you can simply execute the runserver Django command just like any other django projects.

$ python manage.py runserver

To run the production server, you need to setup the environment variables first, then run gunicorn.

$ export DEBUG=False
$ gunicorn -b 0.0.0.0:8000 config.wsgi:application