Re: Static Media Server (Tango with Django)

2014-10-14 Thread Max Nathaniel Ho
gt; > > > I am going through this tutorial on Tango with Django > > - http://www.tangowithdjango.com/book/chapters/templates_static.html > > > > I extracted the specific part of the tutorial as seen in *BOLD*. > > > > > > *4.4. The Static Med

Re: Static Media Server (Tango with Django)

2014-10-13 Thread Carl Meyer
> *4.4. The Static Media > > Server<http://www.tangowithdjango.com/book/chapters/templates_static.html#the-static-media-server>* > > *Now that you can dispatch static files, let’s look at uploading media. > Many websites provide their users with the ability to do

Re: Static Media Server (Tango with Django)

2014-10-13 Thread Collin Anderson
Hi Max, By default, the runserver command in a new django project will serve static media, which I think is what the tutorial is referencing. It's useful for developing your website, but be sure to read the tutorial's warning: > While using the Django development server to serve your static me

Re: Static Media Server (Tango with Django)

2014-10-13 Thread Andreas Kuhne
Using a static media server or not is more a choice. I don't think it is an outdated concept, rather the opposite, depending on how you want to deploy it. We are using Amazon CloudFront for our media and static files. That way we don't get the load on our nginx servers (we genera

Re: Static Media Server (Tango with Django)

2014-10-13 Thread Max Nathaniel Ho
Hi DR, Thanks for your reply. I wanted to clarify - 1. The purpose of Static Media Server and 2. If it is an outdated concept On Monday, October 13, 2014 4:57:32 PM UTC+8, Daniel Roseman wrote: > > On Monday, 13 October 2014 08:39:26 UTC+1, Max Nathaniel Ho wrote: >> >>

Re: Static Media Server (Tango with Django)

2014-10-13 Thread Daniel Roseman
*. > *4.4. The Static Media Server > <http://www.tangowithdjango.com/book/chapters/templates_static.html#the-static-media-server>* > > *Now that you can dispatch static files, let’s look at uploading media. > Many websites provide their users with the ability to do this - for

Static Media Server (Tango with Django)

2014-10-13 Thread Max Nathaniel Ho
Hi all, I am going through this tutorial on Tango with Django - http://www.tangowithdjango.com/book/chapters/templates_static.html I extracted the specific part of the tutorial as seen in *BOLD*. *4.4. The Static Media Server <http://www.tangowithdjango.com/book/chapters/templates_static.h

Thumbnail and separated media server approach

2010-07-28 Thread Michel Thadeu Sabchuk
ion. I want to make it possible to have the dynamic media files on a separated server, first because the boost on the site (2 connections opening the same time) and to cost cutting (a media server are cheaper as I can use a vps with nginx or even the rackspace cloud files). Do you have any advice? I

Re: Media Server

2010-04-03 Thread Daniel Roseman
On Apr 3, 1:10 pm, Enpaksh wrote: > Yes tht is a posibility too and i have tried tht approach but the   > issue is tht there are lot of html files in my app and i am trying to   > avoid writing any explicit url because thn i have to keep track of all   > the pages tht reference

Re: Media Server

2010-04-03 Thread Enpaksh
Yes tht is a posibility too and i have tried tht approach but the issue is tht there are lot of html files in my app and i am trying to avoid writing any explicit url because thn i have to keep track of all the pages tht reference to the media server in tht fasion. Can't i define my s

Re: Media Server

2010-04-03 Thread Daniel Roseman
pproach! If you do this you are negating the whole point of having a separate media server. You are ensuring that a request for a media asset has to go through the whole Django stack, for absolutely no purpose. An HTML page is quite happy to reference media on a different domain - you just have to

Re: Media Server

2010-04-03 Thread orokusaki
Absolutely not. You're thinking of everything from a "how does it relate to my python program" standpoint. Using a media server has nothing to do with django from a programming stand point. Python is a great language but urlopen.read() is certainly not sufficient for handling your

Re: Media Server

2010-04-02 Thread Sam Lai
any requests coming to http://mysite.com/media to your media server and let that handle it? There's no reason for media traffic to load into Django and make Django download the file and re-serve it. It's inefficient and silly. (Unless of course, you are using Django to modify th

Re: Media Server

2010-04-02 Thread Enpaksh
someone please explicitly specify what needs to go in MEDIA_URL and MEDIA_ROOT and how does urls.py routes to a cross domain media server. I am not interested in any local directory structure to accomplish this task because that is insecure and inefficient. Any help would be appreciated. It doesn'

Re: Media Server

2010-04-02 Thread Daniel Roseman
On Apr 2, 4:21 pm, Media Server setup wrote: > Hello, > > I have recently setup a Media server on a different box which I would > like to use to serve static files to my django application. I > personally find django documentation to be vague on this particular > topic and I was

Re: Media Server

2010-04-02 Thread orokusaki
On Apr 2, 11:30 am, Dexter wrote: > Hi, > > Can someone please > > explicitly specify what needs to go in MEDIA_URL and MEDIA_ROOT and > > how does urls.py routes to a cross domain media server. I am not > > interested in any local directory structure to accomplish th

Re: Media Server

2010-04-02 Thread Dexter
Hi, I don't have any experience with lighthttpd, but I guess you shouldn't use django for serving your static files. You should redirect your domain.tld/media folder to your box using lighthttpd or apache. Grtz, Dexter On Fri, Apr 2, 2010 at 5:21 PM, Media Server setup wrote: >

Media Server

2010-04-02 Thread Media Server setup
Hello, I have recently setup a Media server on a different box which I would like to use to serve static files to my django application. I personally find django documentation to be vague on this particular topic and I was hoping if someone who has done this type of setup before would be able to

Re: media server implementation - context processor, custom template tag, or custom filter

2008-06-23 Thread phillc
that is an extremely complex problem for such small problem... if you are worried about caching, just append a number to the file or add a date to it. On Jun 22, 6:48 pm, alex <[EMAIL PROTECTED]> wrote: > I already have {{ MEDIA_URL }} set in html, css, and js templates and > that's working grea

media server implementation - context processor, custom template tag, or custom filter

2008-06-22 Thread alex
I already have {{ MEDIA_URL }} set in html, css, and js templates and that's working great. I would like to start setting far future caching headers on media files based on the git abbreviated commit hash for each file. i can think of three options for implementing this and would appreciate feedba

Re: Scaling architecture question: separate media server

2007-10-30 Thread Udi
I've just moved my media to a separate server. I run an rsync over ssh whenever a user uploads a new profile image. Seems to work ok so far. The pain points are: 1) Setting up ssh keys so this can run unattended. 2) Because of (1), I had to run apache as a new user that has the right permissi

Re: Scaling architecture question: separate media server

2007-10-30 Thread Jökull
Maybe a SFTP mount or some sort of rsync will suffice? On Oct 29, 4:18 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 10/29/07, Jökull <[EMAIL PROTECTED]> wrote: > > > There is a lively discussion on an interesting upcoming feature of > > Django called FileStorage. This will allow any sort of

Re: Scaling architecture question: separate media server

2007-10-29 Thread Marty Alchin
On 10/29/07, Jökull <[EMAIL PROTECTED]> wrote: > There is a lively discussion on an interesting upcoming feature of > Django called FileStorage. This will allow any sort of file storage > mechanism to plug into FileFields and process uploads. A good example > would be Amazon's S3 where a FileStora

Scaling architecture question: separate media server

2007-10-29 Thread Jökull
I am in the planning stage of creating a Django media player. It is intended for a small group of users, but still anticipating a lot of bandwidth usage both upload and download as this is an MP3 repository with a web frontend. There is a lively discussion on an interesting upcoming feature of Dj

Re: Problem setting up a separate media server

2007-01-06 Thread Jeremy Dunck
On 1/5/07, stoKes <[EMAIL PROTECTED]> wrote: ... > > We're doing exactly the same thing. This isn't a provided dj context > > processor due to the slippery slope of including all settings in > > context. It's been raised many times. Adding media_url should > > probably be a cookbook entry...

Re: Problem setting up a separate media server

2007-01-06 Thread Rob Hudson
what about defining images in your stylesheets? The way we solve that is that if you reference your CSS with src="{{ media_url }}/css/style.css" and have urls in that CSS, define your urls with relative addressing and they'll also come from the media server. For us, we h

Re: Problem setting up a separate media server

2007-01-05 Thread stoKes
On Dec 13 2006, 7:46 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: Good point - done. http://code.djangoproject.com/wiki/CookBookUsingExternalMedia -joehttp://www.rhonabwy.com/wp/ On 12/13/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On 12/13/06, Joseph Heck <[EMAIL PROTECTED]> wrote: >

Re: Problem setting up a separate media server

2006-12-13 Thread Joseph Heck
Good point - done. http://code.djangoproject.com/wiki/CookBookUsingExternalMedia -joe http://www.rhonabwy.com/wp/ On 12/13/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > > On 12/13/06, Joseph Heck <[EMAIL PROTECTED]> wrote: > > We're using > > > > blah blah blah > ... > > And then in the setti

Re: Problem setting up a separate media server

2006-12-13 Thread Tipan
Thanks all - that makes a lot more sense now. It was definately a case of me looking for too simple a solution in the first place. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Problem setting up a separate media server

2006-12-13 Thread Jeremy Dunck
On 12/13/06, Joseph Heck <[EMAIL PROTECTED]> wrote: > We're using > > blah blah blah ... > And then in the settings.py under TEMPLATE_CONTEXT_PROCESSORS, we added: >"myproject.context_processors.common", > > There may well be a much better way to accomplish this all, but that worked > out nic

Re: Problem setting up a separate media server

2006-12-13 Thread Joseph Heck
What you want to use in your template is a reference to the media URL prior to the static images. We're using blah blah blah blah.. It generally requires a bunch of search & replace for the first time you implement it, and then just remembering to reference the {{media_url}} thereafter as you bui

Re: Problem setting up a separate media server

2006-12-13 Thread Waylan Limberg
On 12/13/06, Tipan <[EMAIL PROTECTED]> wrote: > > > > On Dec 13, 1:58 pm, "Waylan Limberg" <[EMAIL PROTECTED]> wrote: > > On 12/13/06, Tipan <[EMAIL PROTECTED]> wrote: > > > > http://192.168.1.9:3000/gobites.jpg";> > > > > Generally speaking I believe the conventional way to do this when both > >

Re: Problem setting up a separate media server

2006-12-13 Thread Tipan
On Dec 13, 1:58 pm, "Waylan Limberg" <[EMAIL PROTECTED]> wrote: > On 12/13/06, Tipan <[EMAIL PROTECTED]> wrote: > > http://192.168.1.9:3000/gobites.jpg";> > > Generally speaking I believe the conventional way to do this when both > servers are on one machine is to point all traffic to the static

Re: Problem setting up a separate media server

2006-12-13 Thread Waylan Limberg
On 12/13/06, Tipan <[EMAIL PROTECTED]> wrote: > > However, I can't seem to get an simple image to display through a > Django template. > > I've tried all sorts of combinations and can't seem to make any > headway. > > Any advice welcome. Details of my settings etc. below. > > Template call is simp

Problem setting up a separate media server

2006-12-13 Thread Tipan
I need some advice on configuring a separate media server for our jpeg images. We are running Django on Apache 2.2 with mod_python 3.2.10 (python2.5) on a Windows 2003 server. As recommended in the docs, I am setting up a separate web server to serve the media. I've installed Lighttpd 1

Re: Best way to run a seperate media server on same machine as Django?

2006-12-03 Thread Brandon Warren
Thanks for the replies! Because another IP addr isn't available, I decided to run Lighty on port 81. I don't need SSL, so that seemed like the best solution, and it's working well for me. -Brandon --~--~-~--~~~---~--~~ You received this message because you are