Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 74 by
asari.ta...@gmail.com: Django 1.4 support (With django 1.4,
jython manage.py war fails)
http://code.google.com/p/django-jython/issues/detail?id=74
What steps will reproduce the problem?
1. django-admin.py startproject foo
2. cd foo
3. modify foo/settings.py to append 'doj' into 'INSTALLED_APPS'
4. jython manage.py war
What is the expected output? What do you see instead?
A .jar file should be created without errors, but I get following error
lines:
Assembling WAR on /tmp/tmp7EzcfU/flm
Copying WAR skeleton...
Copying jython.jar...
Copying Lib...
Copying flm...
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/asari/jvenv/Lib/site-packages/django/core/management/__init__.py",
line 443, in execute_from_command_line
utility.execute()
File "/home/asari/jvenv/Lib/site-packages/django/core/management/__init__.py",
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/asari/jvenv/Lib/site-packages/django/core/management/base.py",
line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/asari/jvenv/Lib/site-packages/django/core/management/base.py",
line 232, in execute
output = self.handle(*args, **options)
File "/home/asari/jvenv/Lib/site-packages/django/core/management/base.py",
line 232, in execute
output = self.handle(*args, **options)
File "/home/asari/jvenv/Lib/site-packages/doj/management/commands/war.py",
line 84, in handle
self.fix_project_settings(exploded_war_dir, context_root)
File "/home/asari/jvenv/Lib/site-packages/doj/management/commands/war.py",
line 204, in fix_project_settings
fix_admin_media = (settings.ADMIN_MEDIA_PREFIX and
File "/home/asari/jvenv/Lib/site-packages/django/utils/functional.py",
line 185, in inner
return func(self._wrapped, *args)
AttributeError: 'Settings' object has no attribute 'ADMIN_MEDIA_PREFIX'
What version of the product are you using? On what operating system?
Ubuntu Linux 12.04
OpenJDK 1.7
Jython 2.7a2
Django 1.4
django-jython 1.3.0
Please provide any additional information below.