Thursday, October 27, 2011

Re: Reg: Displaying the contents of the file at a dynamic location

You would probably save these files just like any other User Uploaded Media. For example, in Django 1.3 this the Media Path setup in your settings.py.

You would store a reference to the path in your database. Look up Storage Backends documentation for more information on this.

As a side note, be careful letting web users open files on your server. You don't want them to get access to your /etc/passwd or even settings.py, for example...

Good luck!

On Thu, Oct 27, 2011 at 8:18 AM, kenneth gonsalves <lawgon@thenilgiris.com> wrote:
On Thu, 2011-10-27 at 17:41 +0530, Dhinesh Babu wrote:
> In a django-based web application Large text encoded file is saved at
> a dynamic location (~ 10k lines)

what do you mean by 'dynamic location'?
--
regards
Kenneth Gonsalves

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment