Re: The problem with storing relative paths

2013-02-16 Thread JZint
i was there already... but the problem that the system-specific absolute path is saved into database persists... i want to be able to drag the whole system including database to another server... and that would be problematic if i store absolute paths thanks jonni Am Freitag, 15. Februar 2013

Re: The problem with storing relative paths

2013-02-15 Thread Robin Fordham
Hi jonni, How about something like; FORMTEMPLATE_PATH = os.path.join(settings.PROJECT_PATH, 'templates/forms' class Somemodel(models.Model): formtemplate = FilePathField(path='FORMTEMPLATE_PATH', match=".\*.htm[l]") . . On Friday, February 15, 2013 4:14:44 PM UTC, JZ