I need a widget to view the file system

I have an application for a simple page with the following RecordEntry model:

class RecordEntry(models.Model): client = models.ForeignKey(PostPage) filename = models.CharField(max_length=64, unique=False, blank=True, null=True) descriptor = models.CharField(max_length=64, unique=False, blank=True, null=True) date = models.DateField(_("Date"), default=datetime.date.today) post_type = models.CharField(max_length=50, choices=POST_CHOICES) round = models.CharField(max_length=50, choices=ROUND_CHOICES) pdf = models.CharField(max_length=100, unique=False, blank=True, null=True) html = models.CharField(max_length=100, unique=False, blank=True, null=True) zip = models.CharField(max_length=100, unique=False, blank=True, null=True) psd = models.CharField(max_length=100, unique=False, blank=True, null=True) def __unicode__ (self): return return u'%s %s' % (self.client, self.filename) class Admin: pass 

the pdf, html, zip and psd fields will contain the paths to those objects that will be displayed as links according to the template. My question is, is there a way to avoid having to enter all the way into these fields each time? Is there any type of widget that will allow me to browse the file system and write down the path to any element that I click on?

+7
source share
1 answer

Is it anywhere for you?

Is there a file system plugin for django?

Here is a little practical:

http://rfc1437.de/page/writing-a-simple-filesystem-browser-with-django/

but you must make it yourself in the widget of choice.

+1
source

All Articles