8000 GitHub - confuzeus/simple-django: Simple Django project template
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

confuzeus/simple-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Django Project Template

This template contains everything you need to bootstrap a new Django project.

Features

Requirements

Install the following tools first.

  1. uv
  2. Bun
  3. just
  4. Docker

Quick start

Clone the project and clean up git.

Your can either delete .git or set the origin to your own repo:

git remote set-url origin <your-repo>

Configuration

Copy the example app config file:

cp appconfig.example.env appconfig.env

Edit the file and change all the variables to your liking.

Rename the project

Execute the script named rename.sh and it will ask you a bunch of questions that will be used to baptise your new project.

Initialize project

Run just to bootstrap the project. See the justfile for details.

Your project is now ready for you to ship features.

Deployment

Executing the deploy.py script will do the following:

  1. Build a Docker image containing the source code.
  2. Optionally make an tar archive of this image, and upload it to your server.

Configure this deployment script by creating a deploy.toml file. See the deploy.example.toml file for details.

I wrote a post about how to deploy a Django app without a container registry. Read it more details on how to setup your server to make this work.

Inside the ansible directory, you'll find the django role where there's automation for this.

License and Copyright

License is MIT

Copyright 2022 Josh Karamuth

About

Simple Django project template

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0