Hi Karen Thanks for getting back
Here's the model def http://dpaste.com/391872/ On Feb 6, 3:33 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Sun, Feb 6, 2011 at 9:50 AM, vanderkerkoff <tonm...@gmail.com> wrote: > > I'm trying to upload a file in a project, the app is called Documents, > > here's the admin.py > > > [snipped] > > More interesting than the admin.py for this model would have been the model > definition itself. > > > > > I keep getting an error I don't understand > > > Exception Type: AttributeError at /admin/documents/document/add/ > > Exception Value: 'tuple' object has no attribute 'startswith' > > > Here's the stack trace > > >http://dpaste.com/391662/ > > > Anyone got any ideas? > > Stack trace seems to be indicating a problem with your file field's > upload_to value. Doc for that value is > here:http://docs.djangoproject.com/en/1.2/ref/models/fields/#filefield. > Traceback > seems to be saying you've got it defined as a tuple rather than a string or > callable. > > 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.