Django CMS 2.1.x Documentationthree different modes in which it will display the languages you can choose from: “raw” (default), “native”, “current” and “short”. It can be passed as last argument to the language_chooser tag as a string string. In “raw” mode, the language will be displayed like it’s verbose name in the settings. In “native” mode the languages are displayed in their actual language (eg. German will be displayed “Deutsch”, find in the cms_plugins.py. You can add extra context to each placeholder so plugin-templates can react to them. You can change the displayed name in the admin with the name parameter. In combination with0 码力 | 63 页 | 485.38 KB | 6 月前3
Django CMS 2.1.x Documentationthree different modes in which it will display the languages you can choose from: “raw” (default), “native”, “current” and “short”. It can be passed as last argument to the language_chooser tag as a string string. In “raw” mode, the language will be displayed like it’s verbose name in the settings. In “native” mode the languages are displayed in their actual language (eg. German will be displayed “Deutsch”, find in the cms_plugins.py. You can add extra context to each placeholder so plugin-templates can react to them. You can change the displayed name in the admin with the name parameter. In combination with0 码力 | 81 页 | 554.09 KB | 6 月前3
Django 3.2.x Documentationis not the only Python testing framework. While Django doesn’t provide explicit support for alter- native frameworks, it does provide a way to invoke tests constructed for an alternative framework as if p2tCAi7KGLk' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 3.1.x DocumentationW9UQwZesciI' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and sync_to_async() adapter to interact with the sync parts of Django. There is also a whole range of async-native Python libraries that you can integrate with. Support for async views was added. 3.25.1 Async views0 码力 | 2053 页 | 6.92 MB | 1 年前3
Django 3.2.x Documentationp2tCAi7KGLk' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and sync_to_async() adapter to interact with the sync parts of Django. There is also a whole range of async-native Python libraries that you can integrate with. Support for async views was added. Async views Any0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 3.1.x DocumentationW9UQwZesciI' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and sync_to_async() adapter to interact with the sync parts of Django. There is also a whole range of async-native Python libraries that you can integrate with. Support for async views was added. Async views Any0 码力 | 3094 页 | 3.03 MB | 1 年前3
Django 4.0.x Documentationis not the only Python testing framework. While Django doesn’t provide explicit support for alter- native frameworks, it does provide a way to invoke tests constructed for an alternative framework as if p2tCAi7KGLk' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 2.2.x DocumentationW9UQwZesciI' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and Note that two types of strings can be passed around inside the template code: Raw strings are the native Python strings. On output, they’re escaped if auto- escaping is in effect and presented unchanged0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 4.2.x Documentationp2tCAi7KGLk' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and sync_to_async() adapter to interact with the sync parts of Django. There is also a whole range of async-native Python libraries that you can integrate with. Async views Any view can be declared async by making0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x Documentationp2tCAi7KGLk' >>> signing.loads(value) {'foo': 'bar'} Because of the nature of JSON (there is no native distinction between lists and tuples) if you pass in a tuple, you will get a list from signing.loads(object): methods employed by the locale middleware (see below). If all you want is to run Django with your native language all you need to do is set LANGUAGE_CODE and make sure the corresponding message files and sync_to_async() adapter to interact with the sync parts of Django. There is also a whole range of async-native Python libraries that you can integrate with. Async views Any view can be declared async by making0 码力 | 3240 页 | 3.13 MB | 1 年前3
共 91 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













