python - Google App Engine w/ Django wont render 960GS -
i'm trying create website using gae(google app engine) server , having pages rendered using gae django api. css style i'd use 960 grid system, adaptive version found here.
my page being rendered django in gae usual:
class mainpage(webapp.requesthandler): def get(self): featuredpic = "img/featuredpic.jpg" values = { 'featuredpic' : featuredpic, } self.response.out.write(template.render('index.html', values)) application = webapp.wsgiapplication([('/', mainpage)], debug=true) and index.html file includes code neccassarry adaptive grid system:
<script src="/js/adapt.js"></script> <script> // edit suit needs. var adapt_config = { // css? path : '/css/', // false = run once, when page first loads. // true = change on window resize , page tilt. dynamic : true, // first range entry minimum. // last range entry maximum. // separate ranges "to" keyword. range : [ '0px 760px = mobile.min.css', '760px 980px = 720.min.css', '980px 1280px = 960.min.css', '1280px 1600px = 1200.min.css', '1600px 1940px = 1560.min.css', '1940px 2540px = 1920.min.css', '2540px = 2520.min.css' ] }; </script> also including css,js,img, , other folders in app.yaml, yet despite resulting html not follow 960 grid system classes have set divs. gae disable js or making other mistake?
actually, not @ gae, can you, guess.
i've made page on gae , has template html file uses .js , .css files
at template html file, i've written script tag below.
<script type="application/x-javascript" src="iui/iui.js"></script>
and put .js file @ below path.
<app_name>\iui\iui.js
<app_name> has models.py, urls.py, views.py, etc.
in addition, i've added following statements on app.yaml, "muchart" <app_name>
app.yaml ... handlers: - url: /muchart/js static_dir: muchart/js - url: /muchart/iui static_dir: muchart/iui
Comments
Post a Comment