encode / django-rest-framework

Web APIs for Django. 🎸
https://www.django-rest-framework.org
Other
28.16k stars 6.81k forks source link

Exception while resolving variable 'loop' in template 'rest_framework/docs/index.html'. #6120

Closed Sispheor closed 3 years ago

Sispheor commented 6 years ago

Not sure if it's a cireapi or Django Rest framework bug. When setting DEBUG to False, I get this error when reaching the generated documentation page of my project.

Steps to reproduce

Expected behavior

The documentation page is reachable and no errors in logs.

Actual behavior

The Doc page is generated but a lot of errors appear in the log output. Full log

cified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf481b00>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481a20>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf481438>)]), 'delete': Link(url='/api/v1/projects/roles/{id}/', action='delete', description='Delete the specified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf481c88>)])}, 'sizes': {'list': Link(url='/api/v1/projects/sizes/', action='get', description='List all ProjectSizes'), 'create': Link(url='/api/v1/projects/sizes/', action='post', encoding='application/json', description='Create a new ProjectSize', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e2b0>)]), 'read': Link(url='/api/v1/projects/sizes/{id}/', action='get', description='Retrieve the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e320>)]), 'update': Link(url='/api/v1/projects/sizes/{id}/', action='put', encoding='application/json', description='Update the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e588>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481f28>)]), 'delete': Link(url='/api/v1/projects/sizes/{id}/', action='delete', description='Delete the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e048>)])}, 'types': {'list': Link(url='/api/v1/projects/types/', action='get', description='List all ProjectTypes'), 'create': Link(url='/api/v1/projects/types/', action='post', encoding='application/json', description='Create a new ProjectType', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d0b8>), Field('node_selector', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d0f0>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49d128>)]), 'read': Link(url='/api/v1/projects/types/{id}/', action='get', description='Retrieve the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d198>)]), 'update': Link(url='/api/v1/projects/types/{id}/', action='put', encoding='application/json', description='Update the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d400>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48eef0>), Field('node_selector', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ef98>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf48efd0>)]), 'delete': Link(url='/api/v1/projects/types/{id}/', action='delete', description='Delete the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48eba8>)])}, 'user-role-on-project': {'list': Link(url='/api/v1/projects/user-role-on-project/', action='get', description='List all UserRoleOnProjects'), 'create': Link(url='/api/v1/projects/user-role-on-project/', action='post', encoding='application/json', description='Create a new UserRoleOnProject', fields=[Field('project', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dd68>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf48ec18>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dda0>)]), 'read': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='get', description='Retrieve the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49deb8>)]), 'update': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='put', encoding='application/json', description='Update the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49df60>), Field('project', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6240>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6278>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a62b0>)]), 'delete': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='delete', description='Delete the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6438>)])}, 'list': Link(url='/api/v1/projects/', action='get', description='List all Projects'), 'create': Link(url='/api/v1/projects/', action='post', encoding='application/json', description='Create a new Project', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f06d8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f0668>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f00b8>), Field('project_size', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f00f0>), Field('project_type', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f03c8>), Field('customer_account', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f0358>)]), 'read': Link(url='/api/v1/projects/{id}/', action='get', description='Retrieve the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6550>)]), 'update': Link(url='/api/v1/projects/{id}/', action='put', encoding='application/json', description='Update the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6668>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d2e8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d048>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf49dcc0>), Field('project_size', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dcf8>), Field('project_type', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dc50>), Field('customer_account', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dc88>)]), 'partial_update': Link(url='/api/v1/projects/{id}/', action='patch', encoding='application/json', description='Retrieve, update or delete a Project instance.', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf48eeb8>), Field('name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b47b8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b47f0>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4828>), Field('project_size', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4860>), Field('project_type', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4898>), Field('customer_account', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b48d0>), Field('action', location='form', schema=<coreschema.schemas.Enum object at 0x7f74cf4b4908>)]), 'delete': Link(url='/api/v1/projects/{id}/', action='delete', description='Delete the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4a90>)])}, 'users': {'ask-reset-password': {'create': Link(url='/api/v1/users/ask-reset-password/', action='post', encoding='application/json', description='Get the url to reset the password', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4b00>)])}, 'ca-role': {'list': Link(url='/api/v1/users/ca-role/', action='get', description='List all CaRoles'), 'create': Link(url='/api/v1/users/ca-role/', action='post', encoding='application/json', description='Create a new CaRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6f98>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6160>)]), 'read': Link(url='/api/v1/users/ca-role/{id}/', action='get', description='Retrieve the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4d68>)]), 'update': Link(url='/api/v1/users/ca-role/{id}/', action='put', encoding='application/json', description='Update the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6048>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf444358>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf444390>)]), 'delete': Link(url='/api/v1/users/ca-role/{id}/', action='delete', description='Delete the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4240>)])}, 'change-password': {'list': Link(url='/api/v1/users/change-password/', action='get', description='Get the current logged user'), 'create': Link(url='/api/v1/users/change-password/', action='post', encoding='application/json', description='Update the user password', fields=[Field('old_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4470>), Field('new_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b40f0>)])}, 'login-custom': {'create': Link(url='/api/v1/users/login-custom/', action='post', fields=[Field('Authorization', required=True, location='header', schema=<coreschema.schemas.String object at 0x7f74cff4d518>)])}, 'logout-custom': {'create': Link(url='/api/v1/users/logout-custom/', action='post')}, 'profile': {'activate': {'create': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, 'read': Link(url='/api/v1/users/profile/{id}/', action='get', description='return detail about the current user', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d5c0>)]), 'update': Link(url='/api/v1/users/profile/{id}/', action='put', encoding='application/json', description='Update user information\n:param request:\n:return:', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d4e0>), Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51da20>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4813c8>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4812b0>), Field('email', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4814a8>), Field('is_staff', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf481d30>)])}, 'reset-password': {'create': Link(url='/api/v1/users/reset-password/', action='post', encoding='application/json', description='change the password', fields=[Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b49b0>), Field('reset_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4811d0>)])}, 'search': {'read': Link(url='/api/v1/users/search/{search_value}/', action='get', fields=[Field('search_value', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4817b8>)])}, 'signup': {'list': Link(url='/api/v1/users/signup/', action='get'), 'create': Link(url='/api/v1/users/signup/', action='post', encoding='application/json', description='Signup', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e978>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ea20>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ed30>), Field('email', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e4e0>), Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e7b8>)])}}}), 'langs': ['shell', 'javascript', 'python'], 'lang_htmls': ['rest_framework/docs/langs/shell.html', 'rest_framework/docs/langs/javascript.html', 'rest_framework/docs/langs/python.html'], 'lang_intro_htmls': ['rest_framework/docs/langs/shell-intro.html', 'rest_framework/docs/langs/javascript-intro.html', 'rest_framework/docs/langs/python-intro.html'], 'code_style': '.highlight .hll { background-color: #ffffcc }\n.highlight  { background: #f8f8f8; }\n.highlight .c { color: #008800; font-style: italic } /* Comment */\n.highlight .err { border: 1px solid #FF0000 } /* Error */\n.highlight .k { color: #AA22FF; font-weight: bold } /* Keyword */\n.highlight .o { color: #666666 } /* Operator */\n.highlight .ch { color: #008800; font-style: italic } /* Comment.Hashbang */\n.highlight .cm { color: #008800; font-style: italic } /* Comment.Multiline */\n.highlight .cp { color: #008800 } /* Comment.Preproc */\n.highlight .cpf { color: #008800; font-style: italic } /* Comment.PreprocFile */\n.highlight .c1 { color: #008800; font-style: italic } /* Comment.Single */\n.highlight .cs { color: #008800; font-weight: bold } /* Comment.Special */\n.highlight .gd { color: #A00000 } /* Generic.Deleted */\n.highlight .ge { font-style: italic } /* Generic.Emph */\n.highlight .gr { color: #FF0000 } /* Generic.Error */\n.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */\n.highlight .gi { color: #00A000 } /* Generic.Inserted */\n.highlight .go { color: #888888 } /* Generic.Output */\n.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */\n.highlight .gs { font-weight: bold } /* Generic.Strong */\n.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n.highlight .gt { color: #0044DD } /* Generic.Traceback */\n.highlight .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */\n.highlight .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */\n.highlight .kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */\n.highlight .kp { color: #AA22FF } /* Keyword.Pseudo */\n.highlight .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */\n.highlight .kt { color: #00BB00; font-weight: bold } /* Keyword.Type */\n.highlight .m { color: #666666 } /* Literal.Number */\n.highlight .s { color: #BB4444 } /* Literal.String */\n.highlight .na { color: #BB4444 } /* Name.Attribute */\n.highlight .nb { color: #AA22FF } /* Name.Builtin */\n.highlight .nc { color: #0000FF } /* Name.Class */\n.highlight .no { color: #880000 } /* Name.Constant */\n.highlight .nd { color: #AA22FF } /* Name.Decorator */\n.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */\n.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */\n.highlight .nf { color: #00A000 } /* Name.Function */\n.highlight .nl { color: #A0A000 } /* Name.Label */\n.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */\n.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */\n.highlight .nv { color: #B8860B } /* Name.Variable */\n.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */\n.highlight .w { color: #bbbbbb } /* Text.Whitespace */\n.highlight .mb { color: #666666 } /* Literal.Number.Bin */\n.highlight .mf { color: #666666 } /* Literal.Number.Float */\n.highlight .mh { color: #666666 } /* Literal.Number.Hex */\n.highlight .mi { color: #666666 } /* Literal.Number.Integer */\n.highlight .mo { color: #666666 } /* Literal.Number.Oct */\n.highlight .sa { color: #BB4444 } /* Literal.String.Affix */\n.highlight .sb { color: #BB4444 } /* Literal.String.Backtick */\n.highlight .sc { color: #BB4444 } /* Literal.String.Char */\n.highlight .dl { color: #BB4444 } /* Literal.String.Delimiter */\n.highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */\n.highlight .s2 { color: #BB4444 } /* Literal.String.Double */\n.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */\n.highlight .sh { color: #BB4444 } /* Literal.String.Heredoc */\n.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */\n.highlight .sx { color: #008000 } /* Literal.String.Other */\n.highlight .sr { color: #BB6688 } /* Literal.String.Regex */\n.highlight .s1 { color: #BB4444 } /* Literal.String.Single */\n.highlight .ss { color: #B8860B } /* Literal.String.Symbol */\n.highlight .bp { color: #AA22FF } /* Name.Builtin.Pseudo */\n.highlight .fm { color: #00A000 } /* Name.Function.Magic */\n.highlight .vc { color: #B8860B } /* Name.Variable.Class */\n.highlight .vg { color: #B8860B } /* Name.Variable.Global */\n.highlight .vi { color: #B8860B } /* Name.Variable.Instance */\n.highlight .vm { color: #B8860B } /* Name.Variable.Magic */\n.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */', 'request': <rest_framework.request.Request object at 0x7f74cfdb8e10>}, {}, {'forloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}}, {'section_key': 'users', 'section': Object({'ask-reset-password': {'create': Link(url='/api/v1/users/ask-reset-password/', action='post', encoding='application/json', description='Get the url to reset the password', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4b00>)])}, 'ca-role': {'list': Link(url='/api/v1/users/ca-role/', action='get', description='List all CaRoles'), 'create': Link(url='/api/v1/users/ca-role/', action='post', encoding='application/json', description='Create a new CaRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6f98>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6160>)]), 'read': Link(url='/api/v1/users/ca-role/{id}/', action='get', description='Retrieve the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4d68>)]), 'update': Link(url='/api/v1/users/ca-role/{id}/', action='put', encoding='application/json', description='Update the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6048>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf444358>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf444390>)]), 'delete': Link(url='/api/v1/users/ca-role/{id}/', action='delete', description='Delete the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4240>)])}, 'change-password': {'list': Link(url='/api/v1/users/change-password/', action='get', description='Get the current logged user'), 'create': Link(url='/api/v1/users/change-password/', action='post', encoding='application/json', description='Update the user password', fields=[Field('old_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4470>), Field('new_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b40f0>)])}, 'login-custom': {'create': Link(url='/api/v1/users/login-custom/', action='post', fields=[Field('Authorization', required=True, location='header', schema=<coreschema.schemas.String object at 0x7f74cff4d518>)])}, 'logout-custom': {'create': Link(url='/api/v1/users/logout-custom/', action='post')}, 'profile': {'activate': {'create': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, 'read': Link(url='/api/v1/users/profile/{id}/', action='get', description='return detail about the current user', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d5c0>)]), 'update': Link(url='/api/v1/users/profile/{id}/', action='put', encoding='application/json', description='Update user information\n:param request:\n:return:', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d4e0>), Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51da20>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4813c8>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4812b0>), Field('email', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4814a8>), Field('is_staff', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf481d30>)])}, 'reset-password': {'create': Link(url='/api/v1/users/reset-password/', action='post', encoding='application/json', description='change the password', fields=[Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b49b0>), Field('reset_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4811d0>)])}, 'search': {'read': Link(url='/api/v1/users/search/{search_value}/', action='get', fields=[Field('search_value', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4817b8>)])}, 'signup': {'list': Link(url='/api/v1/users/signup/', action='get'), 'create': Link(url='/api/v1/users/signup/', action='post', encoding='application/json', description='Signup', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e978>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ea20>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ed30>), Field('email', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e4e0>), Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e7b8>)])}})}, {'forloop': {'parentloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'counter0': 12, 'counter': 13, 'revcounter': 5, 'revcounter0': 4, 'first': False, 'last': False}}, {'link_key': 'profile > activate > create', 'link': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, {}, {'forloop': {'parentloop': {'parentloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'counter0': 12, 'counter': 13, 'revcounter': 5, 'revcounter0': 4, 'first': False, 'last': False}, 'counter0': 0, 'counter': 1, 'revcounter': 3, 'revcounter0': 2, 'first': True, 'last': False}, 'html': 'rest_framework/docs/langs/shell.html'}, {}]
[2018-08-09 12:12:56] - [DEBUG  ] - [django.template._resolve_lookup:878] : Exception while resolving variable 'loop' in template 'rest_framework/docs/index.html'.
Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 835, in _resolve_lookup
    current = current[bit]
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'loop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 841, in _resolve_lookup
    if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'loop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 849, in _resolve_lookup
    current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'loop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 856, in _resolve_lookup
    (bit, current))  # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [loop] in [{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f74d45712f0>>, 'request': <rest_framework.request.Request object at 0x7f74cfdb8e10>, 'user': <django.contrib.auth.models.AnonymousUser object at 0x7f74cfdb8e80>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f74cf444a20>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f74cfff7fd0>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}}, {}, {'document': Document(url='http://10.194.9.171:8000/', title='Kermit Selfcare Portal Backend API', content={'clusters': {'list': Link(url='/api/v1/clusters/', action='get', description='List all Clusters'), 'create': Link(url='/api/v1/clusters/', action='post', encoding='application/json', description='Create a new Cluster', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509dd8>), Field('description', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509e10>), Field('url', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509e48>), Field('active', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf509e80>), Field('token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509eb8>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf509ef0>)]), 'read': Link(url='/api/v1/clusters/{id}/', action='get', description='Retrieve the specified Cluster instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf509f60>)]), 'update': Link(url='/api/v1/clusters/{id}/', action='put', encoding='application/json', description='Update the specified Cluster instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51d208>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf5092b0>), Field('description', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509748>), Field('url', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf5096d8>), Field('active', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf509160>), Field('token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509470>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf509400>)]), 'delete': Link(url='/api/v1/clusters/{id}/', action='delete', description='Delete the specified Cluster instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51d898>)])}, 'customer-accounts': {'user-role-on-ca': {'ca': {'read': Link(url='/api/v1/customer-accounts/user-role-on-ca/ca/{id}/', action='get', description='Return a list of all the UserRoleOnCa of given CA', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b240>)])}, 'list': Link(url='/api/v1/customer-accounts/user-role-on-ca/', action='get', description='Return a list of all the UserRoleOnCa'), 'create': Link(url='/api/v1/customer-accounts/user-role-on-ca/', action='post', encoding='application/json', description='Create a new instance of UserRoleOnCa', fields=[Field('ca', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51b0b8>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51b0f0>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51b128>)]), 'read': Link(url='/api/v1/customer-accounts/user-role-on-ca/{id}/', action='get', description='Get the UserRoleOnCa instance specified by id', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b198>)]), 'update': Link(url='/api/v1/customer-accounts/user-role-on-ca/{id}/', action='put', encoding='application/json', description='Update the UserRoleOnCa instance specified by id', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b358>), Field('ca', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51ba90>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51bac8>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51bb00>)]), 'delete': Link(url='/api/v1/customer-accounts/user-role-on-ca/{id}/', action='delete', description='Delete the UserRoleOnCa instance specified by id', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b550>)])}, 'list': Link(url='/api/v1/customer-accounts/', action='get', description="If the user is admin, get the list of all CustomerAccounts.\nIf ths user is not admin, get the list of the user's CustomerAccounts"), 'create': Link(url='/api/v1/customer-accounts/', action='post', encoding='application/json', description='Create a new CustomerAccount', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51d1d0>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf509710>), Field('project_name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509240>), Field('customer_account_entity', location='form', schema=<coreschema.schemas.String object at 0x7f74cf509b70>), Field('billing_information', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509b38>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf509978>)]), 'read': Link(url='/api/v1/customer-accounts/{id}/', action='get', description='Retrieve a CustomerAccount instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51bc88>)]), 'update': Link(url='/api/v1/customer-accounts/{id}/', action='put', encoding='application/json', description='Update a CustomerAccount instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51bda0>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf536be0>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf536c18>), Field('project_name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf536c50>), Field('customer_account_entity', location='form', schema=<coreschema.schemas.String object at 0x7f74cf536c88>), Field('billing_information', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf536cc0>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf536cf8>)]), 'delete': Link(url='/api/v1/customer-accounts/{id}/', action='delete', description='Delete a CustomerAccount instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf536e80>)]), 'read_0': Link(url='/api/v1/customer-accounts/{id}/{action}/', action='get', description='Return CustomerAccount if the user have the right to view it', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf536f98>), Field('action', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf536f28>)]), 'create_0': Link(url='/api/v1/customer-accounts/{id}/{action}/', action='post', encoding='application/json', description='Change the state of the CustomerAccount, actions that can be performed depends on the actual state', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4cb160>), Field('action', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4cb1d0>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de320>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de358>), Field('project_name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de390>), Field('customer_account_entity', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de3c8>), Field('billing_information', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de400>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4de438>)])}, 'platforms': {'list': Link(url='/api/v1/platforms/', action='get', description='List all Platforms'), 'create': Link(url='/api/v1/platforms/', action='post', encoding='application/json', description='Create a new Platform', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4decf8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4ded30>)]), 'read': Link(url='/api/v1/platforms/{id}/', action='get', description='Retrieve the specified Platform instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4dee48>)]), 'update': Link(url='/api/v1/platforms/{id}/', action='put', encoding='application/json', description='Update the specified Platform instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4def98>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f0748>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f0780>)]), 'delete': Link(url='/api/v1/platforms/{id}/', action='delete', description='Delete the specified Platform instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4f0908>)])}, 'projects': {'roles': {'list': Link(url='/api/v1/projects/roles/', action='get', description='List all ProjectRoles'), 'create': Link(url='/api/v1/projects/roles/', action='post', encoding='application/json', description='Create a new ProjectRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481828>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf481860>)]), 'read': Link(url='/api/v1/projects/roles/{id}/', action='get', description='Retrieve the specified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4818d0>)]), 'update': Link(url='/api/v1/projects/roles/{id}/', action='put', encoding='application/json', description='Update the specified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf481b00>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481a20>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf481438>)]), 'delete': Link(url='/api/v1/projects/roles/{id}/', action='delete', description='Delete the specified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf481c88>)])}, 'sizes': {'list': Link(url='/api/v1/projects/sizes/', action='get', description='List all ProjectSizes'), 'create': Link(url='/api/v1/projects/sizes/', action='post', encoding='application/json', description='Create a new ProjectSize', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e2b0>)]), 'read': Link(url='/api/v1/projects/sizes/{id}/', action='get', description='Retrieve the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e320>)]), 'update': Link(url='/api/v1/projects/sizes/{id}/', action='put', encoding='application/json', description='Update the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e588>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481f28>)]), 'delete': Link(url='/api/v1/projects/sizes/{id}/', action='delete', description='Delete the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e048>)])}, 'types': {'list': Link(url='/api/v1/projects/types/', action='get', description='List all ProjectTypes'), 'create': Link(url='/api/v1/projects/types/', action='post', encoding='application/json', description='Create a new ProjectType', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d0b8>), Field('node_selector', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d0f0>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49d128>)]), 'read': Link(url='/api/v1/projects/types/{id}/', action='get', description='Retrieve the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d198>)]), 'update': Link(url='/api/v1/projects/types/{id}/', action='put', encoding='application/json', description='Update the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d400>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48eef0>), Field('node_selector', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ef98>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf48efd0>)]), 'delete': Link(url='/api/v1/projects/types/{id}/', action='delete', description='Delete the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48eba8>)])}, 'user-role-on-project': {'list': Link(url='/api/v1/projects/user-role-on-project/', action='get', description='List all UserRoleOnProjects'), 'create': Link(url='/api/v1/projects/user-role-on-project/', action='post', encoding='application/json', description='Create a new UserRoleOnProject', fields=[Field('project', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dd68>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf48ec18>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dda0>)]), 'read': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='get', description='Retrieve the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49deb8>)]), 'update': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='put', encoding='application/json', description='Update the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49df60>), Field('project', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6240>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6278>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a62b0>)]), 'delete': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='delete', description='Delete the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6438>)])}, 'list': Link(url='/api/v1/projects/', action='get', description='List all Projects'), 'create': Link(url='/api/v1/projects/', action='post', encoding='application/json', description='Create a new Project', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f06d8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f0668>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f00b8>), Field('project_size', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f00f0>), Field('project_type', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f03c8>), Field('customer_account', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f0358>)]), 'read': Link(url='/api/v1/projects/{id}/', action='get', description='Retrieve the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6550>)]), 'update': Link(url='/api/v1/projects/{id}/', action='put', encoding='application/json', description='Update the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6668>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d2e8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d048>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf49dcc0>), Field('project_size', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dcf8>), Field('project_type', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dc50>), Field('customer_account', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dc88>)]), 'partial_update': Link(url='/api/v1/projects/{id}/', action='patch', encoding='application/json', description='Retrieve, update or delete a Project instance.', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf48eeb8>), Field('name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b47b8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b47f0>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4828>), Field('project_size', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4860>), Field('project_type', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4898>), Field('customer_account', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b48d0>), Field('action', location='form', schema=<coreschema.schemas.Enum object at 0x7f74cf4b4908>)]), 'delete': Link(url='/api/v1/projects/{id}/', action='delete', description='Delete the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4a90>)])}, 'users': {'ask-reset-password': {'create': Link(url='/api/v1/users/ask-reset-password/', action='post', encoding='application/json', description='Get the url to reset the password', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4b00>)])}, 'ca-role': {'list': Link(url='/api/v1/users/ca-role/', action='get', description='List all CaRoles'), 'create': Link(url='/api/v1/users/ca-role/', action='post', encoding='application/json', description='Create a new CaRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6f98>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6160>)]), 'read': Link(url='/api/v1/users/ca-role/{id}/', action='get', description='Retrieve the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4d68>)]), 'update': Link(url='/api/v1/users/ca-role/{id}/', action='put', encoding='application/json', description='Update the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6048>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf444358>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf444390>)]), 'delete': Link(url='/api/v1/users/ca-role/{id}/', action='delete', description='Delete the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4240>)])}, 'change-password': {'list': Link(url='/api/v1/users/change-password/', action='get', description='Get the current logged user'), 'create': Link(url='/api/v1/users/change-password/', action='post', encoding='application/json', description='Update the user password', fields=[Field('old_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4470>), Field('new_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b40f0>)])}, 'login-custom': {'create': Link(url='/api/v1/users/login-custom/', action='post', fields=[Field('Authorization', required=True, location='header', schema=<coreschema.schemas.String object at 0x7f74cff4d518>)])}, 'logout-custom': {'create': Link(url='/api/v1/users/logout-custom/', action='post')}, 'profile': {'activate': {'create': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, 'read': Link(url='/api/v1/users/profile/{id}/', action='get', description='return detail about the current user', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d5c0>)]), 'update': Link(url='/api/v1/users/profile/{id}/', action='put', encoding='application/json', description='Update user information\n:param request:\n:return:', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d4e0>), Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51da20>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4813c8>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4812b0>), Field('email', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4814a8>), Field('is_staff', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf481d30>)])}, 'reset-password': {'create': Link(url='/api/v1/users/reset-password/', action='post', encoding='application/json', description='change the password', fields=[Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b49b0>), Field('reset_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4811d0>)])}, 'search': {'read': Link(url='/api/v1/users/search/{search_value}/', action='get', fields=[Field('search_value', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4817b8>)])}, 'signup': {'list': Link(url='/api/v1/users/signup/', action='get'), 'create': Link(url='/api/v1/users/signup/', action='post', encoding='application/json', description='Signup', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e978>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ea20>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ed30>), Field('email', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e4e0>), Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e7b8>)])}}}), 'langs': ['shell', 'javascript', 'python'], 'lang_htmls': ['rest_framework/docs/langs/shell.html', 'rest_framework/docs/langs/javascript.html', 'rest_framework/docs/langs/python.html'], 'lang_intro_htmls': ['rest_framework/docs/langs/shell-intro.html', 'rest_framework/docs/langs/javascript-intro.html', 'rest_framework/docs/langs/python-intro.html'], 'code_style': '.highlight .hll { background-color: #ffffcc }\n.highlight  { background: #f8f8f8; }\n.highlight .c { color: #008800; font-style: italic } /* Comment */\n.highlight .err { border: 1px solid #FF0000 } /* Error */\n.highlight .k { color: #AA22FF; font-weight: bold } /* Keyword */\n.highlight .o { color: #666666 } /* Operator */\n.highlight .ch { color: #008800; font-style: italic } /* Comment.Hashbang */\n.highlight .cm { color: #008800; font-style: italic } /* Comment.Multiline */\n.highlight .cp { color: #008800 } /* Comment.Preproc */\n.highlight .cpf { color: #008800; font-style: italic } /* Comment.PreprocFile */\n.highlight .c1 { color: #008800; font-style: italic } /* Comment.Single */\n.highlight .cs { color: #008800; font-weight: bold } /* Comment.Special */\n.highlight .gd { color: #A00000 } /* Generic.Deleted */\n.highlight .ge { font-style: italic } /* Generic.Emph */\n.highlight .gr { color: #FF0000 } /* Generic.Error */\n.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */\n.highlight .gi { color: #00A000 } /* Generic.Inserted */\n.highlight .go { color: #888888 } /* Generic.Output */\n.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */\n.highlight .gs { font-weight: bold } /* Generic.Strong */\n.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n.highlight .gt { color: #0044DD } /* Generic.Traceback */\n.highlight .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */\n.highlight .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */\n.highlight .kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */\n.highlight .kp { color: #AA22FF } /* Keyword.Pseudo */\n.highlight .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */\n.highlight .kt { color: #00BB00; font-weight: bold } /* Keyword.Type */\n.highlight .m { color: #666666 } /* Literal.Number */\n.highlight .s { color: #BB4444 } /* Literal.String */\n.highlight .na { color: #BB4444 } /* Name.Attribute */\n.highlight .nb { color: #AA22FF } /* Name.Builtin */\n.highlight .nc { color: #0000FF } /* Name.Class */\n.highlight .no { color: #880000 } /* Name.Constant */\n.highlight .nd { color: #AA22FF } /* Name.Decorator */\n.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */\n.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */\n.highlight .nf { color: #00A000 } /* Name.Function */\n.highlight .nl { color: #A0A000 } /* Name.Label */\n.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */\n.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */\n.highlight .nv { color: #B8860B } /* Name.Variable */\n.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */\n.highlight .w { color: #bbbbbb } /* Text.Whitespace */\n.highlight .mb { color: #666666 } /* Literal.Number.Bin */\n.highlight .mf { color: #666666 } /* Literal.Number.Float */\n.highlight .mh { color: #666666 } /* Literal.Number.Hex */\n.highlight .mi { color: #666666 } /* Literal.Number.Integer */\n.highlight .mo { color: #666666 } /* Literal.Number.Oct */\n.highlight .sa { color: #BB4444 } /* Literal.String.Affix */\n.highlight .sb { color: #BB4444 } /* Literal.String.Backtick */\n.highlight .sc { color: #BB4444 } /* Literal.String.Char */\n.highlight .dl { color: #BB4444 } /* Literal.String.Delimiter */\n.highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */\n.highlight .s2 { color: #BB4444 } /* Literal.String.Double */\n.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */\n.highlight .sh { color: #BB4444 } /* Literal.String.Heredoc */\n.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */\n.highlight .sx { color: #008000 } /* Literal.String.Other */\n.highlight .sr { color: #BB6688 } /* Literal.String.Regex */\n.highlight .s1 { color: #BB4444 } /* Literal.String.Single */\n.highlight .ss { color: #B8860B } /* Literal.String.Symbol */\n.highlight .bp { color: #AA22FF } /* Name.Builtin.Pseudo */\n.highlight .fm { color: #00A000 } /* Name.Function.Magic */\n.highlight .vc { color: #B8860B } /* Name.Variable.Class */\n.highlight .vg { color: #B8860B } /* Name.Variable.Global */\n.highlight .vi { color: #B8860B } /* Name.Variable.Instance */\n.highlight .vm { color: #B8860B } /* Name.Variable.Magic */\n.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */', 'request': <rest_framework.request.Request object at 0x7f74cfdb8e10>}, {}, {'forloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}}, {'section_key': 'users', 'section': Object({'ask-reset-password': {'create': Link(url='/api/v1/users/ask-reset-password/', action='post', encoding='application/json', description='Get the url to reset the password', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4b00>)])}, 'ca-role': {'list': Link(url='/api/v1/users/ca-role/', action='get', description='List all CaRoles'), 'create': Link(url='/api/v1/users/ca-role/', action='post', encoding='application/json', description='Create a new CaRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6f98>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6160>)]), 'read': Link(url='/api/v1/users/ca-role/{id}/', action='get', description='Retrieve the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4d68>)]), 'update': Link(url='/api/v1/users/ca-role/{id}/', action='put', encoding='application/json', description='Update the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6048>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf444358>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf444390>)]), 'delete': Link(url='/api/v1/users/ca-role/{id}/', action='delete', description='Delete the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4240>)])}, 'change-password': {'list': Link(url='/api/v1/users/change-password/', action='get', description='Get the current logged user'), 'create': Link(url='/api/v1/users/change-password/', action='post', encoding='application/json', description='Update the user password', fields=[Field('old_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4470>), Field('new_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b40f0>)])}, 'login-custom': {'create': Link(url='/api/v1/users/login-custom/', action='post', fields=[Field('Authorization', required=True, location='header', schema=<coreschema.schemas.String object at 0x7f74cff4d518>)])}, 'logout-custom': {'create': Link(url='/api/v1/users/logout-custom/', action='post')}, 'profile': {'activate': {'create': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, 'read': Link(url='/api/v1/users/profile/{id}/', action='get', description='return detail about the current user', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d5c0>)]), 'update': Link(url='/api/v1/users/profile/{id}/', action='put', encoding='application/json', description='Update user information\n:param request:\n:return:', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d4e0>), Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51da20>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4813c8>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4812b0>), Field('email', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4814a8>), Field('is_staff', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf481d30>)])}, 'reset-password': {'create': Link(url='/api/v1/users/reset-password/', action='post', encoding='application/json', description='change the password', fields=[Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b49b0>), Field('reset_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4811d0>)])}, 'search': {'read': Link(url='/api/v1/users/search/{search_value}/', action='get', fields=[Field('search_value', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4817b8>)])}, 'signup': {'list': Link(url='/api/v1/users/signup/', action='get'), 'create': Link(url='/api/v1/users/signup/', action='post', encoding='application/json', description='Signup', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e978>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ea20>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ed30>), Field('email', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e4e0>), Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e7b8>)])}})}, {'forloop': {'parentloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'counter0': 12, 'counter': 13, 'revcounter': 5, 'revcounter0': 4, 'first': False, 'last': False}}, {'link_key': 'profile > activate > create', 'link': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, {}, {'forloop': {'parentloop': {'parentloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'counter0': 12, 'counter': 13, 'revcounter': 5, 'revcounter0': 4, 'first': False, 'last': False}, 'counter0': 1, 'counter': 2, 'revcounter': 2, 'revcounter0': 1, 'first': False, 'last': False}, 'html': 'rest_framework/docs/langs/javascript.html'}, {}, {'forloop': {'parentloop': {'parentloop': {'parentloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'counter0': 12, 'counter': 13, 'revcounter': 5, 'revcounter0': 4, 'first': False, 'last': False}, 'counter0': 1, 'counter': 2, 'revcounter': 2, 'revcounter0': 1, 'first': False, 'last': False}, 'counter0': 0, 'counter': 1, 'revcounter': 1, 'revcounter0': 0, 'first': True, 'last': True}, 'field': Field(name='activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>, description=None, type=None, example=None)}]
[2018-08-09 12:12:56] - [DEBUG  ] - [django.template._resolve_lookup:878] : Exception while resolving variable 'schema_format' in template 'rest_framework/docs/index.html'.
Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 835, in _resolve_lookup
    current = current[bit]
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'schema_format'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 841, in _resolve_lookup
    if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'schema_format'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 849, in _resolve_lookup
    current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'schema_format'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 856, in _resolve_lookup
    (bit, current))  # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [schema_format] in [{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f74d45712f0>>, 'request': <rest_framework.request.Request object at 0x7f74cfdb8e10>, 'user': <django.contrib.auth.models.AnonymousUser object at 0x7f74cfdb8e80>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f74cf444a20>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f74cfff7fd0>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}}, {}, {'document': Document(url='http://10.194.9.171:8000/', title='Kermit Selfcare Portal Backend API', content={'clusters': {'list': Link(url='/api/v1/clusters/', action='get', description='List all Clusters'), 'create': Link(url='/api/v1/clusters/', action='post', encoding='application/json', description='Create a new Cluster', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509dd8>), Field('description', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509e10>), Field('url', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509e48>), Field('active', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf509e80>), Field('token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509eb8>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf509ef0>)]), 'read': Link(url='/api/v1/clusters/{id}/', action='get', description='Retrieve the specified Cluster instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf509f60>)]), 'update': Link(url='/api/v1/clusters/{id}/', action='put', encoding='application/json', description='Update the specified Cluster instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51d208>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf5092b0>), Field('description', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509748>), Field('url', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf5096d8>), Field('active', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf509160>), Field('token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509470>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf509400>)]), 'delete': Link(url='/api/v1/clusters/{id}/', action='delete', description='Delete the specified Cluster instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51d898>)])}, 'customer-accounts': {'user-role-on-ca': {'ca': {'read': Link(url='/api/v1/customer-accounts/user-role-on-ca/ca/{id}/', action='get', description='Return a list of all the UserRoleOnCa of given CA', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b240>)])}, 'list': Link(url='/api/v1/customer-accounts/user-role-on-ca/', action='get', description='Return a list of all the UserRoleOnCa'), 'create': Link(url='/api/v1/customer-accounts/user-role-on-ca/', action='post', encoding='application/json', description='Create a new instance of UserRoleOnCa', fields=[Field('ca', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51b0b8>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51b0f0>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51b128>)]), 'read': Link(url='/api/v1/customer-accounts/user-role-on-ca/{id}/', action='get', description='Get the UserRoleOnCa instance specified by id', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b198>)]), 'update': Link(url='/api/v1/customer-accounts/user-role-on-ca/{id}/', action='put', encoding='application/json', description='Update the UserRoleOnCa instance specified by id', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b358>), Field('ca', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51ba90>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51bac8>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf51bb00>)]), 'delete': Link(url='/api/v1/customer-accounts/user-role-on-ca/{id}/', action='delete', description='Delete the UserRoleOnCa instance specified by id', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51b550>)])}, 'list': Link(url='/api/v1/customer-accounts/', action='get', description="If the user is admin, get the list of all CustomerAccounts.\nIf ths user is not admin, get the list of the user's CustomerAccounts"), 'create': Link(url='/api/v1/customer-accounts/', action='post', encoding='application/json', description='Create a new CustomerAccount', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51d1d0>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf509710>), Field('project_name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509240>), Field('customer_account_entity', location='form', schema=<coreschema.schemas.String object at 0x7f74cf509b70>), Field('billing_information', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf509b38>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf509978>)]), 'read': Link(url='/api/v1/customer-accounts/{id}/', action='get', description='Retrieve a CustomerAccount instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51bc88>)]), 'update': Link(url='/api/v1/customer-accounts/{id}/', action='put', encoding='application/json', description='Update a CustomerAccount instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf51bda0>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf536be0>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf536c18>), Field('project_name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf536c50>), Field('customer_account_entity', location='form', schema=<coreschema.schemas.String object at 0x7f74cf536c88>), Field('billing_information', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf536cc0>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf536cf8>)]), 'delete': Link(url='/api/v1/customer-accounts/{id}/', action='delete', description='Delete a CustomerAccount instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf536e80>)]), 'read_0': Link(url='/api/v1/customer-accounts/{id}/{action}/', action='get', description='Return CustomerAccount if the user have the right to view it', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf536f98>), Field('action', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf536f28>)]), 'create_0': Link(url='/api/v1/customer-accounts/{id}/{action}/', action='post', encoding='application/json', description='Change the state of the CustomerAccount, actions that can be performed depends on the actual state', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4cb160>), Field('action', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4cb1d0>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de320>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de358>), Field('project_name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de390>), Field('customer_account_entity', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de3c8>), Field('billing_information', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4de400>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4de438>)])}, 'platforms': {'list': Link(url='/api/v1/platforms/', action='get', description='List all Platforms'), 'create': Link(url='/api/v1/platforms/', action='post', encoding='application/json', description='Create a new Platform', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4decf8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4ded30>)]), 'read': Link(url='/api/v1/platforms/{id}/', action='get', description='Retrieve the specified Platform instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4dee48>)]), 'update': Link(url='/api/v1/platforms/{id}/', action='put', encoding='application/json', description='Update the specified Platform instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4def98>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f0748>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f0780>)]), 'delete': Link(url='/api/v1/platforms/{id}/', action='delete', description='Delete the specified Platform instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4f0908>)])}, 'projects': {'roles': {'list': Link(url='/api/v1/projects/roles/', action='get', description='List all ProjectRoles'), 'create': Link(url='/api/v1/projects/roles/', action='post', encoding='application/json', description='Create a new ProjectRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481828>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf481860>)]), 'read': Link(url='/api/v1/projects/roles/{id}/', action='get', description='Retrieve the specified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4818d0>)]), 'update': Link(url='/api/v1/projects/roles/{id}/', action='put', encoding='application/json', description='Update the specified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf481b00>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481a20>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf481438>)]), 'delete': Link(url='/api/v1/projects/roles/{id}/', action='delete', description='Delete the specified ProjectRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf481c88>)])}, 'sizes': {'list': Link(url='/api/v1/projects/sizes/', action='get', description='List all ProjectSizes'), 'create': Link(url='/api/v1/projects/sizes/', action='post', encoding='application/json', description='Create a new ProjectSize', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e2b0>)]), 'read': Link(url='/api/v1/projects/sizes/{id}/', action='get', description='Retrieve the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e320>)]), 'update': Link(url='/api/v1/projects/sizes/{id}/', action='put', encoding='application/json', description='Update the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e588>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf481f28>)]), 'delete': Link(url='/api/v1/projects/sizes/{id}/', action='delete', description='Delete the specified ProjectSize instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48e048>)])}, 'types': {'list': Link(url='/api/v1/projects/types/', action='get', description='List all ProjectTypes'), 'create': Link(url='/api/v1/projects/types/', action='post', encoding='application/json', description='Create a new ProjectType', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d0b8>), Field('node_selector', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d0f0>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49d128>)]), 'read': Link(url='/api/v1/projects/types/{id}/', action='get', description='Retrieve the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d198>)]), 'update': Link(url='/api/v1/projects/types/{id}/', action='put', encoding='application/json', description='Update the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d400>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48eef0>), Field('node_selector', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ef98>), Field('platform', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf48efd0>)]), 'delete': Link(url='/api/v1/projects/types/{id}/', action='delete', description='Delete the specified ProjectType instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf48eba8>)])}, 'user-role-on-project': {'list': Link(url='/api/v1/projects/user-role-on-project/', action='get', description='List all UserRoleOnProjects'), 'create': Link(url='/api/v1/projects/user-role-on-project/', action='post', encoding='application/json', description='Create a new UserRoleOnProject', fields=[Field('project', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dd68>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf48ec18>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dda0>)]), 'read': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='get', description='Retrieve the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49deb8>)]), 'update': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='put', encoding='application/json', description='Update the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49df60>), Field('project', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6240>), Field('user', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6278>), Field('role', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4a62b0>)]), 'delete': Link(url='/api/v1/projects/user-role-on-project/{id}/', action='delete', description='Delete the specified UserRoleOnProject instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6438>)])}, 'list': Link(url='/api/v1/projects/', action='get', description='List all Projects'), 'create': Link(url='/api/v1/projects/', action='post', encoding='application/json', description='Create a new Project', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f06d8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f0668>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4f00b8>), Field('project_size', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f00f0>), Field('project_type', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f03c8>), Field('customer_account', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4f0358>)]), 'read': Link(url='/api/v1/projects/{id}/', action='get', description='Retrieve the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6550>)]), 'update': Link(url='/api/v1/projects/{id}/', action='put', encoding='application/json', description='Update the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4a6668>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d2e8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf49d048>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf49dcc0>), Field('project_size', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dcf8>), Field('project_type', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dc50>), Field('customer_account', required=True, location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf49dc88>)]), 'partial_update': Link(url='/api/v1/projects/{id}/', action='patch', encoding='application/json', description='Retrieve, update or delete a Project instance.', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf48eeb8>), Field('name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b47b8>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b47f0>), Field('display_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4828>), Field('project_size', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4860>), Field('project_type', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4898>), Field('customer_account', location='form', schema=<coreschema.schemas.Integer object at 0x7f74cf4b48d0>), Field('action', location='form', schema=<coreschema.schemas.Enum object at 0x7f74cf4b4908>)]), 'delete': Link(url='/api/v1/projects/{id}/', action='delete', description='Delete the specified Project instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.Integer object at 0x7f74cf4b4a90>)])}, 'users': {'ask-reset-password': {'create': Link(url='/api/v1/users/ask-reset-password/', action='post', encoding='application/json', description='Get the url to reset the password', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4b00>)])}, 'ca-role': {'list': Link(url='/api/v1/users/ca-role/', action='get', description='List all CaRoles'), 'create': Link(url='/api/v1/users/ca-role/', action='post', encoding='application/json', description='Create a new CaRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6f98>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6160>)]), 'read': Link(url='/api/v1/users/ca-role/{id}/', action='get', description='Retrieve the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4d68>)]), 'update': Link(url='/api/v1/users/ca-role/{id}/', action='put', encoding='application/json', description='Update the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6048>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf444358>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf444390>)]), 'delete': Link(url='/api/v1/users/ca-role/{id}/', action='delete', description='Delete the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4240>)])}, 'change-password': {'list': Link(url='/api/v1/users/change-password/', action='get', description='Get the current logged user'), 'create': Link(url='/api/v1/users/change-password/', action='post', encoding='application/json', description='Update the user password', fields=[Field('old_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4470>), Field('new_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b40f0>)])}, 'login-custom': {'create': Link(url='/api/v1/users/login-custom/', action='post', fields=[Field('Authorization', required=True, location='header', schema=<coreschema.schemas.String object at 0x7f74cff4d518>)])}, 'logout-custom': {'create': Link(url='/api/v1/users/logout-custom/', action='post')}, 'profile': {'activate': {'create': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, 'read': Link(url='/api/v1/users/profile/{id}/', action='get', description='return detail about the current user', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d5c0>)]), 'update': Link(url='/api/v1/users/profile/{id}/', action='put', encoding='application/json', description='Update user information\n:param request:\n:return:', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d4e0>), Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51da20>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4813c8>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4812b0>), Field('email', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4814a8>), Field('is_staff', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf481d30>)])}, 'reset-password': {'create': Link(url='/api/v1/users/reset-password/', action='post', encoding='application/json', description='change the password', fields=[Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b49b0>), Field('reset_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4811d0>)])}, 'search': {'read': Link(url='/api/v1/users/search/{search_value}/', action='get', fields=[Field('search_value', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4817b8>)])}, 'signup': {'list': Link(url='/api/v1/users/signup/', action='get'), 'create': Link(url='/api/v1/users/signup/', action='post', encoding='application/json', description='Signup', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e978>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ea20>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ed30>), Field('email', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e4e0>), Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e7b8>)])}}}), 'langs': ['shell', 'javascript', 'python'], 'lang_htmls': ['rest_framework/docs/langs/shell.html', 'rest_framework/docs/langs/javascript.html', 'rest_framework/docs/langs/python.html'], 'lang_intro_htmls': ['rest_framework/docs/langs/shell-intro.html', 'rest_framework/docs/langs/javascript-intro.html', 'rest_framework/docs/langs/python-intro.html'], 'code_style': '.highlight .hll { background-color: #ffffcc }\n.highlight  { background: #f8f8f8; }\n.highlight .c { color: #008800; font-style: italic } /* Comment */\n.highlight .err { border: 1px solid #FF0000 } /* Error */\n.highlight .k { color: #AA22FF; font-weight: bold } /* Keyword */\n.highlight .o { color: #666666 } /* Operator */\n.highlight .ch { color: #008800; font-style: italic } /* Comment.Hashbang */\n.highlight .cm { color: #008800; font-style: italic } /* Comment.Multiline */\n.highlight .cp { color: #008800 } /* Comment.Preproc */\n.highlight .cpf { color: #008800; font-style: italic } /* Comment.PreprocFile */\n.highlight .c1 { color: #008800; font-style: italic } /* Comment.Single */\n.highlight .cs { color: #008800; font-weight: bold } /* Comment.Special */\n.highlight .gd { color: #A00000 } /* Generic.Deleted */\n.highlight .ge { font-style: italic } /* Generic.Emph */\n.highlight .gr { color: #FF0000 } /* Generic.Error */\n.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */\n.highlight .gi { color: #00A000 } /* Generic.Inserted */\n.highlight .go { color: #888888 } /* Generic.Output */\n.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */\n.highlight .gs { font-weight: bold } /* Generic.Strong */\n.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n.highlight .gt { color: #0044DD } /* Generic.Traceback */\n.highlight .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */\n.highlight .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */\n.highlight .kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */\n.highlight .kp { color: #AA22FF } /* Keyword.Pseudo */\n.highlight .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */\n.highlight .kt { color: #00BB00; font-weight: bold } /* Keyword.Type */\n.highlight .m { color: #666666 } /* Literal.Number */\n.highlight .s { color: #BB4444 } /* Literal.String */\n.highlight .na { color: #BB4444 } /* Name.Attribute */\n.highlight .nb { color: #AA22FF } /* Name.Builtin */\n.highlight .nc { color: #0000FF } /* Name.Class */\n.highlight .no { color: #880000 } /* Name.Constant */\n.highlight .nd { color: #AA22FF } /* Name.Decorator */\n.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */\n.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */\n.highlight .nf { color: #00A000 } /* Name.Function */\n.highlight .nl { color: #A0A000 } /* Name.Label */\n.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */\n.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */\n.highlight .nv { color: #B8860B } /* Name.Variable */\n.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */\n.highlight .w { color: #bbbbbb } /* Text.Whitespace */\n.highlight .mb { color: #666666 } /* Literal.Number.Bin */\n.highlight .mf { color: #666666 } /* Literal.Number.Float */\n.highlight .mh { color: #666666 } /* Literal.Number.Hex */\n.highlight .mi { color: #666666 } /* Literal.Number.Integer */\n.highlight .mo { color: #666666 } /* Literal.Number.Oct */\n.highlight .sa { color: #BB4444 } /* Literal.String.Affix */\n.highlight .sb { color: #BB4444 } /* Literal.String.Backtick */\n.highlight .sc { color: #BB4444 } /* Literal.String.Char */\n.highlight .dl { color: #BB4444 } /* Literal.String.Delimiter */\n.highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */\n.highlight .s2 { color: #BB4444 } /* Literal.String.Double */\n.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */\n.highlight .sh { color: #BB4444 } /* Literal.String.Heredoc */\n.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */\n.highlight .sx { color: #008000 } /* Literal.String.Other */\n.highlight .sr { color: #BB6688 } /* Literal.String.Regex */\n.highlight .s1 { color: #BB4444 } /* Literal.String.Single */\n.highlight .ss { color: #B8860B } /* Literal.String.Symbol */\n.highlight .bp { color: #AA22FF } /* Name.Builtin.Pseudo */\n.highlight .fm { color: #00A000 } /* Name.Function.Magic */\n.highlight .vc { color: #B8860B } /* Name.Variable.Class */\n.highlight .vg { color: #B8860B } /* Name.Variable.Global */\n.highlight .vi { color: #B8860B } /* Name.Variable.Instance */\n.highlight .vm { color: #B8860B } /* Name.Variable.Magic */\n.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */', 'request': <rest_framework.request.Request object at 0x7f74cfdb8e10>}, {}, {'forloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}}, {'section_key': 'users', 'section': Object({'ask-reset-password': {'create': Link(url='/api/v1/users/ask-reset-password/', action='post', encoding='application/json', description='Get the url to reset the password', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4b00>)])}, 'ca-role': {'list': Link(url='/api/v1/users/ca-role/', action='get', description='List all CaRoles'), 'create': Link(url='/api/v1/users/ca-role/', action='post', encoding='application/json', description='Create a new CaRole', fields=[Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6f98>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4a6160>)]), 'read': Link(url='/api/v1/users/ca-role/{id}/', action='get', description='Retrieve the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4d68>)]), 'update': Link(url='/api/v1/users/ca-role/{id}/', action='put', encoding='application/json', description='Update the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4a6048>), Field('name', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf444358>), Field('description', location='form', schema=<coreschema.schemas.String object at 0x7f74cf444390>)]), 'delete': Link(url='/api/v1/users/ca-role/{id}/', action='delete', description='Delete the specified CaRole instance', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4b4240>)])}, 'change-password': {'list': Link(url='/api/v1/users/change-password/', action='get', description='Get the current logged user'), 'create': Link(url='/api/v1/users/change-password/', action='post', encoding='application/json', description='Update the user password', fields=[Field('old_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4470>), Field('new_password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b40f0>)])}, 'login-custom': {'create': Link(url='/api/v1/users/login-custom/', action='post', fields=[Field('Authorization', required=True, location='header', schema=<coreschema.schemas.String object at 0x7f74cff4d518>)])}, 'logout-custom': {'create': Link(url='/api/v1/users/logout-custom/', action='post')}, 'profile': {'activate': {'create': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, 'read': Link(url='/api/v1/users/profile/{id}/', action='get', description='return detail about the current user', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d5c0>)]), 'update': Link(url='/api/v1/users/profile/{id}/', action='put', encoding='application/json', description='Update user information\n:param request:\n:return:', fields=[Field('id', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf49d4e0>), Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf51da20>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4813c8>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4812b0>), Field('email', location='form', schema=<coreschema.schemas.String object at 0x7f74cf4814a8>), Field('is_staff', location='form', schema=<coreschema.schemas.Boolean object at 0x7f74cf481d30>)])}, 'reset-password': {'create': Link(url='/api/v1/users/reset-password/', action='post', encoding='application/json', description='change the password', fields=[Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b49b0>), Field('reset_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4811d0>)])}, 'search': {'read': Link(url='/api/v1/users/search/{search_value}/', action='get', fields=[Field('search_value', required=True, location='path', schema=<coreschema.schemas.String object at 0x7f74cf4817b8>)])}, 'signup': {'list': Link(url='/api/v1/users/signup/', action='get'), 'create': Link(url='/api/v1/users/signup/', action='post', encoding='application/json', description='Signup', fields=[Field('cuid', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e978>), Field('last_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ea20>), Field('first_name', location='form', schema=<coreschema.schemas.String object at 0x7f74cf48ed30>), Field('email', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e4e0>), Field('password', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf48e7b8>)])}})}, {'forloop': {'parentloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'counter0': 12, 'counter': 13, 'revcounter': 5, 'revcounter0': 4, 'first': False, 'last': False}}, {'link_key': 'profile > activate > create', 'link': Link(url='/api/v1/users/profile/activate/', action='post', encoding='application/json', fields=[Field('activation_token', required=True, location='form', schema=<coreschema.schemas.String object at 0x7f74cf4b4f60>)])}, {}, {'forloop': {'parentloop': {'parentloop': {'parentloop': {}, 'counter0': 4, 'counter': 5, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'counter0': 12, 'counter': 13, 'revcounter': 5, 'revcounter0': 4, 'first': False, 'last': False}, 'counter0': 2, 'counter': 3, 'revcounter': 1, 'revcounter0': 0, 'first': False, 'last': True}, 'html': 'rest_framework/docs/langs/python.html'}, {}]
[2018-08-09 12:12:56] - [DEBUG  ] - [django.template._resolve_lookup:878] : Exception while resolving variable 'loop' in template 'rest_framework/docs/index.html'.
Traceback (most recent call last):
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/base.py", line 835, in _resolve_lookup
    current = current[bit]
  File "/home/nico/Documents/portal_backend/venv/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'loop'
stanislavb commented 5 years ago

I have also encountered this with DEBUG=True

changeling commented 5 years ago

I'm encountering this as well with DEBUG as True or False. My traceback is nearly identical to that in https://github.com/encode/django-rest-framework/issues/6120#issue-349106359:

Python==3.6.4 django==2.1.7 djangorestframework==3.9.2 django-rest-multiple-models==2.1.3 coreapi==2.3.3

changeling commented 5 years ago

Side note: The traceback's inclusion of context for each exception makes it a very real performance hit.

LondonAppDev commented 5 years ago

I'm also getting this issue Django==2.1.5 djangorestframework==3.9.1 coreapi==2.3.3

rpkilby commented 5 years ago

Is there a minimal example to recreate the issue? In short, trying to determine if this this is specific to certain use, or if this is a general issue with the docs.

liuzm7188 commented 4 years ago

I'm also getting this issue Python==3.7.4 django==2.2.4 djangorestframework==3.10.2 coreapi==2.3.3

tomchristie commented 3 years ago

Closing as stale