Skip to main content

An implementation of django class based generic views using mongoengine.

Project description

Class based generic views for mongoengine documents.


Not all views Django provides are implemented. If you find mixins or views that are missing, feel free to implement them and provide a pull request :-)

Note 2

Fork from django-mongogeneric with support to python 3



$ pip install mongogeneric3

Implemented views

  • DetailView

  • ListView

  • CreateView

  • UpdateView

  • DeleteView

Most of the mixins provided by Django to build the above views are also there.

The Django documentation for class based generic views should work for the views provided here. The only difference is that everywhere Django requires model as an attribute, mongogeneric requires a document.

Embedded forms

Additionally to the above views, there is a view and a mixin that makes working with embedded document forms easier (e.g. for comments saved together with a post).


Extends: FormMixin

A mixin class that processes embedded forms, using EmbeddedDocumentForms from django mongodbforms.

embedded_form_class An EmbeddedDocumentForm that is passed into the template context and saved if the request is a POST request and the form is valid.

embedded_context_name Designates the name of the variable to use in the context.


Extends: BaseEmbeddedFormMixin, DetailView

Renders a single document and provides a form for an embedded field.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mongogeneric3-0.0.2-py2.py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page