Sign inSign up

kensonman/python

By kensonman

•Updated over 5 years ago

It is used to create the container for Django development.

Image
0

1.6K

kensonman/python repository overview

⁠Introduction

The project used to create a docker-image for python3 (default with django) container.

All the documentation and source code are published in GitHub⁠.

⁠Build

Just simply execute the build command.

	git clone https://github.com/kensonman/python kenson.python
	cd kenson.python
	docker build -t kensonman/python:latest .

⁠Usage

The project will creating the iamge base on python:alpine⁠ image. It will provide an entrypoint⁠ for execution.

⁠Create command

Create the Django project with basic application.

	docker run --rm kensonman/python:latest create newapp
⁠Make Messages command

Make the specific translation messages.

	docker run --rm kensonman/python:latest makemessages newapp zh_hant
⁠Compile Message command

Compile the translation messages.

	docker run --rm kensonman/python:latest compilemessages newapp
⁠Run command

Execute the Django testing environment.

	docker run --rm kensonman/python:latest run 0.0.0.0:8000
⁠Exec command

Execute the specific Django command⁠.

	docker run --rm kensonman/python:latest exec createsuperuser --username kenson

Tag summary

Content type

Image

Digest

Size

205.3 MB

Last updated

over 5 years ago

docker pull kensonman/python