star_wars_explorer package

Submodules

star_wars_explorer.admin module

class star_wars_explorer.admin.PeopleReportAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

date_hierarchy = 'when_saved'
list_display = ('name', 'path')
list_filter = ('name', 'path')
property media
readonly_fields = ('name', 'path')

star_wars_explorer.app_settings module

star_wars_explorer.apps module

class star_wars_explorer.apps.StarWarsExplorerConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

default_auto_field = 'django.db.models.BigAutoField'
name = 'star_wars_explorer'
ready()[source]

Override this method in subclasses to run code when Django starts.

verbose_name = 'Star Wars Explorer'
star_wars_explorer.apps.setup_app_settings()[source]

star_wars_explorer.factories module

class star_wars_explorer.factories.PeopleReportFactory(**kwargs)[source]

Bases: factory.django.DjangoModelFactory

name = <factory.faker.Faker object>
path = <factory.faker.Faker object>
when_saved = <factory.faker.Faker object>

star_wars_explorer.models module

class star_wars_explorer.models.PeopleReport(id, name, path, when_saved)[source]

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

classmethod create_new_report()[source]
data(start: 0, stop=10)[source]
distinct(columns)[source]
exists()[source]
get_next_by_when_saved(*, field=<django.db.models.fields.DateTimeField: when_saved>, is_next=True, **kwargs)
get_previous_by_when_saved(*, field=<django.db.models.fields.DateTimeField: when_saved>, is_next=False, **kwargs)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
path

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

when_saved

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

star_wars_explorer.urls module

star_wars_explorer.views module

class star_wars_explorer.views.PeopleReportCreate(**kwargs)[source]

Bases: django.views.generic.base.View

static post(request, *args, **kwargs)[source]
class star_wars_explorer.views.PeopleReportDetail(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

get_context_data(**kwargs)[source]

Insert the single object into the context dict.

model

alias of star_wars_explorer.models.PeopleReport

class star_wars_explorer.views.PeopleReportDistinct(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

get_context_data(**kwargs)[source]

Insert the single object into the context dict.

get_object(queryset=None)[source]

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.

model

alias of star_wars_explorer.models.PeopleReport

template_name = 'star_wars_explorer/peoplereport_distinct.html'
class star_wars_explorer.views.PeopleReportList(**kwargs)[source]

Bases: django.views.generic.list.ListView

model

alias of star_wars_explorer.models.PeopleReport

ordering = '-when_saved'
paginate_by = 10

Module contents