diff --git a/bsmain/__init__.py b/bsmain/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bsmain/admin.py b/bsmain/admin.py new file mode 100644 index 0000000..e69de29 diff --git a/bsmain/apps.py b/bsmain/apps.py new file mode 100644 index 0000000..aab9bf3 --- /dev/null +++ b/bsmain/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BsmainConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "bsmain" diff --git a/bsmain/management/__init__.py b/bsmain/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bsmain/management/commands/__init__.py b/bsmain/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ingest/management/commands/check_migrations.py b/bsmain/management/commands/check_migrations.py similarity index 100% rename from ingest/management/commands/check_migrations.py rename to bsmain/management/commands/check_migrations.py diff --git a/ingest/management/commands/fetch_event_schema_json.py b/bsmain/management/commands/fetch_event_schema_json.py similarity index 100% rename from ingest/management/commands/fetch_event_schema_json.py rename to bsmain/management/commands/fetch_event_schema_json.py diff --git a/ingest/management/commands/prestart.py b/bsmain/management/commands/prestart.py similarity index 100% rename from ingest/management/commands/prestart.py rename to bsmain/management/commands/prestart.py diff --git a/ingest/management/commands/raise_exception.py b/bsmain/management/commands/raise_exception.py similarity index 100% rename from ingest/management/commands/raise_exception.py rename to bsmain/management/commands/raise_exception.py diff --git a/ingest/management/commands/send_json.py b/bsmain/management/commands/send_json.py similarity index 100% rename from ingest/management/commands/send_json.py rename to bsmain/management/commands/send_json.py diff --git a/ingest/management/commands/showstat.py b/bsmain/management/commands/showstat.py similarity index 79% rename from ingest/management/commands/showstat.py rename to bsmain/management/commands/showstat.py index e8ccfd4..0860fc3 100644 --- a/ingest/management/commands/showstat.py +++ b/bsmain/management/commands/showstat.py @@ -4,7 +4,6 @@ from snappea.models import Task class Command(BaseCommand): - # "ingest" may not be the best place for this, but "bugsink" is not an app, so Django won't discover it. def add_arguments(self, parser): parser.add_argument( diff --git a/ingest/management/commands/stress_test.py b/bsmain/management/commands/stress_test.py similarity index 100% rename from ingest/management/commands/stress_test.py rename to bsmain/management/commands/stress_test.py diff --git a/bsmain/migrations/__init__.py b/bsmain/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bsmain/models.py b/bsmain/models.py new file mode 100644 index 0000000..e69de29 diff --git a/bsmain/tests.py b/bsmain/tests.py new file mode 100644 index 0000000..e69de29 diff --git a/bsmain/views.py b/bsmain/views.py new file mode 100644 index 0000000..e69de29 diff --git a/bugsink/settings/default.py b/bugsink/settings/default.py index 15bfff6..f42e4e8 100644 --- a/bugsink/settings/default.py +++ b/bugsink/settings/default.py @@ -65,6 +65,7 @@ INSTALLED_APPS = [ ] BUGSINK_APPS = [ + 'bsmain', 'phonehome', 'users', 'theme', diff --git a/ingest/tests.py b/ingest/tests.py index e5e39ce..af35b1b 100644 --- a/ingest/tests.py +++ b/ingest/tests.py @@ -23,7 +23,7 @@ from issues.models import IssueStateManager, Issue, TurningPoint, TurningPointKi from bugsink.app_settings import override_settings from compat.timestamp import format_timestamp from compat.dsn import get_header_value -from ingest.management.commands.send_json import Command as SendJsonCommand +from bsmain.management.commands.send_json import Command as SendJsonCommand from .views import BaseIngestAPIView from .parsers import readuntil, NewlineFinder, ParseError, LengthFinder, StreamingEnvelopeParser diff --git a/pyproject.toml b/pyproject.toml index 12984d5..b817f81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ where = ["."] include = [ "alerts*", "api*", + "bsmain*", "bugsink*", "compat*", "events*",