{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/44590428","id":44590428,"diff_hunk":"@@ -256,6 +256,15 @@ All attributes can be set in your derived class and can be used in\n     because attempting to set the locale needs access to settings. This\n     condition will generate a :class:`CommandError`.\n \n+.. attribute:: BaseCommand.style\n+\n+    An instance attribute that defines the style of the output, when writing to,\n+    e.g., stdout.\n+\n+    Used for emphasizing messages by adding a color to them. To avoid text\n+    higlighting, pass the :djadminopt:`--no-color` option when running your\n+    command. To modify the color palette, see the :ref:`syntax-coloring`.","path":"docs/howto/custom-management-commands.txt","position":26,"original_position":26,"commit_id":"5966846ca3a0ec07fd1d04d017c91b377d2872f4","original_commit_id":"5966846ca3a0ec07fd1d04d017c91b377d2872f4","user":{"login":"timgraham","id":411869,"avatar_url":"https://avatars.githubusercontent.com/u/411869?v=3","gravatar_id":"","url":"https://api.github.com/users/timgraham","html_url":"https://github.com/timgraham","followers_url":"https://api.github.com/users/timgraham/followers","following_url":"https://api.github.com/users/timgraham/following{/other_user}","gists_url":"https://api.github.com/users/timgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/timgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgraham/subscriptions","organizations_url":"https://api.github.com/users/timgraham/orgs","repos_url":"https://api.github.com/users/timgraham/repos","events_url":"https://api.github.com/users/timgraham/events{/privacy}","received_events_url":"https://api.github.com/users/timgraham/received_events","type":"User","site_admin":false},"body":"We can also see the list of available style options in the doc which I think would be good to mention.","created_at":"2015-11-11T21:41:47Z","updated_at":"2015-11-11T21:41:47Z","html_url":"https://github.com/django/django/pull/5611#discussion_r44590428","pull_request_url":"https://api.github.com/repos/django/django/pulls/5611","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/44590428"},"html":{"href":"https://github.com/django/django/pull/5611#discussion_r44590428"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/5611"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/5611","id":50062121,"html_url":"https://github.com/django/django/pull/5611","diff_url":"https://github.com/django/django/pull/5611.diff","patch_url":"https://github.com/django/django/pull/5611.patch","issue_url":"https://api.github.com/repos/django/django/issues/5611","number":5611,"state":"open","locked":false,"title":"Fixed #25526 -- Documented how to output colored text in custom management commands.","user":{"login":"elenaoat","id":3646926,"avatar_url":"https://avatars.githubusercontent.com/u/3646926?v=3","gravatar_id":"","url":"https://api.github.com/users/elenaoat","html_url":"https://github.com/elenaoat","followers_url":"https://api.github.com/users/elenaoat/followers","following_url":"https://api.github.com/users/elenaoat/following{/other_user}","gists_url":"https://api.github.com/users/elenaoat/gists{/gist_id}","starred_url":"https://api.github.com/users/elenaoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elenaoat/subscriptions","organizations_url":"https://api.github.com/users/elenaoat/orgs","repos_url":"https://api.github.com/users/elenaoat/repos","events_url":"https://api.github.com/users/elenaoat/events{/privacy}","received_events_url":"https://api.github.com/users/elenaoat/received_events","type":"User","site_admin":false},"body":"Added short description for CommandBase.style attribute. Also added 2 examples of how the style can be used when outputting to stdout.","created_at":"2015-11-08T15:07:35Z","updated_at":"2015-11-11T21:41:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5aaae13a1cbe831dc44a839271726cb09bcda5c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/5611/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/5611/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/5611/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/5966846ca3a0ec07fd1d04d017c91b377d2872f4","head":{"label":"elenaoat:doc_custom_command","ref":"doc_custom_command","sha":"5966846ca3a0ec07fd1d04d017c91b377d2872f4","user":{"login":"elenaoat","id":3646926,"avatar_url":"https://avatars.githubusercontent.com/u/3646926?v=3","gravatar_id":"","url":"https://api.github.com/users/elenaoat","html_url":"https://github.com/elenaoat","followers_url":"https://api.github.com/users/elenaoat/followers","following_url":"https://api.github.com/users/elenaoat/following{/other_user}","gists_url":"https://api.github.com/users/elenaoat/gists{/gist_id}","starred_url":"https://api.github.com/users/elenaoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elenaoat/subscriptions","organizations_url":"https://api.github.com/users/elenaoat/orgs","repos_url":"https://api.github.com/users/elenaoat/repos","events_url":"https://api.github.com/users/elenaoat/events{/privacy}","received_events_url":"https://api.github.com/users/elenaoat/received_events","type":"User","site_admin":false},"repo":{"id":45732474,"name":"django","full_name":"elenaoat/django","owner":{"login":"elenaoat","id":3646926,"avatar_url":"https://avatars.githubusercontent.com/u/3646926?v=3","gravatar_id":"","url":"https://api.github.com/users/elenaoat","html_url":"https://github.com/elenaoat","followers_url":"https://api.github.com/users/elenaoat/followers","following_url":"https://api.github.com/users/elenaoat/following{/other_user}","gists_url":"https://api.github.com/users/elenaoat/gists{/gist_id}","starred_url":"https://api.github.com/users/elenaoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elenaoat/subscriptions","organizations_url":"https://api.github.com/users/elenaoat/orgs","repos_url":"https://api.github.com/users/elenaoat/repos","events_url":"https://api.github.com/users/elenaoat/events{/privacy}","received_events_url":"https://api.github.com/users/elenaoat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elenaoat/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/elenaoat/django","forks_url":"https://api.github.com/repos/elenaoat/django/forks","keys_url":"https://api.github.com/repos/elenaoat/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elenaoat/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elenaoat/django/teams","hooks_url":"https://api.github.com/repos/elenaoat/django/hooks","issue_events_url":"https://api.github.com/repos/elenaoat/django/issues/events{/number}","events_url":"https://api.github.com/repos/elenaoat/django/events","assignees_url":"https://api.github.com/repos/elenaoat/django/assignees{/user}","branches_url":"https://api.github.com/repos/elenaoat/django/branches{/branch}","tags_url":"https://api.github.com/repos/elenaoat/django/tags","blobs_url":"https://api.github.com/repos/elenaoat/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elenaoat/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elenaoat/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/elenaoat/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elenaoat/django/statuses/{sha}","languages_url":"https://api.github.com/repos/elenaoat/django/languages","stargazers_url":"https://api.github.com/repos/elenaoat/django/stargazers","contributors_url":"https://api.github.com/repos/elenaoat/django/contributors","subscribers_url":"https://api.github.com/repos/elenaoat/django/subscribers","subscription_url":"https://api.github.com/repos/elenaoat/django/subscription","commits_url":"https://api.github.com/repos/elenaoat/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/elenaoat/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/elenaoat/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/elenaoat/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/elenaoat/django/contents/{+path}","compare_url":"https://api.github.com/repos/elenaoat/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elenaoat/django/merges","archive_url":"https://api.github.com/repos/elenaoat/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elenaoat/django/downloads","issues_url":"https://api.github.com/repos/elenaoat/django/issues{/number}","pulls_url":"https://api.github.com/repos/elenaoat/django/pulls{/number}","milestones_url":"https://api.github.com/repos/elenaoat/django/milestones{/number}","notifications_url":"https://api.github.com/repos/elenaoat/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elenaoat/django/labels{/name}","releases_url":"https://api.github.com/repos/elenaoat/django/releases{/id}","created_at":"2015-11-07T10:45:37Z","updated_at":"2015-11-07T10:46:07Z","pushed_at":"2015-11-11T05:37:56Z","git_url":"git://github.com/elenaoat/django.git","ssh_url":"git@github.com:elenaoat/django.git","clone_url":"https://github.com/elenaoat/django.git","svn_url":"https://github.com/elenaoat/django","homepage":"https://www.djangoproject.com/","size":149336,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"django:master","ref":"master","sha":"e0de82c9b2c41c4c479d2245e7d5cd59638b5440","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","created_at":"2012-04-28T02:47:18Z","updated_at":"2015-11-11T18:08:42Z","pushed_at":"2015-11-11T20:43:30Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":321168,"stargazers_count":16655,"watchers_count":16655,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6771,"mirror_url":null,"open_issues_count":112,"forks":6771,"open_issues":112,"watchers":16655,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/5611"},"html":{"href":"https://github.com/django/django/pull/5611"},"issue":{"href":"https://api.github.com/repos/django/django/issues/5611"},"comments":{"href":"https://api.github.com/repos/django/django/issues/5611/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/5611/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/5611/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/5966846ca3a0ec07fd1d04d017c91b377d2872f4"}}}}