{"id":22266550,"url":"https://github.com/pysilver/test_cacheops","last_synced_at":"2025-03-25T14:23:14.774Z","repository":{"id":25813854,"uuid":"29252910","full_name":"pySilver/test_cacheops","owner":"pySilver","description":"For the sake of https://github.com/Suor/django-cacheops/issues/125","archived":false,"fork":false,"pushed_at":"2015-01-14T16:17:45.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T13:14:16.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pySilver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-14T16:13:24.000Z","updated_at":"2015-01-14T16:17:45.000Z","dependencies_parsed_at":"2022-07-25T15:02:14.105Z","dependency_job_id":null,"html_url":"https://github.com/pySilver/test_cacheops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pySilver%2Ftest_cacheops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pySilver%2Ftest_cacheops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pySilver%2Ftest_cacheops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pySilver%2Ftest_cacheops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pySilver","download_url":"https://codeload.github.com/pySilver/test_cacheops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245477465,"owners_count":20621826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T10:19:11.627Z","updated_at":"2025-03-25T14:23:14.749Z","avatar_url":"https://github.com/pySilver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test_cacheops\nFor the sake of https://github.com/Suor/django-cacheops/issues/125\n\n*Update settings.py for a demo:*\n- Database connection\n- Redis connection (cacheops)\n\nOutput of the subsequent `./manage.py syncdb` calls:\n```\n➜  test_cacheops  ./manage.py syncdb\nSyncing...\nCreating tables ...\nCreating table django_admin_log\nCreating table auth_permission\nCreating table auth_group_permissions\nCreating table auth_group\nCreating table auth_user_groups\nCreating table auth_user_user_permissions\nCreating table auth_user\nCreating table django_content_type\nCreating table django_session\nCreating table corsheaders_corsmodel\nCreating table south_migrationhistory\n\nYou just installed Django's auth system, which means you don't have any superusers defined.\nWould you like to create one now? (yes/no): yes\nUsername (leave blank to use 'silver'):\nEmail address:\nPassword:\nPassword (again):\nSuperuser created successfully.\nInstalling custom SQL ...\nInstalling indexes ...\nInstalled 0 object(s) from 0 fixture(s)\n\nSynced:\n \u003e cacheops\n \u003e django.contrib.admin\n \u003e django.contrib.auth\n \u003e django.contrib.contenttypes\n \u003e django.contrib.sessions\n \u003e django.contrib.messages\n \u003e django.contrib.staticfiles\n \u003e corsheaders\n \u003e south\n\nNot synced (use migrations):\n - problematic\n(use ./manage.py migrate to migrate these)\n➜  test_cacheops  ./manage.py syncdb\nSyncing...\nCreating tables ...\nTraceback (most recent call last):\n  File \"./manage.py\", line 10, in \u003cmodule\u003e\n    execute_from_command_line(sys.argv)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/__init__.py\", line 399, in execute_from_command_line\n    utility.execute()\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/__init__.py\", line 392, in execute\n    self.fetch_command(subcommand).run_from_argv(self.argv)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/base.py\", line 242, in run_from_argv\n    self.execute(*args, **options.__dict__)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/base.py\", line 285, in execute\n    output = self.handle(*args, **options)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/base.py\", line 415, in handle\n    return self.handle_noargs(**options)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/south/management/commands/syncdb.py\", line 92, in handle_noargs\n    syncdb.Command().execute(**options)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/base.py\", line 285, in execute\n    output = self.handle(*args, **options)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/base.py\", line 415, in handle\n    return self.handle_noargs(**options)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/commands/syncdb.py\", line 112, in handle_noargs\n    emit_post_sync_signal(created_models, verbosity, interactive, db)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/core/management/sql.py\", line 216, in emit_post_sync_signal\n    interactive=interactive, db=db)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/dispatch/dispatcher.py\", line 185, in send\n    response = receiver(signal=self, sender=sender, **named)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py\", line 101, in create_permissions\n    auth_app.Permission.objects.using(db).bulk_create(perms)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/models/query.py\", line 359, in bulk_create\n    self._batched_insert(objs_without_pk, fields, batch_size)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/models/query.py\", line 838, in _batched_insert\n    using=self.db)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/models/manager.py\", line 232, in _insert\n    return insert_query(self.model, objs, fields, **kwargs)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/models/query.py\", line 1514, in insert_query\n    return query.get_compiler(using=using).execute_sql(return_id)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/models/sql/compiler.py\", line 903, in execute_sql\n    cursor.execute(sql, params)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/backends/util.py\", line 69, in execute\n    return super(CursorDebugWrapper, self).execute(sql, params)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/backends/util.py\", line 53, in execute\n    return self.cursor.execute(sql, params)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/utils.py\", line 99, in __exit__\n    six.reraise(dj_exc_type, dj_exc_value, traceback)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/backends/util.py\", line 53, in execute\n    return self.cursor.execute(sql, params)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 124, in execute\n    return self.cursor.execute(query, args)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/MySQLdb/cursors.py\", line 219, in execute\n    self.errorhandler(self, exc, value)\n  File \"/Users/Silver/.virtualenvs/test_cacheops/lib/python2.7/site-packages/MySQLdb/connections.py\", line 38, in defaulterrorhandler\n    raise errorvalue\ndjango.db.utils.IntegrityError: (1062, \"Duplicate entry '1-add_logentry' for key 'content_type_id'\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysilver%2Ftest_cacheops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpysilver%2Ftest_cacheops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysilver%2Ftest_cacheops/lists"}