*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
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
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
3 matches
Mail list logo