Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "prototypes.py", line 39, in <module>
  3. execute_from_command_line(sys.argv)
  4. File "/home/leo/Desktop/learning_log/ll_env/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
  5. utility.execute()
  6. File "/home/leo/Desktop/learning_log/ll_env/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
  7. self.fetch_command(subcommand).run_from_argv(self.argv)
  8. File "/home/leo/Desktop/learning_log/ll_env/lib/python3.5/site-package/django/core/management/base.py", line 294, in run_from_argv
  9. self.execute(*args, **cmd_options)
  10. File "/home/leo/Desktop/learning_log/ll_env/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute
  11. output = self.handle(*args, **options)
  12. File "/home/leo/Desktop/prototypes/sitebuilder/management/commands/build.py", line 42, in handle
  13. call_command('compress',interactive=False,force=True)
  14. File "/home/leo/Desktop/learning_log/ll_env/lib/python3.5/site-packages/django/core/management/__init__.py", line 113, in call_command
  15. command = load_command_class(app_name, command_name)
  16. File "/home/leo/Desktop/learning_log/ll_env/lib/python3.5/site-packages/django/core/management/__init__.py", line 40, in load_command_class
  17. module = import_module('%s.management.commands.%s' % (app_name, name))
  18. File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
  19. return _bootstrap._gcd_import(name[level:], package, level)
  20. File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  21. File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  22. File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  23. File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  24. File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  25. File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  26. File "/home/leo/Desktop/learning_log/ll_env/lib/python3.5/site-packages/compressor/management/commands/compress.py", line 9, in <module>
  27. from django.core.management.base import NoArgsCommand, CommandError
  28. ImportError: cannot import name 'NoArgsCommand'
  29.  
  30. import os
  31. import sys
  32. from django.conf import settings
  33.  
  34.  
  35. BASE_DIR = os.path.dirname(__file__)
  36.  
  37. settings.configure(
  38. DEBUG=True,
  39. SECRET_KEY='plasq@qb+&t-@=x56@=ss=+y-4kp*hj1wy5p!+$cinzhnd+erb',
  40. ROOT_URLCONF='sitebuilder.urls',
  41. MIDDLEWARE_CLASSES=(),
  42. INSTALLED_APPS=(
  43. 'django.contrib.staticfiles',
  44. 'sitebuilder',
  45. 'compressor',
  46. ),
  47.  
  48. TEMPLATES=(
  49. {
  50. 'BACKEND':'django.template.backends.django.DjangoTemplates',
  51. 'DIRS':[],
  52. 'APP_DIRS':True,
  53. },
  54. ),
  55. STATIC_URL='/static/',
  56. SITE_PAGES_DIRECTORY=os.path.join( BASE_DIR,'pages'),
  57. SITE_OUTPUT_DIRECTORY=os.path.join( BASE_DIR,'_build'),
  58.  
  59. STATIC_ROOT=os.path.join( BASE_DIR,'_build','static'),
  60. STATICFILES_FINDERS=(
  61. 'django.contrib.staticfiles.finders.FileSystemFinder',
  62. 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  63. 'compressor.finders.CompressorFinder',
  64. )
  65. )
  66. if __name__=="__main__":
  67. from django.core.management import execute_from_command_line
  68. execute_from_command_line(sys.argv)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement