django cms 2.2.x Documentationrequest.user.last_name}}{% else %}Guest{% endif %} This plugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to last_name}}{% else %}{{ instance.guest_name }}{% endif %} The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hardcoded Guest string in the else clause0 码力 | 105 页 | 679.29 KB | 1 年前3
Django CMS 2.4.x Documentationrequest.user.last_name}}{% else %}Guest{% endif %} This plugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to last_name}}{% else %}{{ instance.guest_name }}{% endif %} The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hardcoded Guest string in the else clause0 码力 | 156 页 | 727.78 KB | 6 月前3
Django CMS 2.2.x Documentationplugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer look at what we did there. The cms_plugins.py files are where import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to you The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hardcoded Guest string in the else clause. Warning: cms.models.pluginmodel.CMSPlugin subclasses0 码力 | 76 页 | 627.98 KB | 6 月前3
Django CMS 2.3.x Documentationplugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer look at what we did there. The cms_plugins.py files are where import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to you The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hardcoded Guest string in the else clause. Warning: cms.models.pluginmodel.CMSPlugin subclasses0 码力 | 92 页 | 666.41 KB | 6 月前3
django cms 3.1.x Documentation{{ request.user.last_name}}{% else %}Guest{% endif %} This plugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to else %} {{ instance.guest_name }} {% endif %} The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hardcoded Guest string in the else clause0 码力 | 200 页 | 1.63 MB | 1 年前3
Django CMS 3.0.x Documentationplugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer look at what we did there. The cms_plugins.py files are where django cms Documentation, Release 3.0.19.dev1 class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to you {% else %} {{ instance.guest_name }} {% endif %} The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hardcoded Guest string in the else clause0 码力 | 180 页 | 1.56 MB | 6 月前3
Django CMS 2.4.x Documentationplugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer look at what we did there. The cms_plugins.py files are where import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to you The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hardcoded Guest string in the else clause. Warning: cms.models.pluginmodel.CMSPlugin subclasses0 码力 | 104 页 | 709.98 KB | 6 月前3
django cms 3.3.x Documentationrequest.user.last_name}}{% else %}Guest{% endif %} This plugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to else %} {{ instance.guest_name }} {% endif %} The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hard-coded Guest string in the else clause0 码力 | 386 页 | 1.56 MB | 1 年前3
django cms 3.4.x Documentationrequest.user.last_name}}{% else %}Guest{% endif %} This plugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to else %} {{ instance.guest_name }} {% endif %} The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hard-coded Guest string in the else clause0 码力 | 395 页 | 1.64 MB | 1 年前3
django cms 3.6.x Documentation˓→request.user.last_name}}{% else %}Guest{% endif %} This plugin will now greet the users on your website either by their name if they’re logged in, or as Guest if they’re not. Now let’s take a closer import CMSPlugin from django.db import models class Hello(CMSPlugin): guest_name = models.CharField(max_length=50, default='Guest') If you followed the Django tutorial, this shouldn’t look too new to else %} {{ instance.guest_name }} {% endif %} The only thing we changed there is that we use the template variable {{ instance.guest_name }} instead of the hard-coded Guest string in the else clause0 码力 | 278 页 | 1.63 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













