Django 1.8.x Documentation
>>> Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MySQL, or Oracle. To install such a database, consult the database installation change the following keys in the DATABASES 'default' item to match your database connection settings: ENGINE – Either 'django.db.backends.sqlite3', 'django.db.backends.postgresql_psycopg2', 'django.db.backends Don’t worry if you can’t make any sense of the template right now – we’ll delve into Django’s templating language in Tutorial 3. Note that any of Django’s default admin templates can be overridden. To0 码力 | 2454 页 | 2.85 MB | 1 年前3Django 1.8.x Documentation
2.2 Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MySQL, or Oracle. To install such a database, consult the database installation the following keys in the DATABASES 'default' item to match your database connection settings: • ENGINE – Either 'django.db.backends.sqlite3', 'django.db.backends. postgresql_psycopg2', 'django.db.backends Don’t worry if you can’t make any sense of the template right now – we’ll delve into Django’s templating language in Tutorial 3. 36 Chapter 2. Getting started Django Documentation, Release 1.8.20.dev201803061810070 码力 | 1685 页 | 6.01 MB | 1 年前3Django CMS 3.0.x Documentation
use it for now, this is what your DATABASES setting should look like: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'database.sqlite'), } } Given django with templates Application can reuse cms templates by mixing cms templatetags and normal django templating language. static_placeholder Plain placeholder cannot be used in templates used by external applications provided, it will be the Page title that appears in the browser’s title bar and bookmarks, and in search engine results. Description meta tag is expected to be used to populate a tag in the document0 码力 | 180 页 | 1.56 MB | 6 月前3django cms 3.1.x Documentation
it for now, this is what your DATABASES setting should look like: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'database.sqlite'), } } django CMS with templates Application can reuse cms templates by mixing cms templatetags and normal django templating language. static_placeholder Plain placeholder cannot be used in templates used by external applications provided, it will be the Page title that appears in the browser’s title bar and bookmarks, and in search engine results. Description meta tag is expected to be used to populate a tag in the document0 码力 | 200 页 | 1.63 MB | 1 年前3Django 1.10.x Documentation
>>> Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MySQL, or Oracle. To install such a database, consult the database installation change the following keys in the DATABASES 'default' item to match your database connection settings: ENGINE – Either 'django.db.backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql' deep into individual parts of Django. There are complete guides to Django’s model system, template engine, forms framework, and much more. This is probably where you’ll want to spend most of your time;0 码力 | 2538 页 | 2.59 MB | 1 年前3Django 1.10.x Documentation
2.2 Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MySQL, or Oracle. To install such a database, consult the database installation the following keys in the DATABASES 'default' item to match your database connection settings: • ENGINE – Either 'django.db.backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql' deep into individual parts of Django. There are complete guides to Django’s model system, template engine, forms framework, and much more. This is probably where you’ll want to spend most of your time;0 码力 | 1817 页 | 6.19 MB | 1 年前3Django CMS 3.9.x Documentation
djangoproject.com/en/2.2/ref/settings/#std:setting-DATABASES]: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR , 'db.sqlite3'), } } with templates Application can reuse cms templates by mixing cms template tags and normal django templating language. static_placeholder Plain placeholder cannot be used in templates used by external applications ones that they were in turn called by. The ShowMenu.get_context() method When the Django template engine encounters the {% show_menu %} template tag, it calls the get_context() of the ShowMenu class. get_context():0 码力 | 417 页 | 1.68 MB | 6 月前3Django CMS 3.9.x Documentation
especially as it is configured by default in a new Django project’s DATABASES: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR , 'db.sqlite3'), } } Note: For deployment with templates Application can reuse cms templates by mixing cms template tags and normal django templating language. static_placeholder Plain placeholder cannot be used in templates used by external applications ones that they were in turn called by. The ShowMenu.get_context() method When the Django template engine encounters the {% show_menu %} template tag, it calls the get_context() of the ShowMenu class. get_context():0 码力 | 298 页 | 1.79 MB | 6 月前3django cms 3.3.x Documentation
com/en/dev/ref/settings/#std:setting-DATABASES] setting should look like: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'database.sqlite'), } } with templates Application can reuse cms templates by mixing cms template tags and normal django templating language. static_placeholder Plain placeholder cannot be used in templates used by external applications provided, it will be the Page title that appears in the browser’s title bar and bookmarks, and in search engine results. Description meta tag is expected to be used to populate a tag in the document0 码力 | 386 页 | 1.56 MB | 1 年前3django cms 3.6.x Documentation
with templates Application can reuse cms templates by mixing cms template tags and normal django templating language. static_placeholder Plain placeholder cannot be used in templates used by external applications ones that they were in turn called by. The ShowMenu.get_context() method When the Django template engine encounters the {% show_menu %} template tag, it calls the get_context() of the ShowMenu class. get_context(): provided, it will be the Page title that appears in the browser’s title bar and bookmarks, and in search engine results. Description meta tag is expected to be used to populate a tag in the document0 码力 | 278 页 | 1.63 MB | 1 年前3
共 88 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9