{"id":16417481,"url":"https://github.com/mfonism/django-classy-start","last_synced_at":"2025-10-26T14:15:21.279Z","repository":{"id":54457468,"uuid":"289720233","full_name":"mfonism/django-classy-start","owner":"mfonism","description":"A Command Line utility for starting Django projects and apps in a most classy manner","archived":false,"fork":false,"pushed_at":"2021-02-16T17:22:53.000Z","size":38,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T08:51:55.218Z","etag":null,"topics":[],"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/mfonism.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":"2020-08-23T16:05:35.000Z","updated_at":"2023-10-18T07:00:43.000Z","dependencies_parsed_at":"2022-08-13T16:11:00.814Z","dependency_job_id":null,"html_url":"https://github.com/mfonism/django-classy-start","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mfonism/django-classy-start","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfonism%2Fdjango-classy-start","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfonism%2Fdjango-classy-start/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfonism%2Fdjango-classy-start/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfonism%2Fdjango-classy-start/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfonism","download_url":"https://codeload.github.com/mfonism/django-classy-start/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfonism%2Fdjango-classy-start/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200373,"owners_count":23726826,"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-11T07:11:32.096Z","updated_at":"2025-10-26T14:15:16.225Z","avatar_url":"https://github.com/mfonism.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Django Classy Start\n\nA command line utility for starting Django projects and apps in a most classy manner.\n\n\n## Synopsis\n\n* Install `django-classy-start` with `pip` (in your virtual environment).\n\n  ```\n  $ pip install django-classy-start\n  ```\n\n* Start a project\n\n  ```\n  $ classy-start project \u003cproject-name\u003e .\n  ```\n\n  This initializes a project named `project-name` in the current working directory. In addition to the regular Django stuff, project is initialized with:\n    + an `accounts` app containing a custom auth user model\n    + a `.env` file with default project secrets\n    + and more\n\n  All of these are reflected in your settings file, so you don't have to bother yourself with wiring them up.\n\n* Start your apps this way\n\n  ```\n  $ classy-start app \u003capp-name\u003e\n  ```\n\n  Your settings file isn't touched for this operation, though.\n\n\n## Why?\n\n### Mostly About the Auth User Model\n\n[The Django docs on auth (customizing)](https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project) recommends setting up a custom user model for every new project as it's usually a real pain to change the auth user model after the database tables have been created.\n\nAnd while it's easy **in theory** for everyone to remember to set up their auth user model first thing after starting a project with `django-admin`, it doesn't always pan out that way in practice.\n\n`django-classy-start` handles all of that neatly with `classy-start`.\n\n\n### And Then There are Secrets\n\nYour `Django` project's `SECRET_KEY` setting is to be kept secret in production. And things like `DEBUG` and `ALLOWED_HOSTS` have different values in different environments.\n\nAnd it's usually not always immediately clear to n00b1es how to keep these concerns separate in their projects.\n\n`django-classy-start` addresses this problem for everyone by reading environment variables from a project-wide `.env` file.\n\n\n### That's NOT All Folks!\n\nAnd this may be my _oh, so, slight_ anal retentiveness speaking, but...\n\n* Apps started by `django-admin` contain some files which have nothing but a line of import (and a line of comment). The imports are unused and linters balk at such things.\n\n* String literals in project and app files are delimited with single quotes. Black, the PSF-blessed Python formatter __dictates__ that double quotes be used.\n\n* `django-classy-start` encourages the good habit of housing test files in a tests directory.\n\n\n## But Really, Why?\n\nOkay, you got me. I just wanted something relatively non-trivial to do so I can learn more about Django and improve my unit testing game.\n\nAnd I found that thing in building this.\n\n\n## Status\n\nv0.0.1 (Beta) released on PyPI\n\n\n## FAQs\n\n__Q1__: Yo, @mfonism, I'm really happy for you, I'mma let you finish, but do you know you just wrote the [frugly](https://www.urbandictionary.com/define.php?term=frugly)-est django-cookiecutter ever?\n\n__A1__: Dude, did you read the [But Really, Why?](#but-really-why) section?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfonism%2Fdjango-classy-start","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfonism%2Fdjango-classy-start","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfonism%2Fdjango-classy-start/lists"}