On Sun, Jun 25, 2017 at 4:20 PM, Vijay Khemlani wrote:
> A DocumentMetaData instance may be associated with multiple documents
> and multiple metadata according to your model, so your question is
> ambiguous.
>
Sorry about the confusion. When I create a DocumentMetaData, then there is
a single r
On Sun, Jun 25, 2017 at 6:56 PM, Constantine Covtushenko <
constantine@gmail.com> wrote:
> Hi Mark,
>
> I have some questions to you.
> 1. Does any of MetaData have predefined list of MetaDataValues?
>
No, I want to add them in real time as Documents are uploaded.
> 2. Can MetaDataValue be
Hi Mark,
I have some questions to you.
1. Does any of MetaData have predefined list of MetaDataValues?
2. Can MetaDataValue be assigned to many Documents or it is specific to
particular Document?
Regards,
Constantine C.
On Sun, Jun 25, 2017 at 6:20 PM, Mark Phillips
wrote:
> I have a class Doc
A DocumentMetaData instance may be associated with multiple documents
and multiple metadata according to your model, so your question is
ambiguous.
If you want a particular DocumentMetaData to only refer to a single
document and a single metadata then change the ManyToManyField for a
ForeignKey
I
I have a class Document that uploads a document. I have a class MetaData
that is the name for some metadata for that document. Since a MetaData can
have one or more values, there is another class called MetaDataValue that
has a ForeignKey to MetaData. Finally, there is a class
DocumentMetaDataValue
I have this class
class DocumentMetaData(models.Model):
document = models.ManyToManyField(Document)
metadata = models.ManyToManyField(MetaData)
metadatavalue = models.ManyToManyField(MetaDataValue)
def __str__(self):
return "%s - %s" % (self.document, self.metadata)
The D
So I'm getting the error as described in the title of this post.
I'm following this tutorial:
https://gearheart.io/blog/creating-a-chat-with-django-channels/
Here's the full traceback:
In [1]: import websocket
In [2]: ws = websocket.WebSocket()
In [3]:
ws.connect("ws://localhost:8000")--
7 matches
Mail list logo