mission_control.views¶
Mission Control views.
Functions
bd_list(request, \*args, \*\*kwargs) |
Block diagram list view for the logged in user. |
ensure_csrf_cookie(view_func) |
Use this decorator to ensure that a view sets a CSRF cookie, whether or not it uses the csrf_token template tag, or the CsrfViewMiddleware is used. |
get_object_or_404(klass, \*args, \*\*kwargs) |
Uses get() to return an object, or raises a Http404 exception if the object does not exist. |
home(request, \*args, \*\*kwargs) |
Home view. |
login_required([function, ...]) |
Decorator for views that checks that the user is logged in, redirecting to the log-in page if necessary. |
render(request, template_name[, context, ...]) |
Returns a HttpResponse whose content is filled with the result of calling django.template.loader.render_to_string() with the passed arguments. |
rover_list(request, \*args, \*\*kwargs) |
Rover list view for the logged in user. |
rover_settings(request, \*args, \*\*kwargs) |
Rover settings view for the specific rover. |
Classes
Application(id, client_id, user, ...) |
|
BlockDiagram(\*args, \*\*kwargs) |
Attributes to describe a single block diagram. |
BlockDiagramSerializer([instance, data]) |
Block diagram model serializer. |
JSONRenderer |
Renderer which serializes to JSON. |
Rover(\*args, \*\*kwargs) |
Attributes to describe a single rover. |
RoverForm([data, files, auto_id, prefix, ...]) |
Fields for modifying rover settings. |
-
mission_control.views.bd_list(request, *args, **kwargs)¶ Block diagram list view for the logged in user.
-
mission_control.views.home(request, *args, **kwargs)¶ Home view.
-
mission_control.views.rover_list(request, *args, **kwargs)¶ Rover list view for the logged in user.
-
mission_control.views.rover_settings(request, *args, **kwargs)¶ Rover settings view for the specific rover.