Python Forum
flask nginx full stack web app develepoment
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flask nginx full stack web app develepoment
#6
SOLVED
Hi, I have found the solution, I took a look at this tutorial and decided to follow the basic dossier set up of;
heating/
env/
app/
__init__.py
routes.py
heating.py
with __init__.py
from flask import Flask

app = Flask(__name__)

from app import routes
and routes.py
from app import app

@app.route('/')
@app.route('/index')
def index():
    return "Hello, World!"
and heating.py
from app import app
with no change to my origional nginx.conf, _uwsgi.ini and emperor.uwsgi.service, It all works, automatic restart on reboot.
I can now start coding the rest of my coding
heating.py is now
app = heating
regards Paul Big Grin
Reply


Messages In This Thread
RE: flask nginx full stack web app develepoment - by pascale - Jul-03-2018, 08:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to set up uwsgi and nginx? Stas43 2 1,240 Apr-21-2023, 10:51 AM
Last Post: Stas43
  Python flask uwsgi nginx docker mfaridi 2 1,881 Sep-14-2022, 11:07 AM
Last Post: mfaridi
  Multi-tier Web application File Storage (NginX, File System or FTP) ? draems 0 1,641 Apr-22-2019, 07:47 AM
Last Post: draems
  location settings for Django Uwsgi Nginx Configuration for production sandyman 0 2,980 Sep-15-2017, 09:08 AM
Last Post: sandyman

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020