2010-12-01 3 views

Répondre

4
application: appname 
version: 1 
runtime: python 
api_version: 1 

handlers: 

- url: /favicon.ico 
    static_files: img/favicon.ico 
    upload: img/favicon.ico 
    mime_type: image/x-icon 

- url: /css #your css folder 
    static_dir: css 

- url: /scripts #your javascript folder 
    static_dir: scripts 


- url: /img #your image folder 
    static_dir: img 

- url: /.* 
    script: your_script.py 
+0

Merci! Philar. – acaascacsaacaascacaac

0

Mettez vos 3 premiers fichiers dans un nom de dossier "statique"

handlers: 
- url: /feedbacks/ 
    static_dir: feedbacks 

- url: /css/ 
    static_dir: static 

- url: /js/ 
    static_dir: static 

- url: /.* 
    script: main.py 

Dans votre main.py

class IndexHandler(webapp.RequestHandler): 
    def get(self): 
     self.redirect('static/index.html') 


def main(): 
    application = webapp.WSGIApplication([ 
      ('/index.html', IndexHandler), 
     ], debug=True) 
    run_wsgi_app(application) 

Il est pas bon d'écrire de cette façon , mais cela va résoudre votre problème.

+0

Merci pour votre réponse! Gros ours. – acaascacsaacaascacaac