Project

General

Profile

Segnalazione #60

Segnalazione #56: collezione di file statici su git

Errore collectstatic dopo movimento cartella static

Added by Marco Marinello over 7 years ago. Updated over 7 years ago.

Status:
Chiuso
Priority:
Normale
Target version:
Start date:
06/29/2016
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed

Description

Dopo la modifica della posizione della cartella static nel commit 48c3038f il collectstatic da il seguente errore

root@raspi-server:/var/www/fuss-hearings# python manage.py collectstatic
/usr/local/lib/python2.7/dist-packages/django/utils/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.
  return meta(name, bases, d)

You have requested to collect static files at the destination
location as specified in your settings:

    /static

This will overwrite existing files!
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 176, in handle
    collected = self.collect()
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 98, in collect
    for path, storage in finder.list(self.ignore_patterns):
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/finders.py", line 112, in list
    for path in utils.get_files(storage, ignore_patterns):
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/utils.py", line 28, in get_files
    directories, files = storage.listdir(location)
  File "/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py", line 299, in listdir
    for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/var/www/fuss-hearings/static'

Associated revisions

Revision be1ed7ca (diff)
Added by Marco Marinello over 7 years ago

Correzioni file statici
refs #60

History

#1

Updated by Christopher R. Gabriel over 7 years ago

  • Status changed from Nuovo to Commenti
  • Assignee changed from Christopher R. Gabriel to Marco Marinello

Perche' devi togliere da settings la voce relativa a STATICFILE_DIRS, perche' punta ad una directory che non esiste.

Quella nuova (nella app) viene trovata automaticamente perche' c'e' AppDirectoriesFinder tra le voci di configurazione per STATICFILES_FINDERS

#2

Updated by Marco Marinello over 7 years ago

  • Status changed from Commenti to Chiuso
  • Resolution set to fixed

Also available in: Atom PDF