My App structure is like below :
--app
--app.py
--static
--js
--app.js
--css
--partial
--home.html
--templates
--index.html
Already gone through this , but it is different
my app.py
@app.route("/")
def index():
return send_file('static/partial/home.html')
#tried with below as well
#return make_response(open('static/partial/index.html').read())
my app.js
use strict';
var guts = angular.module('app', ['ngSanitize', 'ngCookies']);
my index.html
<!DOCTYPE html>
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="app" ng-controller="appcontroller">
<head>
</head>
The error coming while hosting app on local server is :
IOError: [Errno 2] No such file or directory: 'C:\\..\\..\\..\\..\\..\\app\\templates/index.html' , i tried changing this backslash with other options , not luck
P.S I dont want to use jinja templates Also i am referencing this blog as reference. Any leads on this ?
[Updated] : final goal is to render home.html which is there @static/partial