geojoe
Members-
Posts
21 -
Joined
-
Last visited
-
Days Won
1
geojoe last won the day on April 18 2020
geojoe had the most liked content!
geojoe's Achievements
Newbie (1/14)
1
Reputation
-
Can you run multiple flask apps on one account?
geojoe replied to geojoe's topic in Website Management and Coding
ok thanks -
[Solved] How to connect postgres from a flask app
geojoe replied to geojoe's topic in Escalated Requests
UPDATE: I've solved the url problem and here's how class ScriptNameStripper(Flask): def __call__(self, environ, start_response): environ['SCRIPT_NAME'] = '' return (super(ScriptNameStripper, self) .__call__(environ, start_response)) app = ScriptNameStripper(__name__)- 10 replies
-
- 1
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
[Solved] [Flask] /path is becoming /flask.wsgi/path
geojoe replied to rik61072's topic in Customer Service
Hi rik, I had a similar issue a while back and have I just found the solution 20 mins from the time of this post (I can be very persistent when it comes to problem solving) just add this at the top of your app.py file class ScriptNameStripper(Flask): def __call__(self, environ, start_response): environ['SCRIPT_NAME'] = '' return (super(ScriptNameStripper, self) .__call__(environ, start_response)) app = ScriptNameStripper(__name__) you'll have to replace app = Flask(__name__) with app = ScriptNameStripper(__name__) -
[Solved] How to connect postgres from a flask app
geojoe replied to geojoe's topic in Escalated Requests
The remote connection isn't needed anymore And the urls start without flask.wsgi but when you return to the same page again it's there But it's cool- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
[Solved] How to connect postgres from a flask app
geojoe replied to geojoe's topic in Escalated Requests
I still need help with the url problem- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
[Solved] How to connect postgres from a flask app
geojoe replied to geojoe's topic in Escalated Requests
Hi @RootAdmin I've done it I had sequence fields created and it turns out that postgres sequences needed special privileges to work, the problem arose when i try an insert operation; it gave the following error Error in query: ERROR: permission denied for sequence users_user_id_seq so i did a little research and was able to fix it here's how i did it in case someone else has the same issue: I opened phppgadminlogged inclicked on schemaselected my schema (i used the default public schema)selected sequences clicked on privileges checked SELECT, UPDATE, DELETE for my user and evoila it worked perfectly thanks your service - although free - is one of the best I've ever gotten- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
[Solved] How to connect postgres from a flask app
geojoe replied to geojoe's topic in Escalated Requests
I changed the databases and username while I was trying to diagnose the problem Thank for the help. Please enable remote connection thanks- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
[Solved] How to connect postgres from a flask app
geojoe replied to geojoe's topic in Escalated Requests
Thanks for the reply. Yes I would like access from any ip address. The right way to connect to postgres through flask is as follows Postgres+psycopg2://db_username:db_password@db_host:5432/db_name In my case that would be Postgres+psycopg2://geojoe_geoffery:donsniper123@localhost:5432/geojoe_flask But it doesn't seem to work I think I may not have the right permissions to read from or write to the database, if it works I would be very grateful otherwise I might have to settle for the one from heroku- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
[Solved] How to connect postgres from a flask app
geojoe replied to geojoe's topic in Escalated Requests
Hey guys still need help on this- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
Hi again, I need help connecting my flask app to the postgres database on the server. PS. I'm not trying to connect from outside although having remote access would be a bonus username: geojoe database: geojoe_flask-app database user: geojoe_admin server: Tommy Issue 2: how do I hide the flask.wsgi from urls e.g instead of flask.geoffery.ml/flask.wsgi/login, i want it to be flask.geoffery.ml/login thanks in anticipation
- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
[Solved] Tommy: Python module install request
geojoe replied to geojoe's topic in Escalated Requests
Thanks a lot -
[Solved] Tommy: Python module install request
geojoe replied to geojoe's topic in Escalated Requests
And flask-session thanks -
[Solved] Tommy: Python module install request
geojoe replied to geojoe's topic in Escalated Requests
Please also include psycopg2-binary to the list thanks -
Hi I would like you to install the psycopg2 module. postgresql wont work without it. thanks in anticipation.