urls.py
from django.conf.urls import include, urlfrom django.contrib import adminurlpatterns = [ url(r'^admin/', include(admin.site.urls)),]
settings.py
STATICFILES_DIRS = ( os.path.join(base_DIR, "static"),)STATIC_URL = '/static/'# remove STATIC_ROOT
base.html
您的标题标签未关闭。
<!DOCTYPE html><head> {% load static %} <script src="{% static 'app.js' %}"></script> <title>Site</title></head><body><img src="{% static 'img.png' %}" alt="Mon image" /> {% block content %}{% endblock %}</body></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)