Note that there are some explanatory texts on larger screens.

plurals
  1. POPage Rendering Issue with Django and Twitter-Bootstrap
    primarykey
    data
    text
    <p>I'm new to Django and was going through the <a href="http://djangobook.com/" rel="nofollow">Django Book</a> for the first time. I tried just throwing some bootstrapped html into a file:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;Test&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt; &lt;meta name="description" content=""&gt; &lt;meta name="author" content=""&gt; &lt;link href="assets/css/bootstrap.css" rel="stylesheet"&gt; &lt;link href="assets/css/bootstrap-responsive.css" rel="stylesheet"&gt; &lt;link href="assets/css/style.css" rel="stylesheet"&gt; &lt;link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet"&gt; &lt;!-- Le fav and touch icons --&gt; &lt;link rel="shortcut icon" href="assets/ico/favicon.ico"&gt; &lt;link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png"&gt; &lt;link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png"&gt; &lt;link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png"&gt; &lt;/head&gt; &lt;body&gt; &lt;header&gt;&lt;a href="index.html" title="Home"&gt;&lt;img src="assets/img/logo.png" alt="Test" /&gt;&lt;/a&gt;&lt;/header&gt; &lt;div class="container" style="text-align:center;"&gt; &lt;br /&gt;&lt;br /&gt; &lt;form class="search form-inline" action="searchresults.html"&gt; &lt;div class="input-append"&gt; &lt;input class="search-input input-xxlarge" id="appendedPrependedInput" size="16" type="text" placeholder="Type in your search"&gt;&lt;button class="btn btn-large btn-danger" type="submit"&gt;Search&lt;/button&gt; &lt;/div&gt; &lt;!--&lt;input type="text" class="search-input input-xlarge" placeholder="Type in your search"&gt; &lt;button type="submit" class="btn btn-large btn-danger"&gt;Search&lt;/button&gt; --&gt; &lt;/form&gt; &lt;hr class="soften"&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>And rendered it with this view:</p> <pre><code>def search(request): return render_to_response('search_page.html') </code></pre> <p>When I start a test server using <code>python manage.py runserver</code> I get a plain ugly html page, rather than a bootstrapped page. Why is this? (I do have the bootstrap assets in the same directory)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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