Django 3.1.x DocumentationDjango . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 3 Using Django 83 3.1 How to install Django . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 3.1 You may have another version of Django installed. 2.2.5 That’s it! That’s it – you can now move isn’t, you’ll get an error telling “No module named django”. This tutorial is written for Django 3.1, which supports Python 3.6 and later. If the Django version doesn’t match, you can refer to the tutorial0 码力 | 2053 页 | 6.92 MB | 1 年前3
Django 3.1.x DocumentationFramework Third-party distributions of Django For distributors Glossary Release notes Final releases 3.1 release 3.0 release 2.2 release 2.1 release 2.0 release 1.11 release 1.10 release 1.9 release 1.8 release Release cadence Deprecation policy Supported versions Release process Django Deprecation Timeline 4.0 3.1 3.0 2.1 2.0 1.10 1.9 1.8 1.7 1.6 1.5 1.4 1.3 The Django source code repository High-level overview Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 3.1 You may have another version of Django installed. That’s it! That’s it – you can now move onto the0 码力 | 3094 页 | 3.03 MB | 1 年前3
django cms 3.1.x Documentationdjango CMS, as well as its plugins, supports both Django 1.7 and Django 1.6 migrations. Since version 3.1, migrations are stored in modules compatible with Django 1.7 and South 1.0.2 without further configuration HttpResponse("ok") Plugin data migrations Due to the migration from mptt to treebeard in version 3.1, the plugin model is different between the two versions. Schema migration are not affected as the migration version import LooseVersion import cms USES_TREEBEARD = LooseVersion(cms.__version__) >= LooseVersion('3.1') class Migration(DataMigration): if USES_TREEBEARD: needed_by = [ ('cms', '0070_auto__add_field0 码力 | 200 页 | 1.63 MB | 1 年前3
Django CMS 3.9.x Documentationbeen tested, or is known to be incompatible. django CMS Python Django 3.9 3.8 3.7 3.6 3.5 3.4 3.2 3.1 3.0 2.2 2.1 2.0 1.11 4.0.x ✓ ✓ ✓ ✓ × × ✓ ✓ ✓ ✓ × × × 3.9.x ✓ ✓ ✓ × × × ✓ ✓ ✓ ✓ × × × 3.8.x × ✓ ✓ ✓ integration This way we can integrate the Polls application without having to change anything in it. 3.1. Incorporate the polls application 3.1.1. Install polls Install the application from its GitHub repository HttpResponse("ok") Plugin data migrations Due to the migration from Django MPTT to django-treebeard in version 3.1, the plugin model is different between the two versions. Schema migrations are not affected as the0 码力 | 417 页 | 1.68 MB | 6 月前3
django cms 3.3.x Documentation1.4 release notes - Unreleased - Draft 3.1.3 release notes 3.1.2 release notes 3.1.1 release notes 3.1 release notes 3.0.16 release notes 3.0.15 release notes 3.0.14 release notes 3.0.13 release notes 3 nodes.append(n4) return nodes menu_pool.register_menu(TestMenu) Note Up to version 3.1 this module was named menu.py. Please update your existing modules to the new naming convention. Support creation To create an apphook, create a cms_apps.py file in your application. Note Up to version 3.1 this module was named cms_app.py - please update your existing modules to the new naming convention0 码力 | 386 页 | 1.56 MB | 1 年前3
Django CMS 3.8.x Documentationintegration This way we can integrate the Polls application without having to change anything in it. 3.1. Incorporate the polls application 3.1.1. Install polls Install the application from its GitHub repository HttpResponse("ok") Plugin data migrations Due to the migration from Django MPTT to django-treebeard in version 3.1, the plugin model is different between the two versions. Schema migrations are not affected as the version import LooseVersion import cms USES_TREEBEARD = LooseVersion(cms.__version__) >= LooseVersion('3.1') class Migration(DataMigration): if USES_TREEBEARD: needed_by = [ ('cms'0 码力 | 413 页 | 1.67 MB | 6 月前3
django cms 3.10.x Documentationbeen tested, or is known to be incompatible. django CMS Python Django 3.9 3.8 3.7 3.6 3.5 3.4 3.2 3.1 3.0 2.2 2.1 2.0 1.11 4.0.x ✓ ✓ ✓ ✓ × × ✓ ✓ ✓ ✓ × × × 3.9.x ✓ ✓ ✓ ✓ × × ✓ ✓ ✓ ✓ × × × 3.8.x × ✓ ✓ HttpResponse("ok") Plugin data migrations Due to the migration from Django MPTT to django-treebeard in version 3.1, the plugin model is different between the two versions. Schema migrations are not affected as the version import LooseVersion import cms USES_TREEBEARD = LooseVersion(cms.__version__) >= LooseVersion('3.1') class Migration(DataMigration): if USES_TREEBEARD: needed_by = [ ('cms', '0070_auto__add_field0 码力 | 296 页 | 1.79 MB | 1 年前3
Django CMS 3.9.x Documentationbeen tested, or is known to be incompatible. django CMS Python Django 3.9 3.8 3.7 3.6 3.5 3.4 3.2 3.1 3.0 2.2 2.1 2.0 1.11 4.0.x ✓ ✓ ✓ ✓ × × ✓ ✓ ✓ ✓ × × × 3.9.x ✓ ✓ ✓ × × × ✓ ✓ ✓ ✓ × × × 3.8.x × ✓ ✓ ✓ 3.10.0 Plugin data migrations Due to the migration from Django MPTT to django-treebeard in version 3.1, the plugin model is different between the two versions. Schema migrations are not affected as the version import LooseVersion import cms USES_TREEBEARD = LooseVersion(cms.__version__) >= LooseVersion('3.1') class Migration(DataMigration): if USES_TREEBEARD: needed_by = [ ('cms', '0070_auto__add_field_c0 码力 | 298 页 | 1.79 MB | 6 月前3
django cms 3.7.x Documentationintegration This way we can integrate the Polls application without having to change anything in it. 3.1. Incorporate the polls application 3.1.1. Install polls Install the application from its GitHub repository HttpResponse("ok") Plugin data migrations Due to the migration from Django MPTT to django-treebeard in version 3.1, the plugin model is different between the two versions. Schema migrations are not affected as the version import LooseVersion import cms USES_TREEBEARD = LooseVersion(cms.__version__) >= LooseVersion('3.1') class Migration(DataMigration): if USES_TREEBEARD: needed_by = [ ('cms',0 码力 | 409 页 | 1.67 MB | 1 年前3
Django CMS 4.0.x Documentation3.9.0 Plugin data migrations Due to the migration from Django MPTT to django-treebeard in version 3.1, the plugin model is different between the two versions. Schema migrations are not affected as the version import LooseVersion import cms USES_TREEBEARD = LooseVersion(cms.__version__) >= LooseVersion('3.1') class Migration(DataMigration): if USES_TREEBEARD: needed_by = [ ('cms', '0070_auto__add_field_c version import LooseVersion import cms USES_TREEBEARD = LooseVersion(cms.__version__) >= LooseVersion('3.1') class Migration(migrations.Migration): if USES_TREEBEARD: run_before = [ ('cms', '0004_auto_20140924_1038')0 码力 | 296 页 | 1.79 MB | 6 月前3
共 57 条
- 1
- 2
- 3
- 4
- 5
- 6













