You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [official docker image for django](https://hub.docker.com/_/django/) is deprecated since 31 Dec 2016. Even those did not seem development friendly since generated images with a copied version of the project instead of a mounted project.
6
+
7
+
## How to install
8
+
9
+
1. Install docker ;-)
10
+
2. Clone repository:
11
+
```shell
12
+
https://github.com/malcata/docker-django.git
13
+
```
14
+
3. Configure required environment variables, eventually on a bash_profile file:
15
+
```shell
16
+
$ export SOURCE_DIR="<project source folder>"
17
+
```
18
+
4. Edit settings.py with your IP:
19
+
````shell
20
+
ALLOWED_HOSTS = ['x.x.x.x']
21
+
```
22
+
23
+
## Usage
24
+
25
+
1. Generate the docker image
26
+
```shell
27
+
$ make build
28
+
```
29
+
2. Run the container
30
+
```shell
31
+
$ make run
32
+
```
33
+
3. Use browser to access django http://container-ip:8000
34
+
35
+
Check the [Makefile](Makefile) for further details.
36
+
37
+
38
+
## Contributing
39
+
40
+
Please follow the Github flow process (branch, commits and pull request)...
41
+
42
+
43
+
## License
44
+
45
+
The code in this repository, unless otherwise noted, is MIT licensed. See the `LICENSE` file in this repository.
0 commit comments