mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-24 21:23:22 +00:00
add crawls app back to django admin
This commit is contained in:
parent
1ec2753664
commit
b852442efc
3 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue