archivebox.core package¶
Subpackages¶
Submodules¶
archivebox.core.admin module¶
-
class
archivebox.core.admin.
SnapshotAdminForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.models.ModelForm
-
save
(commit=True)[source]¶ Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
-
base_fields
= {'tags': <core.forms.TagField object>, 'timestamp': <django.forms.fields.CharField object>, 'title': <django.forms.fields.CharField object>, 'updated': <django.forms.fields.DateTimeField object>, 'url': <django.forms.fields.URLField object>}¶
-
declared_fields
= {'tags': <core.forms.TagField object>}¶
-
media
¶
-
-
class
archivebox.core.admin.
SnapshotAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
list_display
= ('added', 'title_str', 'url_str', 'files', 'size')¶
-
sort_fields
= ('title_str', 'url_str', 'added')¶
-
readonly_fields
= ('id', 'url', 'timestamp', 'num_outputs', 'is_archived', 'url_hash', 'added', 'updated')¶
-
search_fields
= ['url', 'timestamp', 'title', 'tags__name']¶
-
fields
= ('id', 'url', 'timestamp', 'num_outputs', 'is_archived', 'url_hash', 'added', 'updated', 'title', 'tags')¶
-
list_filter
= ('added', 'updated', 'tags')¶
-
ordering
= ['-added']¶
-
actions
= [<function delete_snapshots>, <function overwrite_snapshots>, <function update_snapshots>, <function update_titles>, <function verify_snapshots>]¶
-
actions_template
= 'admin/actions_as_select.html'¶
-
form
¶ alias of
SnapshotAdminForm
-
get_queryset
(request)[source]¶ Return a QuerySet of all model instances that can be edited by the admin site. This is used by changelist_view.
-
media
¶
-
-
class
archivebox.core.admin.
TagAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
list_display
= ('slug', 'name', 'id')¶
-
sort_fields
= ('id', 'name', 'slug')¶
-
readonly_fields
= ('id',)¶
-
search_fields
= ('id', 'name', 'slug')¶
-
fields
= ('id', 'name', 'slug')¶
-
media
¶
-
-
class
archivebox.core.admin.
ArchiveBoxAdmin
(name='admin')[source]¶ Bases:
django.contrib.admin.sites.AdminSite
-
site_header
= 'ArchiveBox'¶
-
index_title
= 'Links'¶
-
site_title
= 'Index'¶
-
-
archivebox.core.admin.
path
(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)¶
archivebox.core.apps module¶
archivebox.core.models module¶
archivebox.core.settings module¶
archivebox.core.tests module¶
archivebox.core.urls module¶
-
archivebox.core.urls.
path
(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)¶
archivebox.core.views module¶
-
class
archivebox.core.views.
MainIndex
(**kwargs)[source]¶ Bases:
django.views.generic.base.View
-
template
= 'main_index.html'¶
-
-
class
archivebox.core.views.
PublicArchiveView
(**kwargs)[source]¶ Bases:
django.views.generic.list.ListView
-
template
= 'snapshot_list.html'¶
-
model
¶ alias of
core.models.Snapshot
-
paginate_by
= 100¶
-
ordering
= ['title']¶
-
archivebox.core.welcome_message module¶
archivebox.core.wsgi module¶
WSGI config for archivebox project.
It exposes the WSGI callable as a module-level variable named application
.
For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/