Skip to content

Instantly share code, notes, and snippets.

@fadur
Created February 2, 2015 08:49
Show Gist options
  • Save fadur/6fefa6e8a84de9af08de to your computer and use it in GitHub Desktop.
Save fadur/6fefa6e8a84de9af08de to your computer and use it in GitHub Desktop.
(workers)www-data@worker-1:~/workers/current/storefront$ ./manage.py cache_catalog --special-categories latest
02/02/2015 09:46:52 AM [INFO] Caching "Latest"...
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/var/www/workers/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/var/www/workers/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/workers/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/var/www/workers/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/var/www/workers/current/storefront/lib/catalog/management/commands/cache_catalog.py", line 29, in timed
result = method(*args, **kw)
File "/var/www/workers/current/storefront/lib/catalog/management/commands/cache_catalog.py", line 240, in handle
cache_machine.cache_latest(before_days=14, silent=True)
File "/var/www/workers/current/storefront/lib/catalog/caching.py", line 340, in cache_latest
'{site}Product'.format(site=site_locale.title()))
File "<string>", line 1, in <module>
NameError: name 'DaProduct' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment