I do not think this is a duplicate. I reviewed many answers to similar problems.
Note: This works fine, and django finds all the static files.
UPDATE: Sounds like a PyCharm bug. If I become static in the directory of my application, PyCharm will be able to solve it. But I have this static in the src main directory, because several applications will use CSS. It works now, and Django has no problem with this. I see that this is a PyCharm error.
PyCharm is set up, and everything else seems to work before the Pyjarm project offers the Django project.
Pycharm cannot decide, which means that I cannot use auto complete, and this is annoying. If I press ctrl-space, the only directory that appears is admin. This means that PyCharm completely ignores my static directory.
I also tried to make it a template and a consulting director. No luck there.
{% load static %}
...
<link rel="stylesheet" href="{% static ''%}">
<link rel="stylesheet" href="{% static 'css/skeleton.css' %}">
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
...
This code works just fine. However, PyCharm does not find the URL.
INSTALLED_APPS = [
'django.contrib.staticfiles',
# admin specific
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
]
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
STATIC_URL = '/static/'

