Re: Serving static file on Windows

2011-05-31 Thread Alagu Madhu
Hi, I use Django 1.3. sample/ static/ js/jquery.1.6.1.min.js css/ settings.py APP_DIR = os.path.abspath(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(APP_DIR, 'static/') STATIC_URL = 'http://192.168.1.141:44/static/'

Re: Serving static file on Windows

2011-05-31 Thread Alagu Madhu
Hi, I use Django 1.3. sample/ static/ js/jquery.1.6.1.min.js css/ settings.py APP_DIR = os.path.abspath(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(APP_DIR, 'static/') STATIC_URL = 'http://192.168.1.141:44/static/'

Re: Serving static file on Windows

2011-05-31 Thread Praveen Krishna R
*Pasting one of my earlier replies to the same question* *** * *Please check django official docs to find out how static files are served on production and development server. in the dev server include a similiar snippet into your projects urls.py, urlpatterns: (r'^site_media/(?P.*)$',

Re: Serving static file on Windows

2011-05-30 Thread Alagu Madhu
urls.py from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', (r'^$', 'hydra.views.index'), ) On May 30, 12:28 pm, Praveen Krishna R wrote: > *could you dump your urls.py ? > * > > > > > > > > > > On Mon, May 30, 2011

Re: Serving static file on Windows

2011-05-30 Thread Praveen Krishna R
*could you dump your urls.py ? * On Mon, May 30, 2011 at 12:19 PM, Alagu Madhu wrote: > Hi, > > sample/ > static/ >js/jquery.1.6.1.min.js > css/ > > settings.py > > APP_DIR = os.path.abspath(os.path.dirname(__file__)) >

Re: Serving static file on Windows

2011-05-30 Thread Alagu Madhu
Hi, sample/ static/ js/jquery.1.6.1.min.js css/ settings.py APP_DIR = os.path.abspath(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(APP_DIR, 'static/') STATIC_URL = '/static/' INSTALLED_APPS = ( 'django.contrib.auth',

Re: Serving static file on Windows

2011-05-24 Thread shofty
ignore that last comment, im clearly behind a version! not sure why you're needing to static.serve the static files, if you're on django 1.3 it does that bit for you. On May 24, 9:22 am, Alagu Madhu wrote: > Hi, > > sample/ >           media/ >                    

Re: Serving static file on Windows

2011-05-24 Thread shofty
I thought we were still on jquery 1.5.1? Matt On May 24, 9:22 am, Alagu Madhu wrote: > Hi, > > sample/ >           media/ >                     js/jquery.1.6.1.min.js >                  css/ >            static/ >                     js/jquery.1.6.1.min.js >                  

Serving static file on Windows

2011-05-24 Thread Alagu Madhu
Hi, sample/ media/ js/jquery.1.6.1.min.js css/ static/ js/jquery.1.6.1.min.js css/ settings.py import os PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) MEDIA_ROOT =

Re: Serving static file on Windows

2008-10-04 Thread mrsource
You're right...the ADMIN_MEDIA_PREFIX is routed before MEDIA_URL. Changing one of them has solved my issue. Carlo On 4 Ott, 21:34, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Oct 4, 2008 at 3:19 PM, mrsource <[EMAIL PROTECTED]> wrote: > > > I can upload images on the right place in the

Re: Serving static file on Windows

2008-10-04 Thread Karen Tracey
On Sat, Oct 4, 2008 at 3:19 PM, mrsource <[EMAIL PROTECTED]> wrote: > > I can upload images on the right place in the file system, but then > django don't serve them. > I'm using the development server and the current SVN version of > django. > > I have this configuration in settings.py: >

Serving static file on Windows

2008-10-04 Thread mrsource
I can upload images on the right place in the file system, but then django don't serve them. I'm using the development server and the current SVN version of django. I have this configuration in settings.py: MEDIA_ROOT = 'D:/codice/workspace/aurea/media/' MEDIA_URL = '/media/' ADMIN_MEDIA_PREFIX