Danny
Danny

Reputation: 327

How to store the path of a media file in Cassandra when using django-cassandra-engine?

Hey guys I am learning to implement Cassandra db with Django. In SQL db's we can store the path of a file in FileField, but how to do the same with Cassandra? Can anyone give some insights?

Thanks in advance.

Upvotes: 1

Views: 74

Answers (1)

Erick Ramirez
Erick Ramirez

Reputation: 16313

Just use the CQL type text for the column and you'd be able to store any string that represents the path to a file. Cheers!

Upvotes: 1

Related Questions