{"id":15435644,"url":"https://github.com/palewire/django-heroku-template","last_synced_at":"2025-04-19T18:21:51.855Z","repository":{"id":66432391,"uuid":"196128462","full_name":"palewire/django-heroku-template","owner":"palewire","description":"A template for Django projects hosted by Heroku","archived":false,"fork":false,"pushed_at":"2019-12-15T17:42:26.000Z","size":27,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T09:32:39.615Z","etag":null,"topics":["data-journalism","django","heroku","journalism","news","postgresql","python","templates"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palewire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-10T03:59:19.000Z","updated_at":"2022-10-04T21:33:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"247378ed-2375-4aaa-b959-20a2c053fc8e","html_url":"https://github.com/palewire/django-heroku-template","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"6be05cd6e0c6a6fdd7111085ff0c22f48e7bdaa3"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palewire%2Fdjango-heroku-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palewire%2Fdjango-heroku-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palewire%2Fdjango-heroku-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palewire%2Fdjango-heroku-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palewire","download_url":"https://codeload.github.com/palewire/django-heroku-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240404754,"owners_count":19796064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-journalism","django","heroku","journalism","news","postgresql","python","templates"],"created_at":"2024-10-01T18:45:36.219Z","updated_at":"2025-03-02T18:32:20.312Z","avatar_url":"https://github.com/palewire.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-heroku-template\n\nA template for Django projects hosted by Heroku\n\n\n## Requirements\n\n* [Heroku account](https://signup.heroku.com/)\n* [Heroku command-line interface](https://devcenter.heroku.com/articles/heroku-cli)\n\n\n## Getting started\n\nCreate your own repo using this template. Clone it to a local virtual environment.\n\nInstall the dependencies.\n\n    $ pipenv install --dev\n\nCreate a local version of the database.\n\n    $ python manage.py migrate\n\nDo whatever Django things you want to do to configure your project. Then create an application with Heroku.\n\n    $ heroku create your-app-name\n    Creating ⬢ your-app-name... done\n    https://your-app-name.herokuapp.com/ | https://git.heroku.com/your-app-name.git\n\nCreate a PostgreSQL database with Heroku. We will use the free \"hobby-dev\" model as an example.\n\n    $ heroku addons:create heroku-postgresql:hobby-dev --app your-app-name\n    Creating heroku-postgresql:hobby-dev on ⬢ your-app-name... free\n    Database has been created and is available\n    ! This database is empty. If upgrading, you can transfer\n    ! data from another database with pg:copy\n    Created postgresql-metric-19347 as DATABASE_URL\n    Use heroku addons:docs heroku-postgresql to view documentation\n\nCommit your work to your repository.\n\n    $ git commit -am \"Let's do this\"\n\nPush to Heroku.\n\n    $ git push heroku master\n    Counting objects: 19, done.\n    Delta compression using up to 4 threads.\n    Compressing objects: 100% (16/16), done.\n    Writing objects: 100% (19/19), 7.08 KiB | 0 bytes/s, done.\n    Total 19 (delta 3), reused 14 (delta 1)\n    remote: Compressing source files... done.\n    remote: Building source:\n    remote:\n    remote: -----\u003e Python app detected\n    remote: -----\u003e Installing python-3.6.8\n    remote: -----\u003e Installing pip\n    remote: -----\u003e Installing dependencies with Pipenv 2018.5.18…\n    remote:        Installing dependencies from Pipfile.lock (e43d66)…\n    remote: -----\u003e Installing SQLite3\n    remote: -----\u003e $ python manage.py collectstatic --noinput\n    remote:        120 static files copied to '/tmp/build_b643885c9c9ddd78d3e374fcf9348d40/staticfiles', 365 post-processed.\n    remote:\n    remote: -----\u003e Discovering process types\n    remote:        Procfile declares types -\u003e release, web\n    remote:\n    remote: -----\u003e Compressing...\n    remote:        Done: 63.5M\n    remote: -----\u003e Launching...\n    remote:  !     Release command declared: this new release will not be available until the command succeeds.\n    remote:        Released v5\n    remote:        https://your-app-name.herokuapp.com/ deployed to Heroku\n    remote:\n    remote: Verifying deploy... done.\n    remote: Running release command...\n    remote:\n    remote: Operations to perform:\n    remote:   Apply all migrations: admin, auth, contenttypes, sessions\n    remote: Running migrations:\n    remote:   Applying contenttypes.0001_initial... OK\n    remote:   Applying auth.0001_initial... OK\n    remote:   Applying admin.0001_initial... OK\n    remote:   Applying admin.0002_logentry_remove_auto_add... OK\n    remote:   Applying admin.0003_logentry_add_action_flag_choices... OK\n    remote:   Applying contenttypes.0002_remove_content_type_name... OK\n    remote:   Applying auth.0002_alter_permission_name_max_length... OK\n    remote:   Applying auth.0003_alter_user_email_max_length... OK\n    remote:   Applying auth.0004_alter_user_username_opts... OK\n    remote:   Applying auth.0005_alter_user_last_login_null... OK\n    remote:   Applying auth.0006_require_contenttypes_0002... OK\n    remote:   Applying auth.0007_alter_validators_add_error_messages... OK\n    remote:   Applying auth.0008_alter_user_username_max_length... OK\n    remote:   Applying auth.0009_alter_user_last_name_max_length... OK\n    remote:   Applying auth.0010_alter_group_name_max_length... OK\n    remote:   Applying auth.0011_update_proxy_permissions... OK\n    remote:   Applying sessions.0001_initial... OK\n    remote: Waiting for release.... done.\n    To https://git.heroku.com/your-app-name.git\n    * [new branch]      master -\u003e master\n\nGive it a second. Visit the administration panel for your application at [your-app-name.herokuapp.com/admin/](https://your-app-name.herokuapp.com/admin/).\n\n![The end](https://i.imgur.com/0kl5pOs.png)\n\nDon't forget to create a super user so you can login.\n\n    $ heroku run python manage.py createsuperuser\n\n[Young hearts, run free](https://www.youtube.com/watch?v=i1TDZtoq5PU).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalewire%2Fdjango-heroku-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalewire%2Fdjango-heroku-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalewire%2Fdjango-heroku-template/lists"}