Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egel/django-start-app
A simple Django 5.1 app following good practices.
https://github.com/egel/django-start-app
django django5-starter dockerfile
Last synced: about 2 months ago
JSON representation
A simple Django 5.1 app following good practices.
- Host: GitHub
- URL: https://github.com/egel/django-start-app
- Owner: egel
- License: bsd-3-clause
- Created: 2024-08-23T10:22:50.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T14:10:37.000Z (5 months ago)
- Last Synced: 2024-10-12T21:42:13.245Z (3 months ago)
- Topics: django, django5-starter, dockerfile
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-start-app
A simple Django 5.1 app following good practices.
## Dev
```bash
# environment
pyenv install 3.12.5
pip install virtualenv
virtualenv venv
source venv/bin/activate# app
cd myapp
pip install -r requirements.txt
python manage.py runserver # open app in default localhost:8000
```or build locally via Dockerfile:
```bash
docker build -t django-start-app -f Dockerfile-myapp .
docker run --rm -d -p 8000:8000 django-start-app:5.1 # or :latest
```or pull the image from dockerhub:
```bash
docker run --rm -d -p 8000:8000 egel/django-start-app:latest
```### rebuild images
macOS
```bash
cd myapp
docker buildx create --name my-builder
docker buildx use my-builder
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t egel/django-start-app:5.1 -f Dockerfile-myapp . --push
```## License
BSD 3-Clause License