The Unofficial Ncit
1.0

Contents:

  • ncit
    • academics package
    • image_gallery package
      • Submodules
      • image_gallery.apps module
      • image_gallery.models module
      • image_gallery.views module
    • ncit package
    • notices package
The Unofficial Ncit
  • Docs »
  • ncit »
  • image_gallery package
  • View page source

image_gallery package¶

Submodules¶

image_gallery.apps module¶

class image_gallery.apps.ImageGalleryConfig(app_name, app_module)¶

Bases: django.apps.config.AppConfig

name = 'image_gallery'¶

image_gallery.models module¶

class image_gallery.models.Image(*args, **kwargs)¶

Bases: django.db.models.base.Model

Image model maps the image uploaded in gallery section to the database.

exception DoesNotExist¶

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned¶

Bases: django.core.exceptions.MultipleObjectsReturned

caption¶

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

id¶

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

img¶

Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.

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

image_gallery.views module¶

image_gallery.views.gallery(request)¶
Parameters:request (HTTPRequest) – carries request info
Returns:renders gallery.html with all the images from Image table
Next Previous

© Copyright 2020, Bimal Raj Gyawali

Built with Sphinx using a theme provided by Read the Docs.