A leightweight django startproject template. Could be suit for API service with token authorized. Django 轻量级应用,只需要一个py文件即可运行。
Requirements:
- Python 3.7+
- Django 4.2LTS
Quick Start:
- 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
- Build your own docker image.
#docker build -t leightweight-django .
- 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.