filefield
How to save a ByteArray from Flex into a FileField in Django
I have some audio data in a byte array in a Flex app that I would like to save to my model in Django. I assume I would use a FileField, but I can\'t seem to get it to work. (My project is set up like[详细]
2023-03-06 03:04 分类:问答How to override filefield in views.py?
I have view to document edit: @login_required def document_edit(request, doc_id): try: doc = Document.objects.get(id=doc_id)[详细]
2023-03-03 20:02 分类:问答django admin uploaded file processing
Here\'s what I want to do, and I did not find something similar in my search so far. In my admin page, I have a Filefield in my model. The rest of the fields are all read only.[详细]
2023-03-01 12:02 分类:问答copy file from one model to another
I have 2 simple models: class UploadImage(models.Model): Image = models.ImageField(upload_to=\"temp/\")[详细]
2023-02-28 01:40 分类:问答Read data of Django FileField
I am trying to save/download the data on local directory before save it to database, which is selected in Django FileField. After download how do I maintain the instance of开发者_如何学C that selected[详细]
2023-02-22 03:54 分类:问答How to add a new instance of Django model with FileField by ModelForm?
I\'m a Django beginner. I think my problem is trivial but I can\'t solve it. I have a model named Document with one FileField:[详细]
2023-02-18 01:13 分类:问答Best Practice to link Multiple Files to model if number of Files can vary
I have an Accounting Module with a model like this: class Accounting_period(models.Model): start_date = models.DateField()[详细]
2023-02-05 20:56 分类:问答Drupal 7 - Import file from a tempory directory on the site into file field on the node
Drupal 7 file field question:Is it possible to ftp files to a temporary location, then move them into a file fiel开发者_如何学Pythond on a drupal node?for each file, call this function:[详细]
2023-02-05 16:37 分类:问答Ruby on Rails 3 and Paperclip gem: custom presence validation on an attachment (no use of 'validates_attachment_presence')
I am using the \'paperclip\' gem for Ruby on Rails 3 and I would like to handle a custom presence validation with this approach: \"if a file path value (a string like \"/Users/Desktop/image.gif\" or \[详细]
2023-02-05 08:08 分类:问答What is the clean way to unittest FileField in django?
I have a model with a FileField. I want to unittest it. django test framework has great ways to manage database and emails. Is ther开发者_运维知识库e something similar for FileFields?[详细]
2023-01-26 20:51 分类:问答
加载中,请稍侯......