Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango CSS. I get the HTML page with no CSS
    text
    copied!<p>I have had this problem for a while now, I have been trying to move my CSS file all over the place and changing the settings, and even messing with the media url stuff, which I don't believe I should be now that I have read other questions.</p> <p>My CSS file is in the /home/justin/test/static/ directory. My templates are in the /test/templates directory.</p> <p>My settings are:</p> <pre><code>STATIC_ROOT = '/home/justin/test/static/' STATIC_URL = '/static/' STATICFILES_DIRS = ( '/home/justin/test/static/', ) </code></pre> <p>My urls are:</p> <pre><code>urlpatterns = patterns('', url(r'^$', 'views.home'), # Static Files url(r'^static/(?P&lt;path&gt;.*)$','django.views.static.serve', {'document_root':settings.MEDIA_ROOT}), ) </code></pre> <p>I have all three in my main template.</p> <pre><code>&lt;link rel="stylesheet" href="/static/style.css" /&gt; &lt;link rel="stylesheet" href="{{ STATIC_URL }}style.css" /&gt; &lt;link rel="stylesheet" href="{{ STATIC_URL }}/style.css" /&gt; </code></pre> <p>They come out:</p> <pre><code>&lt;link href="/static/style.css" rel="stylesheet"&gt;&lt;/link&gt; &lt;link href="style.css" rel="stylesheet"&gt;&lt;/link&gt; &lt;link href="/style.css" rel="stylesheet"&gt;&lt;/link&gt; </code></pre> <p>The first comes out to the correct file, but it doesn't work. Any help is really appreciated. Thank you.</p> <p>My views.py:</p> <pre><code>from django.shortcuts import render_to_response def home(request): return render_to_response('index.html',{}) </code></pre> <p>My error from the terminal is:</p> <pre><code>[16/Aug/2013 21:00:21] "GET /static/style.css HTTP/1.1" 500 1729 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload