{"id":17874022,"url":"https://github.com/nigma/django-modern-template","last_synced_at":"2025-03-21T22:31:42.689Z","repository":{"id":6882059,"uuid":"8131354","full_name":"nigma/django-modern-template","owner":"nigma","description":"Modern Django project template","archived":false,"fork":false,"pushed_at":"2013-03-18T09:56:24.000Z","size":349,"stargazers_count":44,"open_issues_count":2,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-18T05:43:55.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nigma.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-11T02:20:32.000Z","updated_at":"2019-05-19T15:45:52.000Z","dependencies_parsed_at":"2022-09-19T11:02:08.541Z","dependency_job_id":null,"html_url":"https://github.com/nigma/django-modern-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-modern-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-modern-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-modern-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-modern-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigma","download_url":"https://codeload.github.com/nigma/django-modern-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880285,"owners_count":20525506,"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":[],"created_at":"2024-10-28T11:07:20.842Z","updated_at":"2025-03-21T22:31:42.202Z","avatar_url":"https://github.com/nigma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Modern Django project template\n==============================\n\nOpinionated Django project template by `en.ig.ma`_.\n\n- Preconfigured requirements and application settings\n- Settings divided into modules (no ``local_settings.py`` madness)\n- Ready to deploy on Heroku\n- Static files compression\n- Basic app structure and templates\n- Simple ``dj`` command that invokes ``python manage.py \u003ccommand\u003e`` from\n  any project directory\n\nPrerequisites\n-------------\n\n- Python 2.7\n- PostgreSQL\n- Node.js, npm and lessc for .less development\n- AWS S3 storage account (see ``docs/deploy-on-heroku.rst``)\n\nSetup project\n-------------\n\nPrepare project\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\nStart with creating a new Django project based on this project template::\n\n    django-admin.py startproject --template=https://github.com/nigma/django-modern-template/zipball/master \u003cproject_name\u003e\n    cd \u003cproject_name\u003e\n\nThis will set up and preconfigure your project. Now amend the domain\nand site name settings in the ``conf/prod.py``and ``conf/dev.py``\nfiles and you are almost ready for the first commit.\n\n**Note:** the ``startproject`` command seems to skip the\n``.heroku/collectstatic_disabled`` source file while copying files\nfrom the template. If the ``.heroku`` directory  is not present in the generated\nproject root directory, just create it manually and add an empty file\nnamed ``collectstatic_disabled``::\n\n    mkdir .heroku\n    touch .heroku/collectstatic_disabled\n\nFirst commit\n\"\"\"\"\"\"\"\"\"\"\"\"\n\nAfter configuring the project settings you are ready for the\ninitial commit::\n\n    git init\n    git add .\n    git commit -m \"Initial commit\"\n\nSet heroku env\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\nOnce your project structure is ready, the next step is to create and configure\na heroku instance::\n\n    heroku create\n\n    dj generate_secret_key --settings=my_site.conf.test\n    heroku config:add DJANGO_SECRET_KEY=\u003csecret key\u003e\n\n    heroku config:add AWS_ACCESS_KEY_ID=\u003caws access key\u003e\n    heroku config:add AWS_SECRET_ACCESS_KEY=\u003caws secret key\u003e\n    heroku config:add AWS_STORAGE_BUCKET_NAME=\u003caws bucket name\u003e\n\n    heroku labs:enable user-env-compile\n\nAs well as enable basic addons for database, cache and mail::\n\n    heroku addons:add heroku-postgresql:dev\n    heroku addons:add pgbackups:auto-month\n    heroku addons:add memcachier:dev\n    heroku addons:add mailgun:starter\n    heroku addons:add newrelic:standard\n\n\nPush and migrate\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\nYou should now be ready to deploy your new project to heroku::\n\n    git push heroku master\n    heroku run python manage.py syncdb\n    heroku run python manage.py migrate\n\nSee ``docs/deploy-on-heroku.rst`` for more info.\n\nOut of the box\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\nThis is what you get: `dmt.herokuapp.com \u003chttp://dmt.herokuapp.com\u003e`_\n\nCommercial Support\n------------------\n\nThis project has been created to make Django development faster and follow\nbest practices for own sites and our clients. Contact us at en@ig.ma for\nyour next project.\n\n.. _en.ig.ma: http://en.ig.ma/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigma%2Fdjango-modern-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigma%2Fdjango-modern-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigma%2Fdjango-modern-template/lists"}