{"id":15569543,"url":"https://github.com/patrick91/generator-django-environ","last_synced_at":"2025-10-03T00:31:15.925Z","repository":{"id":57246912,"uuid":"68106119","full_name":"patrick91/generator-django-environ","owner":"patrick91","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-04T10:34:43.000Z","size":12,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T08:04:54.967Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrick91.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}},"created_at":"2016-09-13T12:26:10.000Z","updated_at":"2017-02-28T14:47:50.000Z","dependencies_parsed_at":"2022-08-24T16:50:28.016Z","dependency_job_id":null,"html_url":"https://github.com/patrick91/generator-django-environ","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/patrick91%2Fgenerator-django-environ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fgenerator-django-environ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fgenerator-django-environ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fgenerator-django-environ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrick91","download_url":"https://codeload.github.com/patrick91/generator-django-environ/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235053753,"owners_count":18928440,"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-02T17:32:05.027Z","updated_at":"2025-10-03T00:31:15.596Z","avatar_url":"https://github.com/patrick91.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-django-environ [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]\n\u003e Create a django project with django environ\n\n## Installation\n\nFirst, install [Yeoman](http://yeoman.io) and generator-django-environ using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).\n\n```bash\nnpm install -g yo\nnpm install -g generator-django-environ\n```\n\nThen generate your new project:\n\n```bash\nyo django-environ\n```\n\n## Project structure\n\nThis project uses [django environ](https://github.com/joke2k/django-environ) to handle the project settings. The project will have 4\nsettings files:\n\n- base.py\n\n  `base.py` holds the shared configuration.\n\n- dev.py\n\n  `dev.py` should be used during development.\n\n- test.py\n\n  `test.py` is used when running the tests with `py.test`.\n\n- prod.py\n\n  `prod.py` is used as default settings file. It has only one required setting at the moment, the `SECRET_KEY`\n\n\n### Specifying settings\n\nIn order to use the development setttings file, you should set the **DJANGO\\_SETTINGS\\_MODULE**.\nYou can do this in two ways. one is to set it as an environ variable, the other way is to\ncreate an `.env` file with the setting.\n\n```\nDJANGO_SETTINGS_MODULE=myapp.settings.dev\n```\n\nYou can use this file to specify all the other settings:\n\n- DEBUG\n- ALLOWED_HOSTS\n- SECRET_KEY\n\n## License\n\nMIT © [Patrick Arminio]()\n\n\n[npm-image]: https://badge.fury.io/js/generator-django-environ.svg\n[npm-url]: https://npmjs.org/package/generator-django-environ\n[travis-image]: https://travis-ci.org/patrick91/generator-django-environ.svg?branch=master\n[travis-url]: https://travis-ci.org/patrick91/generator-django-environ\n[daviddm-image]: https://david-dm.org/patrick91/generator-django-environ.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/patrick91/generator-django-environ\n[coveralls-image]: https://coveralls.io/repos/patrick91/generator-django-environ/badge.svg\n[coveralls-url]: https://coveralls.io/r/patrick91/generator-django-environ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick91%2Fgenerator-django-environ","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrick91%2Fgenerator-django-environ","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick91%2Fgenerator-django-environ/lists"}