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
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
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
3 matches
Mail list logo