django-tagging

    0熱度

    1回答

    我創建了一個自定義標籤,它接受一個參數: {% panel "most" %} 我會用add的參數: {% panel "most"|add:"_people" %} 我預計參數將是「most_people」,而是它是「最」 |補充: 「_人」。看起來,過濾器不會在自定義標籤中調用。如何使他們工作?

    0熱度

    1回答

    我使用django taggit爲所有出價添加標籤。 我的出價模型如下: class Bid(models.Model): tags = TaggableManager() 我怎樣才能把誰擁有該標籤的所有投標特定標籤? 我要做到以下幾點: 比方說,我想從所有投標與標籤移除標籤「美味」: bids = Bid.objects.filter(tags__name__in=["delici

    0熱度

    1回答

    如何索引由Django Tagging(v0.4.5)TagField管理器管理的字段? 這些標籤都正常工作,Watson(v1.2.1)索引模型並返回搜索字符和文本字段的結果,但是如果搜索項是標籤,則返回結果。 ,登記是在AppConfig中所做的記載: from __future__ import unicode_literals from django.apps import AppCon

    1熱度

    1回答

    我的問題 使用Django CMS 2.3.3,請致電cmsplugin。在我的CMS模板的,而不是做: {% placholder "content" %} //calling the Django Page including all plugins... 我想seperately調用每個cmsplugin,但我會怎麼做呢? 我看着Django標籤模板(過濾器)here,也研究了Djang

    2熱度

    1回答

    當我嘗試使用-auto功能進行新遷移時。 python manage.py schemamigration blogger --auto它表明: You cannot use --auto on an app with no migrations. Try --initial. 所以我在終端python manage.py schemamigration blogger --initial再次

    0熱度

    1回答

    我有一個列表小號其中, s = 'The name of my country is Bangladesh' 我轉換的字符串轉換成字符串列表如下圖所示: ss = s.split() 同樣,在我的數據庫我有一個字段關鍵字 keywords = TaggableManager(_('keywords'), blank=True, help_text=keywords_help_text)

    5熱度

    1回答

    我在嘗試顯示在django視圖上創建的代碼的html塊時遇到問題。 這是發生了什麼。 在我看來,我試圖傳遞給模板一堆書描述,我會根據用戶操作隱藏/顯示。這些描述存儲在服務器上的html文件中。 def my_view() #loop through the list of books, read their corresponding a html file, and parse it

    3熱度

    1回答

    我想用Apache mod-wsgi部署一個django web應用程序,但我已將它們追溯到此行(django-tagging模塊缺失): [Wed Feb 20 13:08:42 2013] [error] [client 172.19.130.50] ImportError: No module named tagging 現在,這裏是我的輸出,當我嘗試運行PIP-蟒蛇(我使用Cent

    1熱度

    2回答

    如何將模板標籤的結果加載到模板中進行迭代?基本上我打算在模型對象上加載標籤(使用django-tagging),然後迭代標籤以基於這些標籤創建相關產品的列表。然後我想遍歷這些產品對象來顯示更多關於它們的信息。 防爆,我的模板標籤: @register.simple_tag def get_rel_from_tag(tag_list): try: relproducts =

    -2熱度

    1回答

    Django標籤對象有一個默認的函數add_tag(),它似乎只允許一個字爲標籤名,是否有保存標籤包含多個字?