GAE's Twitter Bootstrap Website

So I am programming noob. I follow many Udacity classes and I slowly study the code.

Ok, here is my question. I created the basic HTML files for my blog using Twitter Bootstrap, as it is so easy to use. Now I would like to combine the large template that Bootstrap provides with the simple hosting services of Google App Engine. That's where my nubo comes in and I'm completely lost.

Any help would be appreciated, do not be afraid to hurt me, I do not want and I will understand if this is impossible.

+7
source share
4 answers

Take a look at the gay template. It is based on downloading webapp2 and twitter.

It does a lot of what you want out of the box along with many other features that you might want.

+10
source

It is quite possible. Download bootstrap to a separate folder and to the app.yaml file, you have a handler that is static_dir for / bootstrap

 application: application-name version: 1 runtime: python api_version: 1 handlers: - url: /stylesheets static_dir: stylesheets - url: /bootstrap static_dir: bootstrap - url: /.* script: todoapp.py 

And in all your html files, link to bootstrap like this.

 <link href="bootstrap/css/bootstrap.css" rel="stylesheet"> <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet"> <script src="bootstrap/js/jquery.js"></script> 

You must be kind!

+19
source

In addition to the answers above, also note that ad order is important. The part is url: /.* should be the last, in this case

+3
source

In addition to the addition above, for all subdomains you must write another static directory. So (for example), if you have a new blog post form in / blog / newpost, you should add

 -url: /blog/bootstrap static_dir: bootstrap 

The absence of this point, I spent a lot of time figuring out why bootstrap did not work in subdomains. Keep this piece of code in your letter before the -url: /.* declaration.

0
source

All Articles