├── .gitignore ├── README.md ├── django15 ├── .coverage ├── django15 │ ├── __init__.py │ ├── api.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── htmlcov │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_dateutil___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_dateutil_parser.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_dateutil_relativedelta.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_dateutil_tz.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_dateutil_tzwin.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_defusedxml___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_defusedxml_common.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_defusedxml_lxml.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_conf___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_conf_global_settings.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_conf_locale___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_conf_locale_en___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_conf_locale_en_formats.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_conf_urls___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_actions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_filters.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_forms.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_helpers.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_options.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_sites.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_templatetags___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_templatetags_admin_static.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_util.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_widgets.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_admin.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_backends.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_forms.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_hashers.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_management___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_middleware.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_signals.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_tokens.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_contenttypes___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_contenttypes_generic.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_contenttypes_management.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_contenttypes_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_contenttypes_views.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_api.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_constants.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_middleware.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_storage___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_storage_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_storage_cookie.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_storage_fallback.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_storage_session.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_backends___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_backends_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_backends_db.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_management___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_middleware.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sites___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sites_admin.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sites_management.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sites_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_finders.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_handlers.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_management___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_storage.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_templatetags___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_templatetags_staticfiles.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_views.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_cache___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_cache_backends___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_cache_backends_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_cache_backends_db.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_cache_backends_locmem.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_context_processors.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_exceptions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_images.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_locks.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_move.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_storage.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_temp.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_uploadedfile.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_uploadhandler.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_handlers___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_handlers_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_handlers_wsgi.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_mail___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_mail_message.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_mail_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_color.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_commands___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_commands_flush.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_commands_loaddata.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_commands_syncdb.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_commands_test.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_sql.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_validation.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_paginator.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_serializers___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_serializers_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_serializers_json.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_serializers_python.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_servers___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_servers_basehttp.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_signals.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_signing.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_urlresolvers.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_validators.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_wsgi.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_creation.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_signals.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_sqlite3___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_sqlite3_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_sqlite3_client.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_sqlite3_creation.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_sqlite3_introspection.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_util.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_aggregates.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_constants.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_deletion.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_expressions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_fields___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_fields_files.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_fields_proxy.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_fields_related.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_fields_subclassing.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_loading.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_manager.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_options.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_query.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_query_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_related.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_signals.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_aggregates.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_compiler.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_constants.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_datastructures.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_expressions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_query.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_subqueries.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_sql_where.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_transaction.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_dispatch___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_dispatch_dispatcher.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_dispatch_saferef.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_forms___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_forms_fields.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_forms_forms.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_forms_formsets.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_forms_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_forms_util.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_forms_widgets.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_http___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_http_cookie.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_http_multipartparser.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_http_request.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_http_response.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_http_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_middleware___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_middleware_cache.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_middleware_common.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_middleware_csrf.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_shortcuts___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_context.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_debug.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_defaultfilters.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_defaulttags.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_loader.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_loader_tags.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_loaders___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_loaders_app_directories.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_loaders_cached.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_loaders_filesystem.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_response.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_smartif.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_templatetags___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_templatetags_static.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test__doctest.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test_client.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test_html.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test_signals.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test_simple.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test_testcases.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_test_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils__os.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_baseconv.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_cache.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_crypto.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_datastructures.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_dateformat.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_dateparse.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_dates.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_datetime_safe.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_decorators.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_encoding.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_formats.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_functional.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_html.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_html_parser.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_http.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_importlib.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_ipv6.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_itercompat.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_log.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_module_loading.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_numberformat.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_regex_helper.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_safestring.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_six.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_synch.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_termcolors.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_text.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_timesince.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_timezone.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_translation___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_translation_trans_real.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_tree.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_tzinfo.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_unittest___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_unittest_util.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils_version.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views_debug.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views_decorators___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views_decorators_cache.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views_decorators_csrf.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views_decorators_debug.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views_static.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_lxml___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_lxml__elementpath.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_mimeparse.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_model_mommy___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_model_mommy_exceptions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_model_mommy_generators.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_model_mommy_mommy.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_model_mommy_timezone.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_common___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_common_exceptions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_selenium.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_chrome___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_chrome_options.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_chrome_service.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_chrome_webdriver.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_action_chains.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_alert.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_by.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_desired_capabilities.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_html5___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_html5_application_cache.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_keys.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_proxy.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_touch_actions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_firefox___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_firefox_extension_connection.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_firefox_firefox_binary.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_firefox_firefox_profile.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_firefox_webdriver.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_ie___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_ie_service.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_ie_webdriver.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_opera___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_opera_service.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_opera_webdriver.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_phantomjs___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_phantomjs_service.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_phantomjs_webdriver.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_remote___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_remote_command.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_remote_errorhandler.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_remote_remote_connection.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_remote_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_remote_webdriver.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_remote_webelement.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_six.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_db___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_db_generic.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_db_sqlite3.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_exceptions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_hacks___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_hacks_django_1_0.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_logger.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_management___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_management_commands___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_management_commands_migrate.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_management_commands_syncdb.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_management_commands_test.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_migration___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_migration_base.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_migration_migrators.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_migration_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_models.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_orm.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_signals.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_utils___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_utils_datetime_utils.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_utils_py3.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_authentication.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_authorization.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_bundle.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_cache.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_compat.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_constants.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_exceptions.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_fields.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_http.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_paginator.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_resources.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_serializers.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_test.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_throttle.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils___init__.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils_dict.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils_formatting.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils_mime.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils_timezone.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils_urls.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils_validate_jsonp.html │ ├── _Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_validation.html │ ├── coverage_html.js │ ├── django15___init__.html │ ├── django15_api.html │ ├── django15_settings.html │ ├── django15_urls.html │ ├── index.html │ ├── jquery-1.4.3.min.js │ ├── jquery.hotkeys.js │ ├── jquery.isonscreen.js │ ├── jquery.tablesorter.min.js │ ├── keybd_closed.png │ ├── keybd_open.png │ ├── manage.html │ ├── status.dat │ ├── style.css │ ├── whatever___init__.html │ ├── whatever_admin.html │ ├── whatever_forms.html │ ├── whatever_models.html │ ├── whatever_tests.html │ ├── whatever_views.html │ ├── whatevs___init__.html │ ├── whatevs_admin.html │ ├── whatevs_models.html │ └── whatevs_tests.html ├── manage.py ├── static │ └── assets │ │ ├── js │ │ ├── ajax.js │ │ ├── jquery-2.0.0.min.js │ │ └── postal.pdf │ │ └── uploaded_files │ │ ├── 1374775471_19_shittycode.png │ │ └── 1374775501_82_shittycode.png ├── templates │ ├── add.html │ ├── base.html │ └── index.html ├── test.db ├── whatever │ ├── __init__.py │ ├── admin.py │ ├── forms.py │ ├── models.py │ ├── tests.py │ └── views.py └── whatevs │ ├── __init__.py │ ├── admin.py │ ├── models.py │ ├── tests.py │ └── views.py └── requirements.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .Python 2 | env 3 | bin 4 | lib 5 | include 6 | .DS_Store 7 | .pyc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Testing in Django: Best practices and examples 2 | -------- 3 | 4 | You've stumbled across an example project that details best practices and examples with regard to creating unit and integration tests in Django. 5 | 6 | The project is based on **Django 1.5**. 7 | 8 | ### Blog Posts 9 | 10 | 1. [Best practices and examples](http://www.realpython.com/blog/python/testing-in-django-part-1-best-practices-and-examples/) 11 | 12 | ### To do 13 | 14 | 1. Better docs 15 | 2. Detail API tests 16 | 17 | 18 | -------------------------------------------------------------------------------- /django15/.coverage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/.coverage -------------------------------------------------------------------------------- /django15/django15/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/django15/__init__.py -------------------------------------------------------------------------------- /django15/django15/api.py: -------------------------------------------------------------------------------- 1 | from tastypie.resources import ModelResource 2 | from tastypie.constants import ALL 3 | from whatever.models import Whatever 4 | 5 | class WhateverResource(ModelResource): 6 | class Meta: 7 | queryset = Whatever.objects.all() 8 | resource_name = 'whatever' 9 | filtering = { "title" : ALL } -------------------------------------------------------------------------------- /django15/django15/settings.py: -------------------------------------------------------------------------------- 1 | # Django settings for django15 project. 2 | 3 | import os 4 | 5 | PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__)) 6 | SITE_ROOT = os.path.dirname(PROJECT_ROOT) 7 | 8 | DEBUG = True 9 | TEMPLATE_DEBUG = DEBUG 10 | 11 | ADMINS = ( 12 | # ('Your Name', 'your_email@example.com'), 13 | ) 14 | 15 | MANAGERS = ADMINS 16 | 17 | DATABASES = { 18 | 'default': { 19 | 'ENGINE': 'django.db.backends.sqlite3', 20 | 'NAME': 'test.db', 21 | } 22 | } 23 | 24 | # Hosts/domain names that are valid for this site; required if DEBUG is False 25 | # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts 26 | ALLOWED_HOSTS = [] 27 | 28 | # Local time zone for this installation. Choices can be found here: 29 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name 30 | # although not all choices may be available on all operating systems. 31 | # In a Windows environment this must be set to your system time zone. 32 | TIME_ZONE = 'America/Chicago' 33 | 34 | # Language code for this installation. All choices can be found here: 35 | # http://www.i18nguy.com/unicode/language-identifiers.html 36 | LANGUAGE_CODE = 'en-us' 37 | 38 | SITE_ID = 1 39 | 40 | # If you set this to False, Django will make some optimizations so as not 41 | # to load the internationalization machinery. 42 | USE_I18N = True 43 | 44 | # If you set this to False, Django will not format dates, numbers and 45 | # calendars according to the current locale. 46 | USE_L10N = True 47 | 48 | # If you set this to False, Django will not use timezone-aware datetimes. 49 | USE_TZ = True 50 | 51 | # Absolute filesystem path to the directory that will hold user-uploaded files. 52 | # Example: "/var/www/example.com/media/" 53 | MEDIA_ROOT = (os.path.join(SITE_ROOT, 'static')) 54 | 55 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a 56 | # trailing slash. 57 | # Examples: "http://example.com/media/", "http://media.example.com/" 58 | MEDIA_URL = '' 59 | 60 | # Absolute path to the directory static files should be collected to. 61 | # Don't put anything in this directory yourself; store your static files 62 | # in apps' "static/" subdirectories and in STATICFILES_DIRS. 63 | # Example: "/var/www/example.com/static/" 64 | STATIC_ROOT = '' 65 | 66 | # URL prefix for static files. 67 | # Example: "http://example.com/static/", "http://static.example.com/" 68 | STATIC_URL = '/static/' 69 | 70 | # Additional locations of static files 71 | STATICFILES_DIRS = (os.path.join(SITE_ROOT, 'static'),) 72 | 73 | # List of finder classes that know how to find static files in 74 | # various locations. 75 | STATICFILES_FINDERS = ( 76 | 'django.contrib.staticfiles.finders.FileSystemFinder', 77 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 78 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder', 79 | ) 80 | 81 | # Make this unique, and don't share it with anybody. 82 | SECRET_KEY = '77pt_o@5xmbkv=hbfw4gxmj)jwcxb9k^4rljjf1&d(86j-ub=u' 83 | 84 | # List of callables that know how to import templates from various sources. 85 | TEMPLATE_LOADERS = ( 86 | 'django.template.loaders.filesystem.Loader', 87 | 'django.template.loaders.app_directories.Loader', 88 | # 'django.template.loaders.eggs.Loader', 89 | ) 90 | 91 | MIDDLEWARE_CLASSES = ( 92 | 'django.middleware.common.CommonMiddleware', 93 | 'django.contrib.sessions.middleware.SessionMiddleware', 94 | 'django.middleware.csrf.CsrfViewMiddleware', 95 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 96 | 'django.contrib.messages.middleware.MessageMiddleware', 97 | #'debug_toolbar.middleware.DebugToolbarMiddleware', 98 | # Uncomment the next line for simple clickjacking protection: 99 | # 'django.middleware.clickjacking.XFrameOptionsMiddleware', 100 | ) 101 | 102 | ROOT_URLCONF = 'django15.urls' 103 | 104 | # Python dotted path to the WSGI application used by Django's runserver. 105 | WSGI_APPLICATION = 'django15.wsgi.application' 106 | 107 | TEMPLATE_DIRS = (os.path.join(SITE_ROOT, 'templates'),) 108 | 109 | INSTALLED_APPS = ( 110 | 'django.contrib.auth', 111 | 'django.contrib.contenttypes', 112 | 'django.contrib.sessions', 113 | 'django.contrib.sites', 114 | 'django.contrib.messages', 115 | 'django.contrib.staticfiles', 116 | 'django.contrib.admin', 117 | 'south', 118 | 'whatever', 119 | 'coverage', 120 | 'whatevs' 121 | ) 122 | 123 | # A sample logging configuration. The only tangible logging 124 | # performed by this configuration is to send an email to 125 | # the site admins on every HTTP 500 error when DEBUG=False. 126 | # See http://docs.djangoproject.com/en/dev/topics/logging for 127 | # more details on how to customize your logging configuration. 128 | LOGGING = { 129 | 'version': 1, 130 | 'disable_existing_loggers': False, 131 | 'filters': { 132 | 'require_debug_false': { 133 | '()': 'django.utils.log.RequireDebugFalse' 134 | } 135 | }, 136 | 'handlers': { 137 | 'mail_admins': { 138 | 'level': 'ERROR', 139 | 'filters': ['require_debug_false'], 140 | 'class': 'django.utils.log.AdminEmailHandler' 141 | } 142 | }, 143 | 'loggers': { 144 | 'django.request': { 145 | 'handlers': ['mail_admins'], 146 | 'level': 'ERROR', 147 | 'propagate': True, 148 | }, 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /django15/django15/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls import patterns, include, url 2 | from django.contrib import admin 3 | from api import WhateverResource 4 | from whatever import views 5 | 6 | whatever_resource = WhateverResource() 7 | admin.autodiscover() 8 | 9 | urlpatterns = patterns('', 10 | url(r'^admin/', include(admin.site.urls)), 11 | url(r'^api/', include(whatever_resource.urls)), 12 | url(r'^$', 'whatever.views.whatever'), 13 | url(r'^add/$', 'whatever.views.add'), 14 | ) 15 | -------------------------------------------------------------------------------- /django15/django15/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for django15 project. 3 | 4 | This module contains the WSGI application used by Django's development server 5 | and any production WSGI deployments. It should expose a module-level variable 6 | named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover 7 | this application via the ``WSGI_APPLICATION`` setting. 8 | 9 | Usually you will have the standard Django WSGI application here, but it also 10 | might make sense to replace the whole Django WSGI application with a custom one 11 | that later delegates to the Django one. For example, you could introduce WSGI 12 | middleware here, or combine a Django application with an application of another 13 | framework. 14 | 15 | """ 16 | import os 17 | 18 | # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks 19 | # if running multiple sites in the same mod_wsgi process. To fix this, use 20 | # mod_wsgi daemon mode with each site in its own daemon process, or use 21 | # os.environ["DJANGO_SETTINGS_MODULE"] = "django15.settings" 22 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django15.settings") 23 | 24 | # This application object is used by any WSGI server configured to use this 25 | # file. This includes Django's development server, if the WSGI_APPLICATION 26 | # setting points here. 27 | from django.core.wsgi import get_wsgi_application 28 | application = get_wsgi_application() 29 | 30 | # Apply WSGI middleware here. 31 | # from helloworld.wsgi import HelloWorldApplication 32 | # application = HelloWorldApplication(application) 33 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_dateutil___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/dateutil/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 76 | 89 | 90 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 |

9

73 |

10

74 | 75 |
77 |

# -*- coding: utf-8 -*- 

78 |

""" 

79 |

Copyright (c) 2003-2010  Gustavo Niemeyer <gustavo@niemeyer.net> 

80 |

 

81 |

This module offers extensions to the standard Python 

82 |

datetime module. 

83 |

""" 

84 |

__author__ = "Tomi Pieviläinen <tomi.pievilainen@iki.fi>" 

85 |

__license__ = "Simplified BSD" 

86 |

__version__ = "2.1" 

87 | 88 |
91 |
92 | 93 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 73 | 83 | 84 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 | 72 |
74 |

VERSION = (1, 5, 0, 'final', 0) 

75 |

 

76 |

def get_version(*args, **kwargs): 

77 |

    # Don't litter django/__init__.py with all the get_version stuff. 

78 |

    # Only import if it's actually called. 

79 |

    from django.utils.version import get_version 

80 |

    return get_version(*args, **kwargs) 

81 | 82 |
85 |
86 | 87 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_conf_locale_en___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/conf/locale/en/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_admin_templatetags___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/admin/templatetags/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_auth_signals.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/auth/signals: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 71 | 79 | 80 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 | 70 |
72 |

from django.dispatch import Signal 

73 |

 

74 |

user_logged_in = Signal(providing_args=['request', 'user']) 

75 |

user_login_failed = Signal(providing_args=['credentials']) 

76 |

user_logged_out = Signal(providing_args=['request', 'user']) 

77 | 78 |
81 |
82 | 83 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_contenttypes___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/contenttypes/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/messages/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 70 | 77 | 78 |
64 |

1

65 |

2

66 |

3

67 |

4

68 | 69 |
71 |

from __future__ import absolute_import 

72 |

 

73 |

from django.contrib.messages.api import * 

74 |

from django.contrib.messages.constants import * 

75 | 76 |
79 |
80 | 81 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_messages_models.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/messages/models: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 67 | 71 | 72 |
64 |

1

65 | 66 |
68 |

# Models module required so tests are discovered. 

69 | 70 |
73 |
74 | 75 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/sessions/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_backends___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/sessions/backends/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sessions_management___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/sessions/management/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_sites___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/sites/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/staticfiles/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_management___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/staticfiles/management/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_models.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/staticfiles/models: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_contrib_staticfiles_templatetags___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/contrib/staticfiles/templatetags/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/core/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_cache_backends___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/core/cache/backends/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_files___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/core/files/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 67 | 71 | 72 |
64 |

1

65 | 66 |
68 |

from django.core.files.base import File 

69 | 70 |
73 |
74 | 75 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_handlers___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/core/handlers/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_management_commands___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/core/management/commands/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_servers___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/core/servers/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_core_signals.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/core/signals: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 71 | 79 | 80 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 | 70 |
72 |

from django.dispatch import Signal 

73 |

 

74 |

request_started = Signal() 

75 |

request_finished = Signal() 

76 |

got_request_exception = Signal(providing_args=["request"]) 

77 | 78 |
81 |
82 | 83 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_signals.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/db/backends/signals: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 69 | 75 | 76 |
64 |

1

65 |

2

66 |

3

67 | 68 |
70 |

from django.dispatch import Signal 

71 |

 

72 |

connection_created = Signal(providing_args=["connection"]) 

73 | 74 |
77 |
78 | 79 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_backends_sqlite3___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/db/backends/sqlite3/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_db_models_constants.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/db/models/constants: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 73 | 83 | 84 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 | 72 |
74 |

""" 

75 |

Constants used across the ORM in general. 

76 |

""" 

77 |

 

78 |

# Separator used to split filter strings apart. 

79 |

LOOKUP_SEP = '__' 

80 |

 

81 | 82 |
85 |
86 | 87 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_dispatch___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/dispatch/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 75 | 87 | 88 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 |

9

73 | 74 |
76 |

"""Multi-consumer multi-producer dispatching mechanism 

77 |

 

78 |

Originally based on pydispatch (BSD) http://pypi.python.org/pypi/PyDispatcher/2.0.1 

79 |

See license.txt for original license. 

80 |

 

81 |

Heavily modified for Django's purposes. 

82 |

""" 

83 |

 

84 |

from django.dispatch.dispatcher import Signal, receiver 

85 | 86 |
89 |
90 | 91 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_middleware___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/middleware/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_template_loaders___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/template/loaders/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_templatetags___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/templatetags/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_utils___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/utils/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/views/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_django_views_decorators___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/django/views/decorators/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_model_mommy___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/model_mommy/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 71 | 79 | 80 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 | 70 |
72 |

#coding:utf-8 

73 |

__version__ = '1.0' 

74 |

__title__ = 'model_mommy' 

75 |

__author__ = 'Vanderson Mota' 

76 |

__license__ = 'Apache 2.0' 

77 | 78 |
81 |
82 | 83 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_common_html5___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/selenium/webdriver/common/html5/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_selenium_webdriver_phantomjs___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/selenium/webdriver/phantomjs/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 79 | 95 | 96 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 |

9

73 |

10

74 |

11

75 |

12

76 |

13

77 | 78 |
80 |

# Copyright 2012 Software Freedom Conservancy 

81 |

# 

82 |

# Licensed under the Apache License, Version 2.0 (the "License"); 

83 |

# you may not use this file except in compliance with the License. 

84 |

# You may obtain a copy of the License at 

85 |

# 

86 |

#     http://www.apache.org/licenses/LICENSE-2.0 

87 |

# 

88 |

# Unless required by applicable law or agreed to in writing, software 

89 |

# distributed under the License is distributed on an "AS IS" BASIS, 

90 |

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

91 |

# See the License for the specific language governing permissions and 

92 |

# limitations under the License. 

93 | 94 |
97 |
98 | 99 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/south/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 75 | 87 | 88 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 |

9

73 | 74 |
76 |

""" 

77 |

South - Useable migrations for Django apps 

78 |

""" 

79 |

 

80 |

__version__ = "0.8.1" 

81 |

__authors__ = [ 

82 |

    "Andrew Godwin <andrew@aeracode.org>", 

83 |

    "Andy McCurdy <andy@andymccurdy.com>" 

84 |

] 

85 | 86 |
89 |
90 | 91 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_hacks___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/south/hacks/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 76 | 89 | 90 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 |

9

73 |

10

74 | 75 |
77 |

""" 

78 |

The hacks module encapsulates all the horrible things that play with Django 

79 |

internals in one, evil place. 

80 |

This top file will automagically expose the correct Hacks class. 

81 |

""" 

82 |

 

83 |

# Currently, these work for 1.0 and 1.1. 

84 |

from south.hacks.django_1_0 import Hacks 

85 |

 

86 |

hacks = Hacks() 

87 | 88 |
91 |
92 | 93 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_south_management___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/south/management/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/tastypie/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 68 | 73 | 74 |
64 |

1

65 |

2

66 | 67 |
69 |

__author__ = 'Daniel Lindsley, Cody Soyland, Matt Croydon, Josh Bohde & Issac Kelly' 

70 |

__version__ = (0, 9, 15) 

71 | 72 |
75 |
76 | 77 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_constants.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/tastypie/constants: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 70 | 77 | 78 |
64 |

1

65 |

2

66 |

3

67 |

4

68 | 69 |
71 |

# Enable all basic ORM filters but do not allow filtering across relationships. 

72 |

ALL = 1 

73 |

# Enable all ORM filters, including across relationships 

74 |

ALL_WITH_RELATIONS = 2 

75 | 76 |
79 |
80 | 81 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/tastypie/utils/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 71 | 79 | 80 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 | 70 |
72 |

from tastypie.utils.dict import dict_strip_unicode_keys 

73 |

from tastypie.utils.formatting import mk_datetime, format_datetime, format_date, format_time 

74 |

from tastypie.utils.urls import trailing_slash 

75 |

from tastypie.utils.validate_jsonp import is_valid_jsonp_callback_value 

76 |

from tastypie.utils.timezone import now, make_aware, make_naive, aware_date, aware_datetime 

77 | 78 |
81 |
82 | 83 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /django15/htmlcov/_Users_michaelherman_Desktop_django-tastypie-tutorial_env_lib_python2_7_site-packages_tastypie_utils_urls.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for /Users/michaelherman/Desktop/django-tastypie-tutorial/env/lib/python2.7/site-packages/tastypie/utils/urls: 80% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 74 | 85 | 86 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 | 73 |
75 |

from django.conf import settings 

76 |

 

77 |

 

78 |

def trailing_slash(): 

79 |

    if getattr(settings, 'TASTYPIE_ALLOW_MISSING_SLASH', False): 

80 |

        return '/?' 

81 |

 

82 |

    return '/' 

83 | 84 |
87 |
88 | 89 | 96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /django15/htmlcov/django15___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for django15/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/django15_api.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for django15/api: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 75 | 87 | 88 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 |

9

73 | 74 |
76 |

from tastypie.resources import ModelResource 

77 |

from tastypie.constants import ALL 

78 |

from whatever.models import Whatever 

79 |

 

80 |

class WhateverResource(ModelResource): 

81 |

        class Meta: 

82 |

                queryset = Whatever.objects.all() 

83 |

                resource_name = 'whatever' 

84 |

                filtering = { "title" : ALL } 

85 | 86 |
89 |
90 | 91 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /django15/htmlcov/jquery.hotkeys.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Hotkeys Plugin 3 | * Copyright 2010, John Resig 4 | * Dual licensed under the MIT or GPL Version 2 licenses. 5 | * 6 | * Based upon the plugin by Tzury Bar Yochay: 7 | * http://github.com/tzuryby/hotkeys 8 | * 9 | * Original idea by: 10 | * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ 11 | */ 12 | 13 | (function(jQuery){ 14 | 15 | jQuery.hotkeys = { 16 | version: "0.8", 17 | 18 | specialKeys: { 19 | 8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause", 20 | 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", 21 | 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", 22 | 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7", 23 | 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", 24 | 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", 25 | 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 191: "/", 224: "meta" 26 | }, 27 | 28 | shiftNums: { 29 | "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", 30 | "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", 31 | ".": ">", "/": "?", "\\": "|" 32 | } 33 | }; 34 | 35 | function keyHandler( handleObj ) { 36 | // Only care when a possible input has been specified 37 | if ( typeof handleObj.data !== "string" ) { 38 | return; 39 | } 40 | 41 | var origHandler = handleObj.handler, 42 | keys = handleObj.data.toLowerCase().split(" "); 43 | 44 | handleObj.handler = function( event ) { 45 | // Don't fire in text-accepting inputs that we didn't directly bind to 46 | if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) || 47 | event.target.type === "text") ) { 48 | return; 49 | } 50 | 51 | // Keypress represents characters, not special keys 52 | var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ], 53 | character = String.fromCharCode( event.which ).toLowerCase(), 54 | key, modif = "", possible = {}; 55 | 56 | // check combinations (alt|ctrl|shift+anything) 57 | if ( event.altKey && special !== "alt" ) { 58 | modif += "alt+"; 59 | } 60 | 61 | if ( event.ctrlKey && special !== "ctrl" ) { 62 | modif += "ctrl+"; 63 | } 64 | 65 | // TODO: Need to make sure this works consistently across platforms 66 | if ( event.metaKey && !event.ctrlKey && special !== "meta" ) { 67 | modif += "meta+"; 68 | } 69 | 70 | if ( event.shiftKey && special !== "shift" ) { 71 | modif += "shift+"; 72 | } 73 | 74 | if ( special ) { 75 | possible[ modif + special ] = true; 76 | 77 | } else { 78 | possible[ modif + character ] = true; 79 | possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true; 80 | 81 | // "$" can be triggered as "Shift+4" or "Shift+$" or just "$" 82 | if ( modif === "shift+" ) { 83 | possible[ jQuery.hotkeys.shiftNums[ character ] ] = true; 84 | } 85 | } 86 | 87 | for ( var i = 0, l = keys.length; i < l; i++ ) { 88 | if ( possible[ keys[i] ] ) { 89 | return origHandler.apply( this, arguments ); 90 | } 91 | } 92 | }; 93 | } 94 | 95 | jQuery.each([ "keydown", "keyup", "keypress" ], function() { 96 | jQuery.event.special[ this ] = { add: keyHandler }; 97 | }); 98 | 99 | })( jQuery ); 100 | -------------------------------------------------------------------------------- /django15/htmlcov/jquery.isonscreen.js: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 2 | * @author Laurence Wheway 3 | * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 4 | * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 5 | * 6 | * @version 1.2.0 7 | */ 8 | (function($) { 9 | jQuery.extend({ 10 | isOnScreen: function(box, container) { 11 | //ensure numbers come in as intgers (not strings) and remove 'px' is it's there 12 | for(var i in box){box[i] = parseFloat(box[i])}; 13 | for(var i in container){container[i] = parseFloat(container[i])}; 14 | 15 | if(!container){ 16 | container = { 17 | left: $(window).scrollLeft(), 18 | top: $(window).scrollTop(), 19 | width: $(window).width(), 20 | height: $(window).height() 21 | } 22 | } 23 | 24 | if( box.left+box.width-container.left > 0 && 25 | box.left < container.width+container.left && 26 | box.top+box.height-container.top > 0 && 27 | box.top < container.height+container.top 28 | ) return true; 29 | return false; 30 | } 31 | }) 32 | 33 | 34 | jQuery.fn.isOnScreen = function (container) { 35 | for(var i in container){container[i] = parseFloat(container[i])}; 36 | 37 | if(!container){ 38 | container = { 39 | left: $(window).scrollLeft(), 40 | top: $(window).scrollTop(), 41 | width: $(window).width(), 42 | height: $(window).height() 43 | } 44 | } 45 | 46 | if( $(this).offset().left+$(this).width()-container.left > 0 && 47 | $(this).offset().left < container.width+container.left && 48 | $(this).offset().top+$(this).height()-container.top > 0 && 49 | $(this).offset().top < container.height+container.top 50 | ) return true; 51 | return false; 52 | } 53 | })(jQuery); 54 | -------------------------------------------------------------------------------- /django15/htmlcov/keybd_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/htmlcov/keybd_closed.png -------------------------------------------------------------------------------- /django15/htmlcov/keybd_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/htmlcov/keybd_open.png -------------------------------------------------------------------------------- /django15/htmlcov/manage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for manage: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 76 | 89 | 90 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 |

9

73 |

10

74 | 75 |
77 |

#!/usr/bin/env python 

78 |

import os 

79 |

import sys 

80 |

 

81 |

if __name__ == "__main__": 

82 |

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django15.settings") 

83 |

 

84 |

    from django.core.management import execute_from_command_line 

85 |

 

86 |

    execute_from_command_line(sys.argv) 

87 | 88 |
91 |
92 | 93 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /django15/htmlcov/whatever___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for whatever/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/whatever_admin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for whatever/admin: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 70 | 77 | 78 |
64 |

1

65 |

2

66 |

3

67 |

4

68 | 69 |
71 |

from django.contrib import admin 

72 |

from whatever.models import Whatever 

73 |

 

74 |

admin.site.register(Whatever) 

75 | 76 |
79 |
80 | 81 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /django15/htmlcov/whatever_forms.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for whatever/forms: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 74 | 85 | 86 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 |

6

70 |

7

71 |

8

72 | 73 |
75 |

from django import forms 

76 |

from models import Whatever 

77 |

 

78 |

class WhateverForm(forms.ModelForm): 

79 |

 

80 |

        class Meta: 

81 |

                model = Whatever 

82 |

                fields = ('title', 'body') 

83 | 84 |
87 |
88 | 89 | 96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /django15/htmlcov/whatevs___init__.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for whatevs/__init__: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 66 | 69 | 70 |
64 | 65 | 67 | 68 |
71 |
72 | 73 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /django15/htmlcov/whatevs_admin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Coverage for whatevs/admin: 100% 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 36 | 37 |
38 | 39 |

Hot-keys on this page

40 |
41 |

42 | r 43 | m 44 | x 45 | p   toggle line displays 46 |

47 |

48 | j 49 | k   next/prev highlighted chunk 50 |

51 |

52 | 0   (zero) top of page 53 |

54 |

55 | 1   (one) first highlighted chunk 56 |

57 |
58 |
59 | 60 |
61 | 62 | 63 | 71 | 79 | 80 |
64 |

1

65 |

2

66 |

3

67 |

4

68 |

5

69 | 70 |
72 |

from django.contrib import admin 

73 |

from whatevs.models import Forum, Post 

74 |

 

75 |

admin.site.register(Forum) 

76 |

admin.site.register(Post) 

77 | 78 |
81 |
82 | 83 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /django15/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django15.settings") 7 | 8 | from django.core.management import execute_from_command_line 9 | 10 | execute_from_command_line(sys.argv) 11 | -------------------------------------------------------------------------------- /django15/static/assets/js/ajax.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | 3 | $('#search').keyup(function() { 4 | 5 | $.ajax({ 6 | type: "POST", 7 | url: "/articles/search/", 8 | data: { 9 | 'search_text' : $('#search').val(), 10 | 'csrfmiddlewaretoken' : $("input[name=csrfmiddlewaretoken]").val() 11 | }, 12 | success: searchSuccess, 13 | dataType: 'html' 14 | }); 15 | 16 | }); 17 | 18 | }); 19 | 20 | function searchSuccess(data, textStatus, jqXHR) 21 | { 22 | $('#search-results').html(data); 23 | } -------------------------------------------------------------------------------- /django15/static/assets/js/postal.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/static/assets/js/postal.pdf -------------------------------------------------------------------------------- /django15/static/assets/uploaded_files/1374775471_19_shittycode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/static/assets/uploaded_files/1374775471_19_shittycode.png -------------------------------------------------------------------------------- /django15/static/assets/uploaded_files/1374775501_82_shittycode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/static/assets/uploaded_files/1374775501_82_shittycode.png -------------------------------------------------------------------------------- /django15/templates/add.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block sidebar %} 4 |
  • Cancel
  • 5 | {% endblock %} 6 | 7 | {% block content %} 8 | 9 |
    {% csrf_token %} 10 | 13 | 14 | 15 |
    16 | 17 | {% endblock %} -------------------------------------------------------------------------------- /django15/templates/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% block title %}My Base Template{% endblock %} 6 | 7 | 8 | 9 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | {% block extrahead %} 28 | {% endblock %} 29 | 35 | 36 | 37 | 38 | 39 | 58 | 59 |
    60 | {% if messages %} 61 | {% for message in messages %} 62 |
    63 | × 64 | {{message}} 65 |
    66 | {% endfor %} 67 | {% endif %} 68 |
    69 | 70 |
    71 | {% block content %} 72 | {% endblock %} 73 |
    74 | 75 | -------------------------------------------------------------------------------- /django15/templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block sidebar %} 4 |
  • Home
  • 5 |
  • Add
  • 6 | {% endblock %} 7 | 8 | {% block content %} 9 | 10 | {% if whatever.count > 0 %} 11 | {% for w in whatever %} 12 |
    13 |

    {{ w.title }}

    14 |

    {{ w.body }}

    15 |
    16 | {% endfor %} 17 | {% else %} 18 |

    Nothing.

    19 | {% endif %} 20 | 21 | {% endblock %} -------------------------------------------------------------------------------- /django15/test.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/test.db -------------------------------------------------------------------------------- /django15/whatever/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/whatever/__init__.py -------------------------------------------------------------------------------- /django15/whatever/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from whatever.models import Whatever 3 | 4 | admin.site.register(Whatever) -------------------------------------------------------------------------------- /django15/whatever/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from models import Whatever 3 | 4 | class WhateverForm(forms.ModelForm): 5 | 6 | class Meta: 7 | model = Whatever 8 | fields = ('title', 'body') -------------------------------------------------------------------------------- /django15/whatever/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | class Whatever(models.Model): 4 | title = models.CharField(max_length=200) 5 | body = models.TextField() 6 | created_at = models.DateTimeField(auto_now_add=True) 7 | 8 | def __unicode__(self): 9 | return self.title 10 | -------------------------------------------------------------------------------- /django15/whatever/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | from whatever.models import Whatever 3 | from django.utils import timezone 4 | from django.core.urlresolvers import reverse 5 | from whatever.forms import WhateverForm 6 | 7 | # models test 8 | 9 | class WhateverTest(TestCase): 10 | 11 | def create_whatever(self, title="only a test", body="yes, this is only a test"): 12 | return Whatever.objects.create(title=title, body=body, created_at=timezone.now()) 13 | 14 | def test_whatever_creation(self): 15 | w = self.create_whatever() 16 | self.assertTrue(isinstance(w, Whatever)) 17 | self.assertEqual(w.__unicode__(), w.title) 18 | 19 | 20 | # views (uses reverse) 21 | 22 | def test_whatever_list_view(self): 23 | w = self.create_whatever() 24 | url = reverse("whatever.views.whatever") 25 | resp = self.client.get(url) 26 | 27 | self.assertEqual(resp.status_code, 200) 28 | self.assertIn(w.title, resp.content) 29 | 30 | # forms 31 | 32 | def test_valid_form(self): 33 | w = Whatever.objects.create(title='Foo', body='Bar') 34 | data = {'title': w.title, 'body': w.body,} 35 | form = WhateverForm(data=data) 36 | self.assertTrue(form.is_valid()) 37 | 38 | def test_invalid_form(self): 39 | w = Whatever.objects.create(title='Foo', body='') 40 | data = {'title': w.title, 'body': w.body,} 41 | form = WhateverForm(data=data) 42 | self.assertFalse(form.is_valid()) 43 | 44 | # views (uses selenium) 45 | 46 | import unittest 47 | from selenium import webdriver 48 | 49 | class TestSignup(unittest.TestCase): 50 | 51 | def setUp(self): 52 | self.driver = webdriver.Firefox() 53 | 54 | def test_signup_fire(self): 55 | self.driver.get("http://localhost:8000/add/") 56 | self.driver.find_element_by_id('id_title').send_keys("test title") 57 | self.driver.find_element_by_id('id_body').send_keys("test body") 58 | self.driver.find_element_by_id('submit').click() 59 | self.assertIn("http://localhost:8000/", self.driver.current_url) 60 | 61 | def tearDown(self): 62 | self.driver.quit 63 | 64 | if __name__ == '__main__': 65 | unittest.main() 66 | 67 | # api 68 | 69 | from tastypie.test import ResourceTestCase 70 | 71 | class EntryResourceTest(ResourceTestCase): 72 | 73 | def test_get_api_json(self): 74 | resp = self.api_client.get('/api/whatever/', format='json') 75 | self.assertValidJSONResponse(resp) 76 | 77 | def test_get_api_xml(self): 78 | resp = self.api_client.get('/api/whatever/', format='xml') 79 | self.assertValidXMLResponse(resp) 80 | 81 | # model mommy 82 | 83 | from model_mommy import mommy 84 | 85 | class WhateverTestMommy(TestCase): 86 | 87 | def test_whatever_creation_mommy(self): 88 | what = mommy.make(Whatever) 89 | self.assertTrue(isinstance(what, Whatever)) 90 | self.assertEqual(what.__unicode__(), what.title) 91 | 92 | -------------------------------------------------------------------------------- /django15/whatever/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render_to_response 2 | from whatever.models import Whatever 3 | from django.core.context_processors import csrf 4 | from django.utils import timezone 5 | from whatever.forms import WhateverForm 6 | from django.http import HttpResponse, HttpResponseRedirect 7 | 8 | def whatever(request): 9 | args = {} 10 | args.update(csrf(request)) 11 | args['whatever'] = Whatever.objects.all() 12 | 13 | return render_to_response('index.html', args) 14 | 15 | def add(request): 16 | if request.POST: 17 | form = WhateverForm(request.POST, request.FILES) 18 | if form.is_valid(): 19 | form.save() 20 | return HttpResponseRedirect('/') 21 | else: 22 | form = WhateverForm() 23 | 24 | args = {} 25 | args.update(csrf(request)) 26 | args['form'] = form 27 | return render_to_response('add.html', args) -------------------------------------------------------------------------------- /django15/whatevs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/testing-in-django/a74834454be23223c15346c64c2f56d28f03edfe/django15/whatevs/__init__.py -------------------------------------------------------------------------------- /django15/whatevs/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from whatevs.models import Forum, Thread 3 | 4 | admin.site.register(Forum) 5 | admin.site.register(Thread) -------------------------------------------------------------------------------- /django15/whatevs/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.contrib.auth.models import User 3 | from django.contrib import admin 4 | 5 | class Forum(models.Model): 6 | title = models.CharField(max_length=100) 7 | 8 | def __unicode__(self): 9 | return self.title 10 | 11 | class Thread(models.Model): 12 | title = models.CharField(max_length=100) 13 | created = models.DateTimeField(auto_now_add=True) 14 | creator = models.ForeignKey(User, blank=True, null=True) 15 | forum = models.ForeignKey(Forum) 16 | body = models.TextField(max_length=10000) 17 | 18 | def __unicode__(self): 19 | return unicode(self.forum) + " - " + self.title 20 | -------------------------------------------------------------------------------- /django15/whatevs/tests.py: -------------------------------------------------------------------------------- 1 | from model_mommy import mommy 2 | from django.test import TestCase 3 | from whatevs.models import Forum, Thread 4 | 5 | class WhateverTestMommy(TestCase): 6 | 7 | def test_forum_creation_mommy(self): 8 | new_forum = mommy.make('whatevs.Forum') 9 | new_thread = mommy.make('whatevs.Thread') 10 | self.assertTrue(isinstance(new_forum, Forum)) 11 | self.assertTrue(isinstance(new_thread, Thread)) 12 | self.assertEqual(new_forum.__unicode__(), new_forum.title) 13 | self.assertEqual(new_thread.__unicode__(), (str(new_thread.forum) + " - " + str(new_thread.title))) 14 | -------------------------------------------------------------------------------- /django15/whatevs/views.py: -------------------------------------------------------------------------------- 1 | # Create your views here. 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.5 2 | South==0.8.1 3 | coverage==3.6 4 | defusedxml==0.4.1 5 | django-tastypie==0.9.15 6 | lxml==3.2.3 7 | mimeparse==0.1.3 8 | model-mommy==1.0 9 | python-dateutil==2.1 10 | selenium==2.33.0 11 | six==1.3.0 --------------------------------------------------------------------------------