Changes between Initial Version and Version 1 of Ticket #7910
- Timestamp:
- Jul 23, 2008, 6:37:04 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7910 – Description
initial v1 1 1 To put it in a nutshell someone should add : 2 from django.core.management.base import CommandError 2 {{{from django.core.management.base import CommandError}}} 3 3 At the top of the file called "compilemessages.py" 4 4 5 5 Traceback : 6 """ 6 {{{ 7 7 django-survey\examples>django-admin.py compilemessages --setings="examples.settings" 8 8 Usage: C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\django-admin.py compilemessages [options] … … 10 10 Compiles .po files to .mo files for use with builtin gettext support. 11 11 12 C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\django-admin.py: error: no such option: - 13 -setings 12 C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\django-admin.py: error: no such option: --setings 14 13 15 C:\yml\_myScript_\dj_things\web_development\django-survey\examples>django-admin.py compilemessages --settings="examples 16 .settings" 14 C:\yml\_myScript_\dj_things\web_development\django-survey\examples>django-admin.py compilemessages --settings="examples.settings" 17 15 Traceback (most recent call last): 18 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\django-admin.py", line 5, in <mod 19 ule> 16 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\django-admin.py", line 5, in <module> 20 17 management.execute_from_command_line() 21 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\__init__.py", line 29 22 2, in execute_from_command_line 18 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\__init__.py", line 292, in execute_from_command_line 23 19 utility.execute() 24 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\__init__.py", line 24 25 8, in execute 20 File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\__init__.py", line 248, in execute 26 21 self.fetch_command(subcommand).run_from_argv(self.argv) 27 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\base.py", line 77, in 28 run_from_argv 22 File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\base.py", line 77, in run_from_argv 29 23 self.execute(*args, **options.__dict__) 30 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\base.py", line 91, in 31 execute 24 File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\base.py", line 91, in execute 32 25 output = self.handle(*args, **options) 33 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\commands\compilemessa 34 ges.py", line 58, in handle 26 File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\commands\compilemessages.py", line 58, in handle 35 27 compile_messages(locale) 36 28 File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\commands\compilemessages.py", line 22, in compile_messages 37 raise CommandError("This script should be run from the Django SVN tree or your project or app tree, or with the sett 38 ings module specified.") 29 raise CommandError("This script should be run from the Django SVN tree or your project or app tree, or with the settings module specified.") 39 30 NameError: global name 'CommandError' is not defined 40 41 """ 31 }}}