Django CMS 2.4.x Documentation
either via {% language %} templatetag or via activate("de") function call in views. Before: {% url "de:myview" %} After: {% load i18n %}{% language "de" %} {% url "myview_name" %} {% endlanguage %} • reverse 'en', 'name': gettext('English'), 'fallbacks': ['de', 'fr'], 'public': True, 'hide_untranslated': True, 'redirect_on_fallback':False, }, { 'code': 'de', 'name': gettext('Deutsch'), 'fallbacks': ['en', 'name': gettext('Dutch'), 'public': True, 'fallbacks': ['en'], }, ], 'default': { 'fallbacks': ['en', 'de', 'fr'], 'redirect_on_fallback':True, 'public': False, 'hide_untranslated': False, } } For more details0 码力 | 104 页 | 709.98 KB | 6 月前3Scrapy 1.0 Documentation
default, so you may have it already. lxml [http://lxml.de/]. Most Linux distributions ships prepackaged versions of lxml. Otherwise refer to http://lxml.de/installation.html OpenSSL [https://pypi.python.org/pypi/pyOpenSSL]http://example.com/ 0 码力 | 303 页 | 533.88 KB | 1 年前3Scrapy 0.24 Documentation
org/pypi/setuptools] if not installed. lxml [http://lxml.de/]. Most Linux distributions ships prepackaged versions of lxml. Otherwise refer to http://lxml.de/installation.html OpenSSL [https://pypi.python.org/pypi/pyOpenSSL]http://example.com/ 0 码力 | 298 页 | 544.11 KB | 1 年前3Django CMS 3.0.x Documentation
yes • Languages to enable. Option can be provided multiple times, or as a comma separated list: en, de • Optional default time zone: America/Chicago: • Activate Django timezone support: yes • Activate CMS the same url but in a different language use the language template tag: {% load i18n %} {% language "de" %} 46 Chapter 5. Table of contents django cms Documentation, Release 3.0.19.dev1 {% url myapp_namespace:app_main template tag returns the URL of the current page in another language. Example: {% page_language_url "de" %} hide_untranslated If you add a default directive to your CMS_LANGUAGES with a hide_untranslated0 码力 | 180 页 | 1.56 MB | 6 月前3Scrapy 1.1 Documentation
default, so you may have it already. lxml [http://lxml.de/]. Most Linux distributions ships prepackaged versions of lxml. Otherwise refer to http://lxml.de/installation.html OpenSSL [https://pypi.python.org/pypi/pyOpenSSL]http://example.com/ 0 码力 | 322 页 | 582.29 KB | 1 年前3Scrapy 1.2 Documentation
written in pure Python and depends on a few key Python packages (among others): lxml [http://lxml.de/], an efficient XML and HTML parser parsel [https://pypi.python.org/pypi/parsel], an HTML/XML data dependencies, please refer to their respective installation instructions: lxml installation [http://lxml.de/installation.html] cryptography installation [https://cryptography.io/en/latest/installation/] Usinghttp://example.com/ 0 码力 | 330 页 | 548.25 KB | 1 年前3Scrapy 1.3 Documentation
written in pure Python and depends on a few key Python packages (among others): lxml [http://lxml.de/], an efficient XML and HTML parser parsel [https://pypi.python.org/pypi/parsel], an HTML/XML data dependencies, please refer to their respective installation instructions: lxml installation [http://lxml.de/installation.html] cryptography installation [https://cryptography.io/en/latest/installation/] Usinghttp://example.com/ 0 码力 | 339 页 | 555.56 KB | 1 年前3Django CMS 2.2.x Documentation
Defines the languages available in django CMS. Example: CMS_LANGUAGES = ( ('fr', gettext('French')), ('de', gettext('German')), ('en', gettext('English')), ) Note: Make sure you only define languages which Getting Started django cms Documentation, Release 2.2.1 Example: CMS_LANGUAGE_CONF = { 'de': ['en', 'fr'], 'en': ['de'], } CMS_SITE_LANGUAGES Default: {} If you have more than one site and CMS_LANGUAGES differs the admin you only get the languages available on this site. Example: CMS_SITE_LANGUAGES = { 1:['en','de'], 2:['en','fr'], 3:['en'], } CMS_FRONTEND_LANGUAGES Default: Value of CMS_LANGUAGES A list of languages0 码力 | 76 页 | 627.98 KB | 6 月前3Scrapy 1.4 Documentation
written in pure Python and depends on a few key Python packages (among others): lxml [http://lxml.de/], an efficient XML and HTML parser parsel [https://pypi.python.org/pypi/parsel], an HTML/XML data dependencies, please refer to their respective installation instructions: lxml installation [http://lxml.de/installation.html] cryptography installation [https://cryptography.io/en/latest/installation/] Usinghttp://example.com/ 0 码力 | 394 页 | 589.10 KB | 1 年前3Django CMS 3.11.10 Documentation
are not migrating a version 3 project Add to settings.py: LANGUAGES = [ ("en", "English"), ("de", "German"), ("it", "Italian"), ] LANGUAGE_CODE = "en" pip install psycopg2 # for Postgres user, in the following order of preference: language code in the URL - for example, http://example.com/de (when multilingual URLs are enabled) language stored in the browsing session language stored in a cookie "whoosh_index_en"), }, "de": { "ENGINE": "haystack.backends.whoosh_backend.WhooshEngine", "PATH": os.path.join(ROOT_DIR, "search_index", "whoosh_index_de"), } } ... from haystack0 码力 | 493 页 | 1.44 MB | 6 月前0.03
共 393 条
- 1
- 2
- 3
- 4
- 5
- 6
- 40