Hi guys - thanks for the replies.
I guess what I'm trying to do is get the file references inserted into
the DB so that I don't have to do any custom procesing when retrieving
data. Parsing the path once it's retrieved is an option, but creates
complications when viewing stuff in admin etc.
At
On 7/27/06, Joe <[EMAIL PROTECTED]> wrote:
>
> You could just strip the path out and get the filename when you extract
> the file from the database. Something like:
>
> def get_file_without_path(self):
> start=self.file.rfind('/')
>
> return self.file[start+1:]
um
You could just strip the path out and get the filename when you extract
the file from the database. Something like:
def get_file_without_path(self):
start=self.file.rfind('/')
return self.file[start+1:]
--~--~-~--~~~-
Hi all,
I've got a Django app with a whole stack of data which I want to be
able to update on a semi-regular basis. It's currently in Excel
format, which is then easily converted to CSV and imported into a
pre-defined MySQL table, with a relevant Django model defined around
it.
It all works pre
4 matches
Mail list logo