Django 4.2.x DocumentationLANGUAGE_CODE, the login screen will be displayed in the given language (if Django has appropriate translations). Enter the admin site Now, try logging in with the superuser account you created in the previous used to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=(), translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 2.2.x Documentationused to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=None, translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields 'last_name', 'bd': 'birth_date', 'pk': 'id'} >>> Person.objects.raw('SELECT * FROM some_other_table', translations=name_map) Index lookups raw() supports indexing, so if you need only the first result you can0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 4.1.x DocumentationLANGUAGE_CODE, the login screen will be displayed in the given language (if Django has appropriate translations). Enter the admin site Now, try logging in with the superuser account you created in the previous used to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=(), translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x DocumentationLANGUAGE_CODE, the login screen will be displayed in the given language (if Django has appropriate translations). Enter the admin site Now, try logging in with the superuser account you created in the previous used to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=(), translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 3.2.x DocumentationLANGUAGE_CODE, the login screen will be displayed in the given language (if Django has appropriate translations). Enter the admin site Now, try logging in with the superuser account you created in the previous used to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=(), translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 2.1.x Documentationused to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=None, translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields 'last_name', 'bd': 'birth_date', 'pk': 'id'} >>> Person.objects.raw('SELECT * FROM some_other_table', translations=name_map) Index lookups raw() supports indexing, so if you need only the first result you can0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 5.1 DocumentationLANGUAGE_CODE, the login screen will be displayed in the given language (if Django has appropriate translations). Enter the admin site Now, try logging in with the superuser account you created in the previous used to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=(), translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields0 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.1.2 DocumentationLANGUAGE_CODE, the login screen will be displayed in the given language (if Django has appropriate translations). Enter the admin site Now, try logging in with the superuser account you created in the previous used to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=(), translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields0 码力 | 3519 页 | 3.17 MB | 1 年前3
Django 3.1.x DocumentationLANGUAGE_CODE, the login screen will be displayed in the given language (if Django has appropriate translations). Enter the admin site Now, try logging in with the superuser account you created in the previous used to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=None, translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields0 码力 | 3094 页 | 3.03 MB | 1 年前3
Django 2.1.x Documentationused to perform raw SQL queries that return model instances: Manager.raw(raw_query, params=None, translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet be created correctly. Alternatively, you can map fields in the query to model fields using the translations argument to raw(). This is a dictionary mapping names of fields in the query to names of fields 'last_name', 'bd': 'birth_date', 'pk': ˓→'id'} >>> Person.objects.raw('SELECT * FROM some_other_table', translations=name_map) Index lookups raw() supports indexing, so if you need only the first result you can0 码力 | 1910 页 | 6.49 MB | 1 年前3
共 53 条
- 1
- 2
- 3
- 4
- 5
- 6













