Searched defs:django (Results 1 - 16 of 16) sorted by relevance

/external/autotest/frontend/
H A Dsetup_django_lite_environment.py10 import django.core.management namespace
12 django.core.management.call_command('syncdb', interactive=False, verbosity=0)
/external/autotest/utils/modelviz/
H A Dgenerate_schema_diagrams.py28 import django.conf namespace
29 from django.db.models import loading
30 reload(django.conf)
/external/autotest/frontend/afe/
H A Dtest.py3 from django.conf import settings
4 from django.db import connection
5 import django.test.utils namespace
15 # We use django.test.utils to run the tests against a fresh test database every
59 django.test.utils.setup_test_environment()
73 django.test.utils.teardown_test_environment()
H A Drpc_utils.py15 import django.db.utils namespace
16 import django.http namespace
104 response = django.http.HttpResponse(response_data, mimetype=content_type)
544 except django.db.utils.IntegrityError as e:
H A Dmodel_logic.py5 import django.core.exceptions namespace
6 from django.db import connection
7 from django.db import connections
8 from django.db import models as dbmodels
9 from django.db import transaction
10 from django.db.models.sql import query
11 import django.db.models.sql.where namespace
18 class ValidationError(django.core.exceptions.ValidationError):
269 django.db.models.sql.where.AND)
627 Based on validate() from django
[all...]
H A Dmodels.py5 import django.core namespace
7 from django.db import models as dbmodels, connection
8 except django.core.exceptions.ImproperlyConfigured:
13 'depend on django models.')
1171 # We use raw sql as django filters were not optimized.
/external/autotest/frontend/tko/
H A Dviews.py1 import django.http namespace
32 return django.http.HttpResponse(
H A Dcsv_encoder.py2 import django.http namespace
18 response = django.http.HttpResponse(mimetype='text/csv')
H A Dgraphing_utils.py3 import base64, os, tempfile, pickle, datetime, django.db namespace
837 cursor = django.db.connection.cursor()
/external/autotest/site_utils/
H A Dstable_version_utils.py9 import django.core.exceptions namespace
56 except django.core.exceptions.ObjectDoesNotExist:
77 except django.core.exceptions.ObjectDoesNotExist:
H A Dtest_droid.py25 import django.http # pylint: disable=unused-import namespace
32 subprocess.check_call([build_externals_path, 'chromiterepo', 'django'])
H A Dserver_manager_unittest.py10 import django.core.exceptions namespace
24 """Mock the filter call in django model.
30 """Mock the get call in django model.
111 ).AndRaise(django.core.exceptions.ObjectDoesNotExist)
H A Dserver_manager_utils.py18 import django.core.exceptions namespace
275 except django.core.exceptions.ObjectDoesNotExist:
/external/autotest/frontend/afe/feeds/
H A Dfeed.py1 import django.http namespace
2 from django.contrib.syndication import views
6 # Copied from django/contrib/syndication/views.py. The default view doesn't
10 from django.http import HttpResponse, Http404
51 server_hostname = django.http.get_host(request)
/external/autotest/database/
H A Ddatabase_connection.py21 # Under the django backend:
117 from django.db import backend, connection, transaction
118 import django.db as django_db namespace
140 'django': _DjangoBackend,
/external/autotest/scheduler/
H A Dmonitor_db.py22 import django.db namespace
395 self._log_tick_msg('Starting django.db.reset_queries')
396 django.db.reset_queries()

Completed in 283 milliseconds