Serving media files

2010-06-17 Thread Jagdeep Singh Malhi
i am using this link http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-deployment-modwsgi In this link i am unable to under stand topic SERVING MEDIA FILES the lines(given below) which is used in this tutorial , i am able understand where we edit this line , if its edit in

Re: Serving media files

2010-06-17 Thread Graham Dumpleton
On Jun 17, 9:17 pm, Jagdeep Singh Malhi wrote: > i am using this > linkhttp://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-... > > In this link i am unable to under stand topic  SERVING MEDIA FILES > the lines(given below) which is used in this tutori

Re: Serving media files

2010-06-17 Thread Jagdeep Singh Malhi
, Graham Dumpleton wrote: > On Jun 17, 9:17 pm, Jagdeep Singh Malhi > wrote: > > > i am using this > > linkhttp://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-... > > > In this link i am unable to under stand topic  SERVING MEDIA FILES > > the line

Re: Serving media files

2010-06-17 Thread Graham Dumpleton
ep Singh Malhi > > wrote: > > > > i am using this > > > linkhttp://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-... > > > > In this link i am unable to under stand topic  SERVING MEDIA FILES > > > the lines(given below) which is

Re: Serving media files

2010-06-18 Thread Jagdeep Singh Malhi
On Jun 17, 5:03 pm, Graham Dumpleton wrote: i copy the media directory in my "/home/yourname/mysite" directory. > > Thus, run Python and go: > > >>> import django > >>> import os > >>> os.path.dirname(django.__file__) import django import os os./usr/local/lib/python2.6/dist-packeages/ django

Re: Serving media files

2010-06-19 Thread Kenneth Gonsalves
On Saturday 19 June 2010 10:48:57 Jagdeep Singh Malhi wrote: > packeages/ > packages -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Serving media files

2010-06-19 Thread Jagdeep Singh Malhi
On Jun 19, 3:12 pm, Kenneth Gonsalves wrote: > On Saturday 19 June 2010 10:48:57 Jagdeep Singh Malhi wrote:> packeages/ > > packages change this "packages" , but problem is not solve > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC -- You received this message becau

Re: Serving media files

2010-06-19 Thread Graham Dumpleton
On Jun 19, 3:18 pm, Jagdeep Singh Malhi wrote: > On Jun 17, 5:03 pm, Graham Dumpleton > wrote: > >  i copy the media  directory in  my  "/home/yourname/mysite" > directory. > > > Thus, run Python and go: > > > >>> import django > > >>> import os > > >>> os.path.dirname(django.__file__) > > impo

Re: Serving media files

2010-06-19 Thread Jagdeep Singh Malhi
now my httpd.conf file is :- Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/ admin/media/ Order deny,allow Allow from all WSGIScriptAlias / /home/jagdeep/mysite/apache/django.wsgi Order allow,deny Allow from all but my http://localhost/admin/ is not show in graphi

Re: Serving media files

2010-06-19 Thread Justin Myers
Have you set your MEDIA_ROOT, MEDIA_URL and ADMIN_MEDIA_PREFIX settings in settings.py? On Jun 19, 12:06 pm, Jagdeep Singh Malhi wrote: > now my httpd.conf   file is :- > > Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/ > admin/media/ > > media/> > Order deny,allow > Allow

Re: Serving media files

2010-06-19 Thread Graham Dumpleton
On Jun 20, 3:06 am, Jagdeep Singh Malhi wrote: > now my httpd.conf   file is :- > > Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/ > admin/media/ > > media/> > Order deny,allow > Allow from all > Change this to: Options Indexes Order deny,allow Allow from all

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
On Jun 19, 10:36 pm, Justin Myers wrote: > Have you set your MEDIA_ROOT, MEDIA_URL and ADMIN_MEDIA_PREFIX > settings in settings.py? > setting is :- MEDIA_ROOT = '/home/your_name/mysite/media/' MEDIA_URL = 'http://localhost/media' ADMIN_MEDIA_PREFIX = '/media/' > On Jun 19, 12:06 pm, Jagdee

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
in which file i see these lines . wrote: > On Jun 20, 3:06 am, Jagdeep Singh Malhi > wrote: > > > now my httpd.conf   file is :- > > > Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/ > > admin/media/ > > > > media/> > > Order deny,allow > > Allow from all > > > > Cha

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
Is these setting of my setting.py files are correct ? setting is :- MEDIA_ROOT = '/home/your_name/mysite/media/' MEDIA_URL = 'http://localhost/media' ADMIN_MEDIA_PREFIX = '/media/' On Jun 20, 2:08 pm, Jagdeep Singh Malhi wrote: > On Jun 19, 10:36 pm, Justin Myers wrote:> Have you set > y

Re: Serving media files

2010-06-20 Thread Graham Dumpleton
On Jun 20, 7:34 pm, Jagdeep Singh Malhi wrote: > in  which  file  i see  these lines . > >   > On Jun 20, 5:25 am, Graham Dumpleton > wrote: > > > > > On Jun 20, 3:06 am, Jagdeep Singh Malhi > > wrote: > > > > now my httpd.conf   file is :- > > > > Alias /media/ /usr/local/lib/python2.6/dist-

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
On Jun 20, 3:08 pm, Graham Dumpleton wrote: > On Jun 20, 7:34 pm, Jagdeep Singh Malhi > wrote: > > > in  which  file  i see  these lines . > > >   > > > In your browser, when you request the admin page which isn't showing > the styling, use your browser to view the source code for that page as

Re: Serving media files

2010-06-20 Thread Graham Dumpleton
On Jun 20, 9:17 pm, Jagdeep Singh Malhi wrote: > On Jun 20, 3:08 pm, Graham Dumpleton > wrote: > > > On Jun 20, 7:34 pm, Jagdeep Singh Malhi > > wrote: > > > > in  which  file  i see  these lines . > > > >   > > > > yes  these links are  shown in source file > > > > > In your browser, when yo

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
On Jun 20, 5:00 pm, Graham Dumpleton wrote: > On Jun 20, 9:17 pm, Jagdeep Singh Malhi > wrote: > > > > > On Jun 20, 3:08 pm, Graham Dumpleton > > wrote: > > > > On Jun 20, 7:34 pm, Jagdeep Singh Malhi > > > wrote: > > > > > in  which  file  i see  these lines . > > > > >   > > > > > > yes  t

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
Sir thanks very much indeed , now its works. thanks. On Jun 20, 11:37 pm, Jagdeep Singh Malhi wrote: > On Jun 20, 5:00 pm, Graham Dumpleton > wrote: > > > On Jun 20, 9:17 pm, Jagdeep Singh Malhi > > wrote: > > > > On Jun 20, 3:08 pm, Graham Dumpleton > > > wrote: > > > > > On Jun

Apache serving media files

2007-09-10 Thread Rufman
im having problems serving media files in apache together with django. Somehow Apache can't get the admin media files or my own (located at / projectroot/media) for that matter. my apache conf file: ServerName www.bridgeco.com DocumentRoot D:/projects/pyOrganize/src/pyOrg

Re: Apache serving media files

2007-09-10 Thread Graham Dumpleton
On Sep 10, 6:19 pm, Rufman <[EMAIL PROTECTED]> wrote: > im having problems serving media files in apache together with django. > Somehow Apache can't get the admin media files or my own (located at / > projectroot/media) for that matter. >

Serving media files with Django/Apache/Nginx

2010-06-01 Thread Corey
I am a Django newbie and Im using Django to build an application. Im using Apache/mod_wsgi and Nginx as a proxy server to serve static files.I am running Nginx on port 80 and have all the Django pages forwarded to Apache. I have my media folder in the application root folder named media1. I cannot

Re: Serving media files with Django/Apache/Nginx

2010-06-01 Thread Daniel Roseman
On Jun 1, 10:40 pm, Corey wrote: > I am a Django newbie and Im using Django to build an application. Im > using Apache/mod_wsgi and Nginx as a proxy server to serve static > files.I am running Nginx on port 80 and have all the Django pages > forwarded to Apache. I have my media folder in the appli

Re: Serving media files with Django/Apache/Nginx

2010-06-01 Thread Vasil Vangelovski
Using the alias directive is much more easier and straighforward, for me at least. Here's an example configuration upstream django-backend { server testsite.local:4080; } server { listen 80; server_name testsite.com; location /{ proxy_re

Serving media files from Apache to specific users

2007-05-24 Thread Alexey Maksimov
Hi! The documentation here: http://www.djangoproject.com/documentation/apache_auth/ describes how to serve media files from Apache to authenticated users. How to implement anti-robot protection here? When user wants to download a file I show him some picture with code on it and then I want to gi