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

The problem with storing relative paths

2013-02-15 Thread JZint
Hello! So this is what i wanna do: I have built a model with an admin interface for letting the user create his own site. it has following fields: name = models.CharField(max_length = 50) formtemplate = FilePathField(path='/path/to/project/myforms/templates/forms', match=".\*.htm[l