I got it :-) import os PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
# MEDIA_ROOT = ( # os.path.join(PROJECT_PATH, 'static/media/'), # ) MEDIA_ROOT = '/Users/mjdavies/Sites/django/governors/static/media/' statically pointing the media root works I use the same method above to grab templates, and that works ok at least we got it sorted thanks again On Feb 6, 5:16 pm, vanderkerkoff <tonm...@gmail.com> wrote: > Hi Karen > > I promise you I'm changing the code that I'm displaying, I've been > updating the app all day, just tying off some loose ends now. > > I've tried copying and pasting all the variables but it looks like > garbage in dpaste. > > One thing that I'm not sure if right is the value of the the_file > variable in the output > > Variable Value > the_file > <InMemoryUploadedFile: test.doc (application/msword)> > > Not sure if that is correct > > I seem to remember hearing about a situation where you had to save the > file to the filesystem and the record of the file to the database in > a certain order > > hmm > > will keep digging > > this is a brand new mac install if that's anything to go by > > thanks for helping, it is really appreciated > > On Feb 6, 4:39 pm, Karen Tracey <kmtra...@gmail.com> wrote: > > > > > On Sun, Feb 6, 2011 at 11:11 AM, vanderkerkoff <tonm...@gmail.com> wrote: > > > Hi Karen > > > > Thanks for getting back > > > > Here's the model def > > > >http://dpaste.com/391872/ > > > I cut and pasted that model definition, plus the model admin shown earlier, > > into a test project, and I'm able to add Documents in the admin with no > > error. It seems that somehow you are running code other than what you have > > posted. In the debug page you can look at the values of local variables, so > > maybe you cold get a hint of what's happening by taking a look at the actual > > value of s (the tuple python is complaining does not have a startwith > > attribute). > > > Karen > > > --http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.