Re: model.FileField

2015-04-27 Thread James Schneider
You can save the file wherever you like, just change the file path where you are writing the file to make use of settings.MEDIA_ROOT rather than a hard-coded URL. Since you aren't using a model, Django is assuming you want to do something fancy with the file, so you are responsible for doing the h

Re: model.FileField

2015-04-27 Thread mangu rajpurohit
> > Hi James, > > Thanks for suggesting me the page at location https://docs.djangoproject.com/en/1.8/topics/http/file-uploads/ .

Re: model.FileField

2015-04-27 Thread James Schneider
Have you seen this? https://docs.djangoproject.com/en/1.8/topics/http/file-uploads/ Has an example showing an example exactly as you asked without any models involved. Also make sure you recognize the difference between models.FileField and forms.FileField: https://docs.djangoproject.com/en/1.8/