{"id":22819974,"url":"https://github.com/lime-green/django-spring","last_synced_at":"2025-04-23T00:23:14.619Z","repository":{"id":57422112,"uuid":"221135537","full_name":"lime-green/django-spring","owner":"lime-green","description":"Django app preloader for quick testing!","archived":false,"fork":false,"pushed_at":"2020-06-16T19:23:48.000Z","size":61,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T16:39:32.030Z","etag":null,"topics":["django","python","testing"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/django-spring/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lime-green.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T05:17:04.000Z","updated_at":"2024-08-10T20:47:59.000Z","dependencies_parsed_at":"2022-09-06T14:01:36.077Z","dependency_job_id":null,"html_url":"https://github.com/lime-green/django-spring","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/lime-green%2Fdjango-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lime-green%2Fdjango-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lime-green%2Fdjango-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lime-green%2Fdjango-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lime-green","download_url":"https://codeload.github.com/lime-green/django-spring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250344897,"owners_count":21415209,"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":["django","python","testing"],"created_at":"2024-12-12T15:15:25.969Z","updated_at":"2025-04-23T00:23:14.587Z","avatar_url":"https://github.com/lime-green.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Spring\n\n### Installing\n```bash\npip install django-spring --upgrade\n```\n\n\n### Usage\n\n```bash\n# First start the server:\nspring start\n\n# Then run a manage.py command (eg. test)\nspring test --keepdb\n\n# Optionally, specify a settings module:\nDJANGO_SETTINGS_MODULE=\"base.settings\" spring test --keepdb\n```\n\n\n### Comparison\nFor a large project I tested against, it reduced the test time from 27.8s to 14.5s! Most of the time savings are from app startup, so the largest difference will be felt for running small test suites for large projects.\n\n\n#### manage.py\n```\n# time ./manage.py test --keepdb billing_service/tests/test_user.py\n..........\n----------------------------------------------------------------------\nRan 10 tests in 5.090s\n\nOK\nPreserving test database for alias 'default'...\n\nreal    0m27.773s\nuser    0m9.490s\nsys     0m2.510s\n```\n\n#### spring\n```\n# time spring test --keepdb billing_service/tests/test_user.py\n[APP] running command `test --keepdb billing_service/tests/test_user.py`\n..........\n----------------------------------------------------------------------\nRan 10 tests in 4.714s\n\nOK\nPreserving test database for alias 'default'...\n\nreal    0m14.457s\nuser    0m0.180s\nsys     0m0.100s\n```\n\n\n### Tweakable env vars\n\n`DJANGO_SETTINGS_MODULE`: The path to your settings module  (eg. `base.settings`)\n\n`CODE_RELOADER_POLL_PERIOD`: The number of seconds to wait between polling.\nSetting this higher will improve performance when using the stat reloader.\n\n`LOG_LEVEL`: (DEBUG, INFO, WARN, ERROR, CRITICAL)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flime-green%2Fdjango-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flime-green%2Fdjango-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flime-green%2Fdjango-spring/lists"}