Issue 86 in django-jython: Buildwar command defect in static and media

27 views
Skip to first unread message

django...@googlecode.com

unread,
Nov 10, 2014, 10:41:14 PM11/10/14
to django-j...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 86 by Trinidad...@gmail.com: Buildwar command defect in static
and media
https://code.google.com/p/django-jython/issues/detail?id=86

What steps will reproduce the problem?
1. Use an existing/Create a new Django, with settings variables STATIC_URL
= '/{folder_of_choice}/' and
MEDIA_URL = '/{folder_of_choice}/'.
2. Run manage.py buildwar command.
3. Wait for the OSError if one of those folders exists in project source
folder.

What is the expected output? What do you see instead?

Expected: Static and Media files to be included in the .war file.
Instead: They're not being included in .war

What version of the product are you using? On what operating system?
django-jython -- Version 1.7.0b2
Operating System -- Mac OS X 10.10 (Yosemite)

Please provide any additional information below.

When running buildwar command, methods of
class 'buildwar.Command' '_is_media_included' and '_is_static_included'
impose first character of each of these variables (STATIC_URL,MEDIA_URL) to
be "/". Furthermore, do_copy_media and do_copy_static uses jython's
os.path.join what cause the trailing '/' make the new folders point to root
instead of the desired path.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages