Index

images  A

API

    decisions

    retrieve data

        ResourceDetailView

        ResourceListView

        ResourceView

    serialization (see Serialization)

Applied techniques, models

    attributes

        contribute_to_class() method

        pickling and unpickling data

        storing raw data

        unpickling data

    runtime

        configuration options

        first pass

        Python classes

Augmenting functions

    decorators

        args

        arguments (with or without)

        kwargs

        partial application of functions

        problem

        values

        with extra arguments

    decorators;func

    excess arguments

        argument collections passing

        keyword arguments

        mixed (positional and keyword) arguments

        positional arguments

images  B

Backend protocols. See also Database access

    authentication

        authenticate(**credentials)

        get_user(user_id)

        passing information-custom backends

        storing user information

    base file class

        file objects

        methods

    caching

        cache backend

        manual

    context processors

    handling uploads

        django.core.files.uploadhander

        income files

    session management

        constant

        process

        SessionBase

    storing files

        different set

        methods

    template loading

        load_template_source.is_usable

        load_template_source(template_name, template_dirs=None)

        load_template(template_name, template_dirs=None)

        template loading

    virus scanning

images  C

Common tools

    core exceptions (django.core.exceptions)

        ImproperlyConfigured

        MiddlewareNotUsed

        MultipleObjectsReturned

        ObjectDoesNotExist

        PermissionDenied

        SuspiciousOperation

        ValidationError

        ViewDoesNotExist

    data structures (django.utils.datastructures)

        DictWrapper

        ImmutableList

        MergeDict

        MultiValueDict

        SortedDict

    functional utilities (django.utils.functional)

        allow_lazy(func, *resultclasses)

        cached_property(func)

        curry(func)

        lazy(func, *resultclasses)

        lazy_property(fget=None, fset=None, fdel=None)

        memoize(func, cache, num_args)

        partition(predicate, values)

        wraps(func)

    signals

        basic process

        capturing return values

        definition

        forcing strong references

        listener definition

        registering listeners

        send() method

    text modification (django.utils.text)

        compress_sequence(sequence)

        compress_string(s)

        get_text_list(items, last_word=‘or’)

        javascript_quote(s, quote_double_quotes=False)

        normalize_newlines(text)

        phone2numeric(phone)

        recapitalize(text)

        slugify(value)

        smart_split(text)

        Truncating Text

        unescape_entities(text)

        unescape_string_literal(s)

        wrap(text, width)

Contacts

    admin configuration

    contacts.forms.ContactEditorForm

    contacts.forms.UserEditorForm

    contacts.models.Contact

        advantage

        methods

        model inheritance

        properties

    contacts.views.EditContact

        distinct situations

        forms

        get() and post () method

    URL configuration

images  D, E

Database access

    django.db.backends

        comparison operators

        cursor

        DatabaseWrapper

        DatabaseWrapper.features

        DatabaseWrapper.ops

    structure creation

        DatabaseClient

        DatabaseError and IntegrityError

        internal column types

        introspection

Django. See also Python

    community

        core

        evolve

        framework

        help

        news and resources

        reusable applications

    help

        documentation reading

        FAQ

        IRC

        mailing lists

        version checking

    philosophy

        benefits

        documenting rules

        DRY

        exception

        loose coupling

        MVC pattern-interpretation

        Python distribution

        readability counts

Django.db.backends

    DatabaseWrapper

    DatabaseWrapper.features

        list of

        operation

    DatabaseWrapper.ops

        backends

        purposes and default behaviors

Duck typing protocols

    callables

        _call_(self[, . . .])

    dictionaries

        _contains_(self, key)

        _getitem_(self, key)

        iterables

        _setitem_(self, key, value)

    files

        close(self)

        loose protocol

        read(self, [size])

        write(self, str)

    iterables

        generators

        iterators

        iter() method

        _iter_(self)

    sequences

        _getitem_(self)

        _len_(self)

        _setitem_(self, value)

images  F, G

Forms

    custom fields

        clean() method

        error_messages

        super() method

        validation

        ValidationError

        widget control

    field-declare and identify

    HTML behavior definition

        as_hidden()

        as_text

        as_Textarea

        as_widget()

        compress() method

        customize, error display

        custom widgets

        data

        DateTimeField

        decompress() method

        error_ender

        ErrorList

        errors_on_seperate_row

        field

        field access

        FileField

        help_text_html

        is_hidden

        label_tag()

        markup customization

        multiple widgets, data split

        MultiValueField

        MultiWidget

        normal_row

        posted data, values

        render() method

        row_ender

        SplitDateTimeField

        tuples

        value_from_datadict()

    techniques applied for

        business logic

        class based approach

        decorator module

        dict()

        form_invalid()

        form_pended()

        form_valid()

        generic processing

        get_form_kwargs()

        get_or_create()

        pend and resume

        pend_form

        PendFormView

        post() method

        reconstitute

        request.POST

        store values

        TextField

        validity

        workflow

    user input, bind

        behavior control methods

        bound form

        CreateView

        data attribute

        DeleteView

        filesystem operation

        form_valid()

        FormView

        is_valid() method

        ModelForm

        request.POST

        trust options of

        unbound form

        UpdateView

        validating

        views, class-based

Function-based views

    anatomy

    CORS decorator

    MVC

    templates

    view decorators

        apply

        name and documentation

        packages

        path

        write

    writing code

        arguments

        default values

images  H

images  I

Introspection

    class and function attributes

    docstrings

    function signature

        tuples

        value handling

    object type identification

        arbitrary object

        checking for

Iterators

    next(self)

    in Python

images  J, K, L

images  M, N

Models. See also Applied techniques, models

    class information

    configuration options

    field definitions

    fields

        attributes

        methods

    files

        attr_class

        cusotmization (see File class customization)

        delete_file(self, instance, sender)

        generate_filename(self, instance, filename)

        get_directory_name(self)

        get_filename(self, filename)

        save_form_data(self, instance, data)

    _meta

    model cache access

        AppCache

        application retrieve

        Django application

        individual models

        ModelBase

        single application retrieve

    primary key fields

    processes model classes

        attributes

        declarative syntax

        key features

    signals

        class_prepared

        post_syncdb

        pre_delete and post_delete

        pre_init and post_init

        pre_save and post_save

    SQL goals

    standard Python classes

    subclass fields

        contribute_to_class (self, cls, name)

        contribute_to_class() vs. setattr()

        contribute_to_related_class(self, cls, related)

        database behavior

        Django model field

        get_internal_type(self)

        invent/extend

        SubfieldBase

        to_python(self, value)

        validate(self, value, instance)

images  O

images  P, Q, R

Python

    augmenting functions

        decorators

        excess arguments

    class building

        base class, metaclass

        declarative syntax

        instance creation

        metaclasses

        programmatically

        Python 2 style compatibility

        type(), warning

    descriptorsconversion of value

        data retreival

        _get_(self, instance, owner)

        instance data

        _set_(self, instance, value)

        transform

        value customize

    duck typing protocols

        callables

        dictionaries

        files

        iterables

        sequences

    introspection

        class and function attributes

        docstrings

        function signature

        object type identification

        old style class

    techniques

        plugin architecture

        subclasses tracking

images  S

Serialization

    Django’s serialization

    dumps() and loads() methods

    JSON serializer

    serialize() method

        api.serializers

        end_object(obj)

        end_serialization()

        get_dump_object()

        get_dump_object() method

        get_dump_object(obj)

        get_through_fields()

        handle_field(obj, field)

        handle_fk_field() method

        handle_fk_field(obj, field)

        handle_m2m_field(obj, field)

        many-to-many relationships

        PropertyFeature model

        QuerySets

        QuerySetSerializer

        retrieve field information

        SingleObjectSerializer

        start_object(obj)

        start_serialization()

images  T

Techniques, Python

    plugin architecture

        initialisation of

        methods or attributes

        validation

    subclasses tracking

Templates

    content Tokens

    context

        complex variable lookup

        HTTP request

        simple variable resolution

        vs. namespaces

    exceptions

    features

    large process

    load and render

        render_to_response(template_name, dictionary=None, context_instance=None, content_type=None)

        render_to_string(template_name, dictionary=None, context_instance=None)

    nodes

    objects

        name

        origin

        template_string

    package

    Parser object

    Python expressions

    render() method

    retrieve

        django.template.loader.get_template(template_name)

        django.template.loader.select_template(template_name_list)

    syntax

    tags

        description

        shortcut (simple tags)

        simple tags

    template engine techniques

        compilation functions

        convert token to string

        custom template tag

        Jinja template

    user-submitted themes techniques

        advertisements

        example-application

        models

        problem

        setting up templates

        site-wide themes

        validating and securing themes

    variable filters

        argument

        common situations

        register

        value accept

        value returns

images  U

images  V

images  W, X, Y, Z

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset