Solved

Responsive site not rendering using inbuilt Django server

Posted on 2015-02-02
2
86 Views
Last Modified: 2016-02-25
Hi,
I have a problem with a template. I have copy/pasted a responsive bootstrap web page into the template I am using in Django and then added in my python code to display dynamic content.

When I then try to view the page, there is no formatting. However when I view source and copy paste that into another file and call that from my local apache server, the page loads as expected.

I have put the CSS and JS folders in the folder where the template is stored and am all out of ideas!

please can someone help

thanks
Nick
0
Comment
Question by:lz7cjc
2 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40584810
Most template do a lot of scripting that generally overrides all or part of the CSS that is not part of the template.  Unless the pieces are compatible there will be conflicts ranging from minor rendering errors to a complete loss of styling.

A second possibility is that the server cannot resolve the path specified for the Bootstrap files.

Trying to cobble things together where there is not absolute claim of compatibility will frequently cause problems if you are not writing your own code.

Cd&
0
 

Author Comment

by:lz7cjc
ID: 40584884
I think it might be the latter - am going to have a go at sorting it out in the morning - thanks for your help
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Changing alignment and creating border 6 29
CSS: How to get responsive tables to not be so spread out on desktop 5 35
Why a span is lower 2 20
Else condition 9 19
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question