In the settings.py I added the
STATIC_ROOT after I made the
python manage.py collectstatic and it has put all of
admin within the directory, but all that they are
I've seen another post in stack overflow that said to add
STATICFILES_DIRS but it has not worked either.
I have evidently made a
service gunicorn restart after each change.
Could someone enlighten me?
STATIC_URL = '/static/' STATIC_ROOT = '/home/django/django_project/static/' MEDIA_URL = '/media/' MEDIA_ROOT = '/home/django/django_project/media/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, '/home/django/django_project/'), )
No one knows how to load all those files?
ERROR: Here is one of the errors for you to see the route you are looking for.
the route the browser is searching for is
The fact is that within my folder static are all files.
EDITO: When executing the command that says @ césar I get the following message.
root@machine:/home/django/django_project# python manage.py findstatic rest_framework/css/default.css /home/django/django_project/django_project/urls.py:33: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got my_app.views.home). Pass the callable instead. url(r'^$', 'my_app.views.home', name='home'), /home/django/django_project/django_project/urls.py:37: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead. url(r'^API', include(router.urls)), System check identified some issues: WARNINGS: ?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG. Found 'rest_framework/css/default.css' here: /usr/local/lib/python2.7/dist-packages/rest_framework/static/rest_framework/css/default.css
No one knows how to do it? Some charitable soul? I've tried everything and I can not find the way.
EDIT: I've deleted the entire static folder and I've done a collectstatic again and the same thing keeps happening to me. (Can not find the img of the boolean /static/admin/img/icon-yes.svg and they are in that directory)