Commit 19e5d0c3 authored by Naoeltanuki's avatar Naoeltanuki
Browse files

changé marqueurs, enlevé les prefix

parent 1b541835
......@@ -3,32 +3,37 @@ from prince import app, db
from prince.models import Language, Sound
@app.route(PREFIX + '/')
@app.route(PREFIX + '/home')
#@app.route(PREFIX + '/')
#@app.route(PREFIX + '/home')
@app.route('/')
@app.route('/home')
def home():
prince_language = Language.query.filter_by(actif=1)
sounds = Sound.query.all()
return render_template('home.html', title='Petit Prince', prince_language = prince_language, sounds = sounds)
@app.route(PREFIX + '/liste_langues')
#@app.route(PREFIX + '/liste_langues')
@app.route('/liste_langues')
def liste_langues():
prince_language = Language.query.filter_by(actif=1)
sounds = Sound.query.all()
return render_template('liste_langues.html', title='Liste des langues', prince_language = prince_language, sounds = sounds)
@app.route(PREFIX + '/langue/<lang>')
#@app.route(PREFIX + '/langue/<lang>')
@app.route('/langue/<lang>')
def langue(lang):
langue_complet = Language.query.filter_by(french = lang).first()
sounds = Sound.query.filter_by(language = langue_complet.iso)
return render_template('langue.html', langue=langue_complet, title=lang, sounds = sounds)
@app.route(PREFIX + '/carte')
#@app.route(PREFIX + '/carte')
@app.route('/carte')
def carte():
french = Language.french
prince_language = Language.query.filter_by(actif=1)
sounds = Sound.query.all()
return render_template('carte.html', title='Carte', prince_language=prince_language, sounds = sounds)
@app.route(PREFIX + '/enregistrement')
#@app.route(PREFIX + '/enregistrement')
def enregistrement():
return render_template('enregistrement.html', title='Enregistrer un audio')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment