Browse Source

Remove django/.keep dir and add one-liner example to django docs

Moghedrin 11 years ago
parent
commit
81103834e4
3 changed files with 16 additions and 0 deletions
  1. 0 0
      django/.keep
  2. 8 0
      django/README.md
  3. 8 0
      django/content.md

+ 0 - 0
django/.keep


+ 8 - 0
django/README.md

@@ -44,6 +44,14 @@ need access outside the host, on `http://localhost:8080` with the following comm
 
     docker run --name some-django-app -p 8080:8080 -d my-django-app
 
+## Without a `Dockerfile`
+
+Of course, if you don't want to take advantage of magical and convenient
+`ONBUILD` triggers, you can always just use `docker run` directly to avoid
+having to add a `Dockerfile` to your project.
+
+    docker run --name some-django-app -v "$(pwd)":/usr/src/app -p 8080:8080 -d django bash -c "pip install -r requirements.txt && python manage.py runserver"
+
 # License
 
 View [license information](https://github.com/django/django/blob/master/LICENSE)

+ 8 - 0
django/content.md

@@ -30,3 +30,11 @@ You can test it by visiting `http://container-ip:8080` in a browser or, if you
 need access outside the host, on `http://localhost:8080` with the following command:
 
     docker run --name some-django-app -p 8080:8080 -d my-django-app
+
+## Without a `Dockerfile`
+
+Of course, if you don't want to take advantage of magical and convenient
+`ONBUILD` triggers, you can always just use `docker run` directly to avoid
+having to add a `Dockerfile` to your project.
+
+    docker run --name some-django-app -v "$(pwd)":/usr/src/app -p 8080:8080 -d django bash -c "pip install -r requirements.txt && python manage.py runserver"