I have an issues with using ExtJs in Flask development. I am quite new in this field. My ExtJs code does not do anything. So, I have index.htm file
<html>
<head>
<title>{{ title }} - microblog</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='ext/resources/css/ext-all.css') }}" />
<script type="text/javascript" src="{{ url_for('static', filename='ext/ext-all.js') }}" />
<script type="text/javascript" src="{{ url_for('static', filename='app.js') }}" />
</head>
<body>
Hello, {{ user.nickname }}!
</body>
</html>
and app.js file.
Ext.application({
name: 'HelloExt',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
title: 'Hello Ext',
html : 'Hello! Welcome to Ext JS.'
}
]
});
}
});
When, I launch my application I see a blank page and nothing else. There are no error in my network tool. I see all ext.js files uploaded except app.js. What might be a reason? Could please anyone help me?
This is my folder structure:
App
static
ext
app.js
templates
index.html
Aucun commentaire:
Enregistrer un commentaire