File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/moneyed/classes.py", line 235, in get_currency
return CURRENCIES[code]
KeyError: "B'GHS'"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/init.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, *cmd_options)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(args, **options)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 83, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/executor.py", line 20, in init
self.loader = MigrationLoader(self.connection)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/loader.py", line 52, in init
self.build_graph()
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/loader.py", line 197, in build_graph
self.load_disk()
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/loader.py", line 108, in load_disk
migration_module = import_module("%s.%s" % (module_name, migration_name))
File "/usr/lib/python3.4/importlib/init.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 2254, in _gcd_import
File "", line 2237, in _find_and_load
File "", line 2226, in _find_and_load_unlocked
File "", line 1200, in _load_unlocked
File "", line 1129, in _exec
File "", line 1471, in exec_module
File "", line 321, in _call_with_frames_removed
File "/home/nelson/Projects/amadaa/sales/migrations/0004_auto_20161124_1152.py", line 10, in
class Migration(migrations.Migration):
File "/home/nelson/Projects/amadaa/sales/migrations/0004_auto_20161124_1152.py", line 25, in Migration
field=djmoney.models.fields.MoneyField(decimal_places=2, default=Decimal('0.0'), default_currency=b'GHS', max_digits=10),
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/djmoney/models/fields.py", line 297, in init
default = self.setup_default(default, default_currency, nullable)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/djmoney/models/fields.py", line 327, in setup_default
default = Money(default, default_currency)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/moneyed/classes.py", line 77, in init
currency = get_currency(str(currency).upper())
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/moneyed/classes.py", line 237, in get_currency
raise CurrencyDoesNotExist(code)
moneyed.classes.CurrencyDoesNotExist: No currency with code B'GHS' is defined.
(ENV) nelson@Nelson-Zorin-OS9:~/Projects/amadaa$
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/moneyed/classes.py", line 235, in get_currency return CURRENCIES[code] KeyError: "B'GHS'"
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "./manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/init.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, *cmd_options)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(args, **options)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 83, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/executor.py", line 20, in init
self.loader = MigrationLoader(self.connection)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/loader.py", line 52, in init
self.build_graph()
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/loader.py", line 197, in build_graph
self.load_disk()
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/django/db/migrations/loader.py", line 108, in load_disk
migration_module = import_module("%s.%s" % (module_name, migration_name))
File "/usr/lib/python3.4/importlib/init.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 2254, in _gcd_import
File "", line 2237, in _find_and_load
File "", line 2226, in _find_and_load_unlocked
File "", line 1200, in _load_unlocked
File "", line 1129, in _exec
File "", line 1471, in exec_module
File "", line 321, in _call_with_frames_removed
File "/home/nelson/Projects/amadaa/sales/migrations/0004_auto_20161124_1152.py", line 10, in
class Migration(migrations.Migration):
File "/home/nelson/Projects/amadaa/sales/migrations/0004_auto_20161124_1152.py", line 25, in Migration
field=djmoney.models.fields.MoneyField(decimal_places=2, default=Decimal('0.0'), default_currency=b'GHS', max_digits=10),
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/djmoney/models/fields.py", line 297, in init
default = self.setup_default(default, default_currency, nullable)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/djmoney/models/fields.py", line 327, in setup_default
default = Money(default, default_currency)
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/moneyed/classes.py", line 77, in init
currency = get_currency(str(currency).upper())
File "/home/nelson/Projects/amadaa/ENV/lib/python3.4/site-packages/moneyed/classes.py", line 237, in get_currency
raise CurrencyDoesNotExist(code)
moneyed.classes.CurrencyDoesNotExist: No currency with code B'GHS' is defined.
(ENV) nelson@Nelson-Zorin-OS9:~/Projects/amadaa$