The Wayback Machine - https://web.archive.org/web/20200515050214/https://github.com/topics/django-rest-framework
Skip to content
#

django-rest-framework

Here are 3,674 public repositories matching this topic...

zaskan
zaskan commented Apr 27, 2020
ISSUE TYPE

When a playbook is not valid but its filename is specified using a rest api enpoint, (e.g using job_templates endpoint) the system returns "Playbook not found for project".

SUMMARY

Error "Playbook not found for project", suggest users that yaml file doesn't exist at specified playbook path. In this particular situation error message like "Playbook specified doesn't cont

MrThanlon
MrThanlon commented Sep 23, 2019

在提交issue之前请

  • 认真阅读文档 http://docs.onlinejudge.me/#/
  • 搜索和查看历史issues
  • 安全类问题请不要在 GitHub 上公布,请发送邮件到 admin@qduoj.com,根据漏洞危害程度发送红包感谢。

然后提交issue请写清楚下列事项

 - 进行什么操作的时候遇到了什么问题,最好能有复现步骤
 - 错误提示是什么,如果看不到错误提示,请去data文件夹查看相应log文件。大段的错误提示请包在代码块标记里面。

  • 你尝试修复问题的操作
  • 页面问题请写清浏览器版本,尽量有截图
begonaalvarezd
begonaalvarezd commented Jul 9, 2018

Hello,

I have a Rest API working (all good here) with django-rest-framework and django-rest-framework-jwt.
My problem is that I am trying to access the DRF Built-in API documentation for authenticated users only and I am unable to make it work. It throws me 401 error {u'detail': ErrorDetail(string=u'Authentication credentials were not provided.', code=u'not_authenticated')}.

Below I

sambenas
sambenas commented Jul 16, 2019

If using a custom authentication token model, the related_name cannot be auth_token or that will clash with the default token model related name and the django project will fail to start.

The RegisterView returns an authentication token using user.auth_token. Since the related name for a custom token model had to be changed, user.auth_token does not actually exist.

As a workaround a

phr34k
phr34k commented Mar 28, 2020

I'm new to rest_framework but I'm using drf in combination with redoc and this library and it seems to work fantastic.

I was wondering how can I generate custom sections of the documentation for objects that are commonly reused across all API calls. For example, I have a token object that is query/post parameter so I would like this to be explained topic in its own section.

With the help of

ara
RishabhJain2018
RishabhJain2018 commented Apr 28, 2020

Motivation:
Some of the challenge hosts want to delete the 'canceled` submissions and the submission in which participants have uploaded non-standard submission files from their All Submissions view. Hence, we require this feature.

Deliverables:

  • Add a boolean field is_disabled with default as False in the Submissions model.
  • Add migration file for the added models.
murdav
murdav commented Feb 11, 2019

First of all thanks for this package, it's very useful!
My models are structured like these:

class Info(TimeStampedModel):
    identifier = models.UUIDField(_('info'), default=uuid.uuid4, primary_key=True, editable=False)
    ***
class Alert(TimeStampedModel):
    identifier = models.UUIDField(_('alert'), default=uuid.uuid4, primary_key=True, editable=False)
 
vijesh-venugopal
vijesh-venugopal commented Apr 22, 2020

I'm also facing the same issue related to the EmbeddedDocumentSerializer and here the value for Embedded Document field is a model instance. It returns the error like:

code:
for key, value in validated_data.items():

AttributeError: 'Modelname' object has no attribute 'items'
Any suggestions please.

Package versions:
django == 3.0.4
djangorestframework == 3.11.0
mongoengine == 0.19.

Improve this page

Add a description, image, and links to the django-rest-framework topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the django-rest-framework topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.