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/'
TEMPLATE_DIRS = (
os.path.join(APP_DIR, 'templates/')
)
urls.py
from django.conf.urls.defaults import patterns, include, url
urlpatterns = patterns('',
(r'^$', 'hydra.views.index'),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root':'/django/spl/kk/static'}),
)
The above settings works.
Thanks
Madhu
--
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