I’m trying to make an project on Flask here is the code below.
My directory is like this
from flask import Flask,render_template,url_for,request,redirect
import pymongo
app= Flask(__name__,static_url_path='',
static_folder='static',
)
@app.route('/admin')
def index():
return render_template('admin/index.html')
@app.route('/admin/campaigns')
def campaigns():
return render_template('admin/campaigns.html')