Re: UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
*From:* DanYun Liu > *Sent:* Friday, April 20, 2012 8:57 AM > *To:* django-users@googlegroups.com > *Subject:* UrlConf problem when capture value from url > > When I use url pattern like this "/search/(\s+)","myview" : django will > set mydomain/search as the root

Re: UrlConf problem when capture value from url

2012-04-20 Thread Daniel Sokolowski
Yes {{STATIC_URL}} - https://docs.djangoproject.com/en/dev/howto/static-files/#using-django-contrib-staticfiles Does that help? From: DanYun Liu Sent: Friday, April 20, 2012 8:57 AM To: django-users@googlegroups.com Subject: UrlConf problem when capture value from url When I use url pattern

UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
When I use url pattern like this "/search/(\s+)","myview" : django will set mydomain/search as the root domain, so the css and js will not request correctly: in my template: the request url for the index.css is: http://mydomain/search/styles/index.css but not: http://mydomain/styles/index.css