Django CMS 2.1.x Documentationpicture', 1.6. Plugins reference 21 django cms Documentation, Release 2.1.5 # ... ) If you want to resize the picture you can get a thumbnail library. We recommend sorl.thumbnail. In your project template to the context of the placeholder, you should use Django’s with tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 63 页 | 485.38 KB | 6 月前3
Django CMS 2.1.x Documentationsettings.py file: INSTALLED_APPS = ( # ... 'cms.plugins.picture', # ... ) If you want to resize the picture you can get a thumbnail library. We recommend sorl.thumbnail [http://code.google.com/p/sorl-thumbnail/] to the context of the placeholder, you should use Django’s with tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 81 页 | 554.09 KB | 6 月前3
Django CMS 2.2.x Documentationproject’s settings.py file: INSTALLED_APPS = ( # ... 'cms.plugins.picture', # ... ) If you want to resize the picture you can get a thumbnail library. We recommend sorl.thumbnail. In your project template to the context of the placeholder, you should use Django’s with tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 76 页 | 627.98 KB | 6 月前3
django cms 2.2.x Documentationsettings.py file: INSTALLED_APPS = ( # ... 'cms.plugins.picture', # ... ) If you want to resize the picture you can get a thumbnail library. We recommend sorl.thumbnail [http://code.google.com/p/sorl-thumbnail/] org/docs/django/en/latest/ref/templates/builtins.html#std:templatetag- with] tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 105 页 | 679.29 KB | 1 年前3
Django CMS 2.3.x Documentationplugins.picture', # ... ) There are several solutions for Python and Django out there to automatically resize your pictures, you can find some on Django Packages and compare them there. In your project template to the context of the placeholder, you should use Django’s with tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 92 页 | 666.41 KB | 6 月前3
Django CMS 2.4.x Documentationplugins.picture', # ... ) There are several solutions for Python and Django out there to automatically resize your pictures, you can find some on Django Packages and compare them there. In your project template to the context of the placeholder, you should use Django’s with tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 104 页 | 709.98 KB | 6 月前3
Django CMS 2.4.x Documentationpicture', # ... ) There are several solutions for Python and Django out there to automatically resize your pictures, you can find some on Django Packages [http://djangopackages.com/grids/g/thumbnails/] org/docs/django/en/latest/ref/templates/builtins.html#std:templatetag- with] tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 156 页 | 727.78 KB | 6 月前3
Django CMS 3.0.x Documentation'djangocms_picture', # ... ) There are several solutions for Python and Django out there to automatically resize your pictures, you can find some on Django Packages and compare them there. In your project template to the context of the placeholder, you should use Django’s with tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 180 页 | 1.56 MB | 6 月前3
django cms 3.1.x Documentation'djangocms_picture', # ... ) There are several solutions for Python and Django out there to automatically resize your pictures, you can find some on Django Packages and compare them there. In your project template to the context of the placeholder, you should use Django’s with tag. For instance, if you want to resize images from your templates according to a context variable called width, you can pass it as follows:0 码力 | 200 页 | 1.63 MB | 1 年前3
Django 2.2.x Documentationexists(self.filename)) class ResizeImageTests(ImageTestCaseMixin, TestCase): def test_resize_image(self): resize_image(self.file, (48, 48)) self.assertEqual(get_image_size(self.file), (480 码力 | 2915 页 | 2.83 MB | 1 年前3
共 29 条
- 1
- 2
- 3













