my wsgi file is:
project_home = '/home/elections2021/elections'
if project_home not in sys.path:
sys.path = [project_home] + sys.path
from elections import app as application
The elections/ include the following file: elections/ , requirement.txt then elections/elections/ include:
models/, static/, database.py, ids.txt, test.db, views.py, __init__.py
and so on..
* the __init__.py
does NOT contain app.run()
* the __init__
file is as follows:
from flask import Flask
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///testinghere.db'
app.config['SECRET_KEY'] = 'FRE35b23WEBqref@*KGHM.jfgn'
admin = Admin(app, name='microblog', template_mode='bootstrap3')
from elections.database import db_session
from elections import views
... * The views file contain some code like this: from elections import app, admin, login_manager from elections.database import db_session
This is just a basic web app to calculate votes,and i am new too... When I run the web it gives me internal server error PLEASE HELP ME ,I GUESS THERE IS SOME ISSUE WITH THE STRUCTURE,and do i need to create a virtual env?? been stuck with this since a month,please help