Issue 68 in django-jython: If using war.py that included STATIC_URL logic, need to change web.xml in war_skel

12 views
Skip to first unread message

django...@googlecode.com

unread,
Dec 1, 2011, 4:59:13 PM12/1/11
to django-j...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 68 by runningg...@gmail.com: If using war.py that included
STATIC_URL logic, need to change web.xml in war_skel
http://code.google.com/p/django-jython/issues/detail?id=68

What steps will reproduce the problem?
1.Update war.py to be latest with STATIC_URL logic.
2.jython manage.py war
3.Deploy war

What is the expected output? What do you see instead?
War does not have the STATIC_URL folder.

What version of the product are you using? On what operating system?
1.3.0b1 with updated war.py

Please provide any additional information below.
Need to add this to the web.xml file:

{% if settings.STATIC_URL %}
<servlet-mapping>
<servlet-name>fileservlet</servlet-name>
<url-pattern>{{ settings.STATIC_URL }}*</url-pattern>
</servlet-mapping>
{% endif %}

django...@googlecode.com

unread,
Feb 6, 2012, 8:50:01 AM2/6/12
to django-j...@googlegroups.com
Updates:
Status: Accepted
Owner: juneau001

Comment #1 on issue 68 by juneau001: If using war.py that included

STATIC_URL logic, need to change web.xml in war_skel
http://code.google.com/p/django-jython/issues/detail?id=68

(No comment was entered for this change.)

django...@googlecode.com

unread,
Dec 1, 2012, 3:37:17 AM12/1/12
to django-j...@googlegroups.com
Updates:
Status: Done

Comment #2 on issue 68 by andr...@st0cker.at: If using war.py that included
STATIC_URL logic, need to change web.xml in war_skel
http://code.google.com/p/django-jython/issues/detail?id=68

I've included a slightly modified version of your code.

django...@googlecode.com

unread,
Dec 1, 2012, 11:52:20 AM12/1/12
to django-j...@googlegroups.com

Comment #3 on issue 68 by juneau001: If using war.py that included
STATIC_URL logic, need to change web.xml in war_skel
http://code.google.com/p/django-jython/issues/detail?id=68

Andreas, thanks for your contribution, it is appreciated. I will test the
code for inclusion in the next release.

Reply all
Reply to author
Forward
0 new messages