I am using Django-page-CMS
Everything works fine However once I create my own views which extend from pages used within the CMS the CSS does not display.
This is strange because these pages display the CSS fine, as long as I do not use my own views.
I would greatly appreciate some help on this matter or at least some suggestions on why this is happening and how it could be rectified.
I am using the static files trick.
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
url(r'^admin_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.ADMIN_MEDIA_ROOT}),
Here is how I have linked styles....links to jquery also exist but this should not affect.
<head>
<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}css/style.css" />
</head>
I have some styles in pages which extend the base linked in the following way....
{% extends "base.html" %}
{% block page_style %}
<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}css/index.css" />
{% endblock %}
Again, Everything works fine until I create my own views and pages which extend from any of these pages. Once I view the new pages no css displays in any page. not even the base however if I do not use my own views everything is displayed fine. I would greatly appreciate help on this matter.