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/'
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/'
*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.*)$',
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
*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__))
>
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',
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/
>
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
>
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 =
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
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:
>
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
12 matches
Mail list logo