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/>
post_id | 18,996,937 | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
author | kit.andres | ||||||||||||||||||||||||||||||||||||||||||||||||
permlink | base-template-for-a-django-project-with-docker-postgresql-and-bootstrap | ||||||||||||||||||||||||||||||||||||||||||||||||
category | utopian-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"]}" | ||||||||||||||||||||||||||||||||||||||||||||||||
created | 2017-11-29 06:30:06 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_update | 2017-11-29 06:30:06 | ||||||||||||||||||||||||||||||||||||||||||||||||
depth | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
children | 6 | ||||||||||||||||||||||||||||||||||||||||||||||||
net_rshares | 13,752,091,234,568 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_payout | 2017-12-06 06:30:06 | ||||||||||||||||||||||||||||||||||||||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||||||||||||||||||||||||||||||||||||||
total_payout_value | 24.804 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
curator_payout_value | 10.051 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
pending_payout_value | 0.000 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
promoted | 0.000 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
body_length | 1,971 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_reputation | 29,892,040,056,464 | ||||||||||||||||||||||||||||||||||||||||||||||||
root_title | "Base template for a Django project with Docker, PostgreSQL and Bootstrap" | ||||||||||||||||||||||||||||||||||||||||||||||||
beneficiaries |
| ||||||||||||||||||||||||||||||||||||||||||||||||
max_accepted_payout | 1,000,000.000 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
percent_steem_dollars | 5,000 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
steemitboard | 0 | 234,883,584 | 1% | ||
ecoinstant | 0 | 16,264,302,797 | 100% | ||
jomeszaros | 0 | 90,499,225,613 | 100% | ||
dodybireuen | 0 | 39,766,254,148 | 100% | ||
iamai | 0 | 54,115,767 | 100% | ||
yabapmatt | 0 | 516,696,465,909 | 100% | ||
kiaazad | 0 | 14,753,326,405 | 100% | ||
utopian-io | 0 | 13,059,751,388,436 | 10% | ||
emrebeyler | 0 | 6,101,084,757 | 20% | ||
tuanis | 0 | 3,119,287,138 | 14.87% | ||
coffeesource.net | 0 | 2,652,544,881 | 100% | ||
birdland | 0 | 836,306,630 | 100% | ||
peacebuilder | 0 | 1,362,048,503 | 100% |
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)**
post_id | 19,027,618 |
---|---|
author | emrebeyler |
permlink | re-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t135239465z |
category | utopian-io |
json_metadata | "{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}" |
created | 2017-11-29 13:52:39 |
last_update | 2017-11-29 13:52:39 |
depth | 1 |
children | 1 |
net_rshares | 2,780,192,296 |
last_payout | 2017-12-06 13:52:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 172 |
author_reputation | 319,480,565,467,431 |
root_title | "Base template for a Django project with Docker, PostgreSQL and Bootstrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kit.andres | 0 | 2,780,192,296 | 100% |
Thank you mr @emrebeyler.
post_id | 19,028,815 |
---|---|
author | kit.andres |
permlink | re-emrebeyler-re-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t140629342z |
category | utopian-io |
json_metadata | "{"app": "steemit/0.1", "users": ["emrebeyler"], "tags": ["utopian-io"]}" |
created | 2017-11-29 14:06:30 |
last_update | 2017-11-29 14:06:30 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-12-06 14:06:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 25 |
author_reputation | 29,892,040,056,464 |
root_title | "Base template for a Django project with Docker, PostgreSQL and Bootstrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
This is useful to me! In fact - I wish there were more templates like this for getting a quick start on new projects.
post_id | 19,028,615 |
---|---|
author | ecoinstant |
permlink | re-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t140349836z |
category | utopian-io |
json_metadata | "{"app": "steemit/0.1", "tags": ["utopian-io"]}" |
created | 2017-11-29 14:03:51 |
last_update | 2017-11-29 14:03:51 |
depth | 1 |
children | 0 |
net_rshares | 2,837,812,862 |
last_payout | 2017-12-06 14:03:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 118 |
author_reputation | 76,834,373,699,494 |
root_title | "Base template for a Django project with Docker, PostgreSQL and Bootstrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kit.andres | 0 | 2,837,812,862 | 100% |
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).
post_id | 19,029,480 |
---|---|
author | neurallearner |
permlink | re-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171129t141457639z |
category | utopian-io |
json_metadata | "{"app": "steemit/0.1", "links": ["https://steemit.com/technology/@neurallearner/deep-learning-an-extension-of-the-perceptron"], "tags": ["utopian-io"]}" |
created | 2017-11-29 14:15:09 |
last_update | 2017-11-29 14:15:09 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-12-06 14:15:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 171 |
author_reputation | 52,749,970,637 |
root_title | "Base template for a Django project with Docker, PostgreSQL and Bootstrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
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)!
post_id | 19,041,878 |
---|---|
author | steemitboard |
permlink | steemitboard-notify-kitandres-20171129t164814000z |
category | utopian-io |
json_metadata | "{"image": ["https://steemitboard.com/img/notifications.png"]}" |
created | 2017-11-29 16:48:12 |
last_update | 2017-11-29 16:48:12 |
depth | 1 |
children | 0 |
net_rshares | 2,814,972,125 |
last_payout | 2017-12-06 16:48:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 699 |
author_reputation | 38,705,954,145,809 |
root_title | "Base template for a Django project with Docker, PostgreSQL and Bootstrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kit.andres | 0 | 2,814,972,125 | 100% |
### 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**
post_id | 19,128,068 |
---|---|
author | utopian-io |
permlink | re-kitandres-base-template-for-a-django-project-with-docker-postgresql-and-bootstrap-20171130t152936586z |
category | utopian-io |
json_metadata | "{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}" |
created | 2017-11-30 15:29:36 |
last_update | 2017-11-30 15:29:36 |
depth | 1 |
children | 0 |
net_rshares | 2,963,128,552 |
last_payout | 2017-12-07 15:29:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,086 |
author_reputation | 152,913,012,544,965 |
root_title | "Base template for a Django project with Docker, PostgreSQL and Bootstrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kit.andres | 0 | 2,963,128,552 | 100% |