RuntimeException' with message 'Unable to read from stream' in D:\upupw\UPUPW_NP5.6\htdocs\xiaokeai\phpcmscos-php-sdk-v5\vendor\guzzlehttp\psr7\src\Stream.php:226 Stack trace: #0 D:\upupw\UPUPW_NP5.6\htdocs\xiaokeai\phpcmsGuzzleHttp\Handler\{closure}(Resource id #22,
我试图使用DRF来制作一个选举跟踪器;获得被认为相当简单的ViewSet列表并检索端点;
django.core.exceptions.ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "election-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute