Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. python manage.py collectstatic
  2.  
  3. ValueError: The joined path (/) is located outside of the base path component (/home/val/Programming/Django/nedviga/nedviga/assets)
  4.  
  5. INSTALLED_APPS = (
  6. 'django.contrib.admin',
  7. 'django.contrib.auth',
  8. 'django.contrib.contenttypes',
  9. 'django.contrib.sessions',
  10. 'django.contrib.messages',
  11. 'django.contrib.staticfiles',
  12. 'pipeline',
  13. )
  14.  
  15. STATIC_URL = '/assets/'
  16.  
  17. STATIC_ROOT = os.path.join(BASE_DIR, 'assets_compressed')
  18.  
  19. STATICFILES_DIRS = (
  20. os.path.join(BASE_DIR, 'assets'),
  21. )
  22.  
  23. PIPELINE_ENABLED = True
  24.  
  25. STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
  26.  
  27. PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor'
  28.  
  29. PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor'
  30.  
  31. PIPELINE_COMPILERS = (
  32. 'pipeline.compilers.less.LessCompiler'
  33. )
  34.  
  35. PIPELINE_CSS = {
  36. 'libs': {
  37. 'source_filenames': (
  38. 'libs/bootstrap/css/bootstrap.min.css'
  39. ),
  40. 'output_filename': 'css/libs.css'
  41. },
  42. 'site': {
  43. 'source_filenames': (
  44. 'main.less'
  45. ),
  46. 'output_filename': 'css/main.css'
  47. }
  48. }
  49.  
  50. PIPELINE_JS = {
  51. 'libs': {
  52. 'source_filenames': (
  53. 'libs/jquery/jquery-2.1.1.min.js'
  54. 'libs/bootstrap/js/bootstrap.min.js'
  55. ),
  56. 'output_filename': 'js/libs.js'
  57. },
  58. 'site': {
  59. 'source_filenames': (
  60. 'main.js'
  61. ),
  62. 'output_filename': 'js/main.js'
  63. }
  64. }
  65.  
  66. project_name
  67.  
  68. assets
  69. libs
  70. ...
  71. main.js
  72. main.less
  73.  
  74. assets_compressed
  75. *empty*
  76.  
  77. project_name
  78. manage.py
  79.  
  80. <!DOCTYPE html>
  81. <html>
  82.  
  83. <head lang="en">
  84. <meta charset="UTF-8">
  85. <title>AAARGH</title>
  86.  
  87. {% load compressed %}
  88. {% compressed_css 'libs' %}
  89. {% compressed_css 'site' %}
  90. </head>
  91.  
  92. <body>
  93.  
  94. {% compressed_js 'libs' %}
  95. {% compressed_js 'site' %}
  96. </body>
  97.  
  98. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement