add crawls app back to django admin

This commit is contained in:
Nick Sweeting 2024-11-17 22:57:20 -08:00
parent 1ec2753664
commit b852442efc
No known key found for this signature in database
3 changed files with 9 additions and 7 deletions

View file

@ -39,6 +39,7 @@ html_description=f'''
def register_urls(api: NinjaAPI) -> NinjaAPI:
api.add_router('/auth/', 'api.v1_auth.router')
api.add_router('/core/', 'api.v1_core.router')
api.add_router('/crawls/', 'api.v1_core.router')
api.add_router('/cli/', 'api.v1_cli.router')
api.add_router('/jobs/', 'api.v1_actors.router')
return api

View file

@ -0,0 +1,8 @@
__package__ = 'archivebox.queues'
import abx
@abx.hookimpl
def register_admin(admin_site):
from queues.admin import register_admin
register_admin(admin_site)

View file

@ -1,14 +1,7 @@
from django.apps import AppConfig
import abx
class QueuesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'queues'
@abx.hookimpl
def register_admin(admin_site):
from queues.admin import register_admin
register_admin(admin_site)