Skip to content
/ django-starter Public template

This repository serves as a starter template for any of my Django projects. This is a work in progress.

Notifications You must be signed in to change notification settings

jamesduffy/django-starter

Repository files navigation

Django Starter

Test

This repository serves as a starter template for any Django projects. It includes best practices and boilerplate code to kickstart development.

Features

  • Django with PostgreSQL setup
  • Pre-configured settings for local development and production
  • Docker and Docker Compose setup
  • Integrated with Celery for background tasks
  • Pre-installed linting and formatting tools
  • GitHub Actions for CI/CD pipeline
  • .env support for environment variables

Getting Started

Prerequisites

  • Python 3.10+
  • Docker
  • PostgreSQL

Installation

Clone the repository:

git clone https://github.com/yourusername/django-starter.git
cd django-starter

Create a virtual environment and install dependencies:

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

Set up your environment variables by creating a .env file:

cp .env.example .env

Run the database migrations:

python manage.py migrate

Start the development server:

python manage.py runserver

Running with Docker

Build and run the containers:

docker-compose up --build

Access the project at http://localhost:8000.

Contributing

Feel free to open an issue or submit a pull request to contribute to this starter template.

License

This project is licensed under the MIT License.

About

This repository serves as a starter template for any of my Django projects. This is a work in progress.

Resources

Security policy

Stars

Watchers

Forks