Hi All,
Is someone can tell me how to upload file from local directory using
Django?
In the app, for model I use:

from google.appengine.ext import db

class Post(db.Model):
  user = db.UserProperty()
  message = db.StringProperty(multiline=True, required=True)
  file = db.BlobProperty()

and for form:

from django import newforms as forms

class UploadForm(forms.Form):
        message = forms.CharField(label='Your message',
widget=forms.Textarea())
        file = forms.FileField()

When the app is running, I got error below:

ViewDoesNotExist at /
Tried index in module views. Error was: 'module' object has no
attribute 'FileField'
Request Method:         GET
Request URL:    http://localhost:8080/
Exception Type:         ViewDoesNotExist
Exception Value:        Tried index in module views. Error was: 'module'
object has no attribute 'FileField'
Exception Location:     C:\Program Files\Google\google_appengine\lib
\django\django\core\urlresolvers.py in _get_callback, line 129

It seems, this because the current appengine use older than Django
1.0?

Thanks,
Ayub


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to