diff --git a/AUTHORS b/AUTHORS
index 6e79bef..ccb2a8a 100644
a
|
b
|
answer newbie questions, and generally made Django that much better:
|
595 | 595 | Jarek Zgoda <jarek.zgoda@gmail.com> |
596 | 596 | Cheng Zhang |
597 | 597 | Hannes Struß <x@hannesstruss.de> |
| 598 | Roman Gladkov <d1fffuz0r@gmail.com> |
598 | 599 | |
599 | 600 | A big THANK YOU goes to: |
600 | 601 | |
diff --git a/django/core/management/commands/docs.py b/django/core/management/commands/docs.py
new file mode 100644
index 0000000..fa6aa60
-
|
+
|
|
| 1 | import webbrowser |
| 2 | |
| 3 | from django.core.management.base import NoArgsCommand |
| 4 | |
| 5 | |
| 6 | class Command(NoArgsCommand): |
| 7 | help = """Opening the documentation for your version of Django""" |
| 8 | url = 'https://docs.djangoproject.com/en/{ver}/' |
| 9 | |
| 10 | can_import_settings = False |
| 11 | requires_model_validation = False |
| 12 | leave_locale_alone = True |
| 13 | |
| 14 | def handle_noargs(self, *args, **options): |
| 15 | from django import VERSION |
| 16 | |
| 17 | version = 'dev' |
| 18 | |
| 19 | if 'final' in VERSION: |
| 20 | version = '.'.join(map(str, VERSION[:2])) |
| 21 | |
| 22 | url = self.url.format(ver=version) |
| 23 | |
| 24 | webbrowser.open(url) |
| 25 | |
| 26 | return 'Opening the documentation by link: {url}'.format(url=url) |
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index bde4ec6..9eb4228 100644
a
|
b
|
example, the default settings don't define :setting:`ROOT_URLCONF`, so
|
171 | 171 | Note that Django's default settings live in ``django/conf/global_settings.py``, |
172 | 172 | if you're ever curious to see the full list of defaults. |
173 | 173 | |
| 174 | .. versionchanged:: 1.6 |
| 175 | |
| 176 | docs |
| 177 | ---- |
| 178 | |
| 179 | .. django-admin:: docs |
| 180 | |
| 181 | Opening the documentation page for your version of Django in the webbrowser. |
| 182 | |
174 | 183 | dumpdata <appname appname appname.Model ...> |
175 | 184 | -------------------------------------------- |
176 | 185 | |
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt
index f53fa8a..6f8f3d8 100644
a
|
b
|
Minor features
|
64 | 64 | :attr:`~django.core.management.BaseCommand.leave_locale_alone` internal |
65 | 65 | option. See :ref:`management-commands-and-locales` for more details. |
66 | 66 | |
| 67 | * Added :djadmin:`docs` command for opening the documentation website. |
| 68 | |
67 | 69 | Backwards incompatible changes in 1.6 |
68 | 70 | ===================================== |
69 | 71 | |