Base template for a Django project with Docker, PostgreSQL and Bootstrap by kit.andres

View this thread on steempeak.com
· @kit.andres ·
$34.86
Base template for a Django project with Docker, PostgreSQL and Bootstrap
I have been too busy working in Django projects last days, that I thought that could be really useful to create a repository with instructions to deploy quickly and easily a Django project running locally.

The repository can be downloaded and forked at this [link](https://github.com/roadhousestudio/django_base).

To run the project in a local enviroment, follow next steps:

- Install Docker

Download Docker from the [offical website](https://docs.docker.com/engine/installation/) and install it.

- Clone the project.

Clone the project code locally using [Git](https://git-scm.com/):

    git clone git@github.com:roadhousestudio/django_base.git

- Build the Docker image

Make sure that Docker is running. Move to the root project folder and run the following command:

    docker-compose build

- Run the project

Run the following command to run the project:

    docker-compose up

Now you can navigate to *localhost:8000* in your browser and you will see a Django project runing.

## Architecture

Python 3.6.0
Django 1.11.7
PostgreSQL 10.1
Bootstrap 4
Jquery 3.2.1

Navigate to  *localhost:8000/admin* to see Django admin site.

Application home page.
<center>![Screen Shot 2017-11-29 at 1.14.15 AM.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1511936081/g1ldduzfgkuxpsecif21.png)</center>

Application admin site

<center>![Screen Shot 2017-11-29 at 1.15.17 AM.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1511936136/ad7msxwposz4e5lu6z6c.png)</center>

It will save a lot of your time :).
***

<center>![Screen Shot 2017-11-29 at 1.18.13 AM.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1511936319/uniin39uhy6eaxtzoi6d.png)</center>


[Pull request.](https://github.com/roadhousestudio/django_base/pull/1/files)



<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@kit.andres/base-template-for-a-django-project-with-docker-postgresql-and-bootstrap">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , ,
properties (23)
post_id18,996,937
authorkit.andres
permlinkbase-template-for-a-django-project-with-docker-postgresql-and-bootstrap
categoryutopian-io
json_metadata"{"type": "development", "repository": {"id": 112423264, "watchers": 0, "events_url": "https://api.github.com/repos/roadhousestudio/django_base/events", "forks": 0, "name": "django_base", "issues_url": "https://api.github.com/repos/roadhousestudio/django_base/issues{/number}", "trees_url": "https://api.github.com/repos/roadhousestudio/django_base/git/trees{/sha}", "fork": false, "git_url": "git://github.com/roadhousestudio/django_base.git", "assignees_url": "https://api.github.com/repos/roadhousestudio/django_base/assignees{/user}", "size": 1, "owner": {"id": 34083364, "following_url": "https://api.github.com/users/roadhousestudio/following{/other_user}", "starred_url": "https://api.github.com/users/roadhousestudio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/roadhousestudio/subscriptions", "repos_url": "https://api.github.com/users/roadhousestudio/repos", "login": "roadhousestudio", "gists_url": "https://api.github.com/users/roadhousestudio/gists{/gist_id}", "followers_url": "https://api.github.com/users/roadhousestudio/followers", "received_events_url": "https://api.github.com/users/roadhousestudio/received_events", "type": "Organization", "avatar_url": "https://avatars1.githubusercontent.com/u/34083364?v=4", "site_admin": false, "organizations_url": "https://api.github.com/users/roadhousestudio/orgs", "gravatar_id": "", "events_url": "https://api.github.com/users/roadhousestudio/events{/privacy}", "url": "https://api.github.com/users/roadhousestudio", "html_url": "https://github.com/roadhousestudio"}, "forks_count": 0, "git_refs_url": "https://api.github.com/repos/roadhousestudio/django_base/git/refs{/sha}", "blobs_url": "https://api.github.com/repos/roadhousestudio/django_base/git/blobs{/sha}", "pushed_at": "2017-11-29T05:47:11Z", "watchers_count": 0, "teams_url": "https://api.github.com/repos/roadhousestudio/django_base/teams", "comments_url": "https://api.github.com/repos/roadhousestudio/django_base/comments{/number}", "archived": false, "svn_url": "https://github.com/roadhousestudio/django_base", "merges_url": "https://api.github.com/repos/roadhousestudio/django_base/merges", "subscribers_url": "https://api.github.com/repos/roadhousestudio/django_base/subscribers", "issue_events_url": "https://api.github.com/repos/roadhousestudio/django_base/issues/events{/number}", "stargazers_url": "https://api.github.com/repos/roadhousestudio/django_base/stargazers", "mirror_url": null, "statuses_url": "https://api.github.com/repos/roadhousestudio/django_base/statuses/{sha}", "has_projects": true, "milestones_url": "https://api.github.com/repos/roadhousestudio/django_base/milestones{/number}", "description": "Basic configuration to run up quickly a Django project with Docker image, postgreSQL and Bootstrap.", "keys_url": "https://api.github.com/repos/roadhousestudio/django_base/keys{/key_id}", "open_issues": 0, "compare_url": "https://api.github.com/repos/roadhousestudio/django_base/compare/{base}...{head}", "ssh_url": "git@github.com:roadhousestudio/django_base.git", "license": {"name": "MIT License", "key": "mit", "url": "https://api.github.com/licenses/mit", "spdx_id": "MIT"}, "html_url": "https://github.com/roadhousestudio/django_base", "commits_url": "https://api.github.com/repos/roadhousestudio/django_base/commits{/sha}", "open_issues_count": 0, "stargazers_count": 0, "branches_url": "https://api.github.com/repos/roadhousestudio/django_base/branches{/branch}", "full_name": "roadhousestudio/django_base", "forks_url": "https://api.github.com/repos/roadhousestudio/django_base/forks", "score": 10.130128, "deployments_url": "https://api.github.com/repos/roadhousestudio/django_base/deployments", "contributors_url": "https://api.github.com/repos/roadhousestudio/django_base/contributors", "homepage": "", "contents_url": "https://api.github.com/repos/roadhousestudio/django_base/contents/{+path}", "has_downloads": true, "collaborators_url": "https://api.github.com/repos/roadhousestudio/django_base/collaborators{/collaborator}", "created_at": "2017-11-29T03:46:13Z", "git_commits_url": "https://api.github.com/repos/roadhousestudio/django_base/git/commits{/sha}", "releases_url": "https://api.github.com/repos/roadhousestudio/django_base/releases{/id}", "private": false, "pulls_url": "https://api.github.com/repos/roadhousestudio/django_base/pulls{/number}", "git_tags_url": "https://api.github.com/repos/roadhousestudio/django_base/git/tags{/sha}", "notifications_url": "https://api.github.com/repos/roadhousestudio/django_base/notifications{?since,all,participating}", "language": "Python", "updated_at": "2017-11-29T05:47:12Z", "has_wiki": true, "downloads_url": "https://api.github.com/repos/roadhousestudio/django_base/downloads", "hooks_url": "https://api.github.com/repos/roadhousestudio/django_base/hooks", "languages_url": "https://api.github.com/repos/roadhousestudio/django_base/languages", "default_branch": "master", "labels_url": "https://api.github.com/repos/roadhousestudio/django_base/labels{/name}", "url": "https://api.github.com/repos/roadhousestudio/django_base", "has_pages": false, "tags_url": "https://api.github.com/repos/roadhousestudio/django_base/tags", "clone_url": "https://github.com/roadhousestudio/django_base.git", "archive_url": "https://api.github.com/repos/roadhousestudio/django_base/{archive_format}{/ref}", "has_issues": true, "issue_comment_url": "https://api.github.com/repos/roadhousestudio/django_base/issues/comments{/number}", "subscription_url": "https://api.github.com/repos/roadhousestudio/django_base/subscription"}, "pullRequests": [], "format": "markdown", "image": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1511936081/g1ldduzfgkuxpsecif21.png"], "links": ["https://github.com/roadhousestudio/django_base", "https://docs.docker.com/engine/installation/", "https://git-scm.com/", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1511936081/g1ldduzfgkuxpsecif21.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1511936136/ad7msxwposz4e5lu6z6c.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1511936319/uniin39uhy6eaxtzoi6d.png", "https://github.com/roadhousestudio/django_base/pull/1/files"], "app": "utopian/1.0.0", "platform": "github", "tags": ["utopian-io", "utopian-io", "development", "opensource", "python"], "community": "utopian", "users": ["github.com"]}"
created2017-11-29 06:30:06
last_update2017-11-29 06:30:06
depth0
children6
net_rshares13,752,091,234,568
last_payout2017-12-06 06:30:06
cashout_time1969-12-31 23:59:59
total_payout_value24.804 SBD
curator_payout_value10.051 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,971
author_reputation29,892,040,056,464
root_title"Base template for a Django project with Docker, PostgreSQL and Bootstrap"
beneficiaries
0.
accountfreedom
weight658
1.
accountknowledges
weight38
2.
accountmisterdelegation
weight548
3.
accountruah
weight60
4.
accounttransisto
weight70
5.
accountutopian-io
weight543
6.
accountwackou
weight53
7.
accountxeldal
weight27
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars5,000
author_curate_reward""
vote details (13)
@emrebeyler ·
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
👍  
properties (23)
post_id19,027,618
authoremrebeyler
permlinkre-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t135239465z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2017-11-29 13:52:39
last_update2017-11-29 13:52:39
depth1
children1
net_rshares2,780,192,296
last_payout2017-12-06 13:52:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length172
author_reputation319,480,565,467,431
root_title"Base template for a Django project with Docker, PostgreSQL and Bootstrap"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@kit.andres ·
Thank you mr @emrebeyler.
properties (22)
post_id19,028,815
authorkit.andres
permlinkre-emrebeyler-re-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t140629342z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["emrebeyler"], "tags": ["utopian-io"]}"
created2017-11-29 14:06:30
last_update2017-11-29 14:06:30
depth2
children0
net_rshares0
last_payout2017-12-06 14:06:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length25
author_reputation29,892,040,056,464
root_title"Base template for a Django project with Docker, PostgreSQL and Bootstrap"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@ecoinstant ·
This is useful to me!  In fact - I wish there were more templates like this for getting a quick start on new projects.
👍  
properties (23)
post_id19,028,615
authorecoinstant
permlinkre-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t140349836z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2017-11-29 14:03:51
last_update2017-11-29 14:03:51
depth1
children0
net_rshares2,837,812,862
last_payout2017-12-06 14:03:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length118
author_reputation76,834,373,699,494
root_title"Base template for a Django project with Docker, PostgreSQL and Bootstrap"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@neurallearner ·
If you're interested in how AI works you are welcome to check out our [series](https://steemit.com/technology/@neurallearner/deep-learning-an-extension-of-the-perceptron).
properties (22)
post_id19,029,480
authorneurallearner
permlinkre-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t141457639z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "links": ["https://steemit.com/technology/@neurallearner/deep-learning-an-extension-of-the-perceptron"], "tags": ["utopian-io"]}"
created2017-11-29 14:15:09
last_update2017-11-29 14:15:09
depth1
children0
net_rshares0
last_payout2017-12-06 14:15:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length171
author_reputation52,749,970,637
root_title"Base template for a Django project with Docker, PostgreSQL and Bootstrap"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
Congratulations @kit.andres! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@kit.andres) Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
👍  
properties (23)
post_id19,041,878
authorsteemitboard
permlinksteemitboard-notify-kitandres-20171129t164814000z
categoryutopian-io
json_metadata"{"image": ["https://steemitboard.com/img/notifications.png"]}"
created2017-11-29 16:48:12
last_update2017-11-29 16:48:12
depth1
children0
net_rshares2,814,972,125
last_payout2017-12-06 16:48:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length699
author_reputation38,705,954,145,809
root_title"Base template for a Django project with Docker, PostgreSQL and Bootstrap"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@utopian-io ·
### Hey @kit.andres I am @utopian-io. I have just upvoted you!
#### Achievements
- You have less than 500 followers. Just gave you a gift to help you succeed!
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
👍  
properties (23)
post_id19,128,068
authorutopian-io
permlinkre-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171130t152936586z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2017-11-30 15:29:36
last_update2017-11-30 15:29:36
depth1
children0
net_rshares2,963,128,552
last_payout2017-12-07 15:29:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,086
author_reputation152,913,012,544,965
root_title"Base template for a Django project with Docker, PostgreSQL and Bootstrap"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)