Skip to content

A leightweight django startproject template. Could be suit for API service with token authorized.

License

Notifications You must be signed in to change notification settings

BroHui/django-leightweight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leightweight_django

A leightweight django startproject template. Could be suit for API service with token authorized. Django 轻量级应用,只需要一个py文件即可运行。

Requirements:

  1. Python 3.7+
  2. Django 4.2LTS

Quick Start:

  1. Use this template project as your basement.
#django-admin startproject YourDemoName --template=https://github.com/BroHui/leightweight_django/archive/refs/heads/main.zip -e ini
  1. Build your own docker image.
#docker build -t leightweight-django .
  1. Boost your app with docker power!
docker run -it --rm -v $(pwd):/usr/src/app -p 8081:8081 -e TOKEN_LIST=simpletoken lightweight_django

Debug:

docker run -it --rm -v .:/app -v ./requirements.txt:/app/requirements.txt -p 8000:8000 django:lts /bin/bash

Thanks to:
Copyright © 2015 Julia Elman and Mark Lavin. Published by O’Reilly Media, Inc.
Thanks to these guys, Their great works inspire me.

About

A leightweight django startproject template. Could be suit for API service with token authorized.

Resources

License

Stars

Watchers

Forks

Packages

No packages published