Skip to content

Instantly share code, notes, and snippets.

@ymph
ymph / README.md
Last active August 29, 2015 14:21
Django FileField default callable problem

FileField callable default problem

How to reproduce:

  • create a virtualenv and activate it. Install Django (pip install django)
  • create a new testdefault project : django-admin startproject testdefault
  • copy the gist file into the testdefault folder (i.e. files admin.py, models.py, settings.py)
  • run the following commands:
@ymph
ymph / keybase.md
Created October 10, 2014 00:31
keybase proof

Keybase proof

I hereby claim:

  • I am ymph on github.
  • I am ymh (https://keybase.io/ymh) on keybase.
  • I have a public key whose fingerprint is DC82 26E9 E068 F660 A82C E087 D979 5E5A 6437 0362

To claim this, I am signing this object: