heroku

Keeping Variable Data on Heroku with Python Flask Application

Keeping Variable Data on Heroku with Python Flask Application Question: Say I have a Hobby plan or above on Heroku which has the feature "never sleeps". From the time my Python Flask app starts running on Heroku, can I assign and keep variables in this Python app throughout the time the app is running on …

Total answers: 1

Upload to Heroku – ProgrammingError: relation does not exist

Upload to Heroku – ProgrammingError: relation does not exist Question: I deployed my application to Heroku, but I am not able to add any data. When I tried to open first table with data from model I received this error message: ProgrammingError at /category/category_table relation "tables_category" does not exist LINE 1: SELECT COUNT(*) AS "__count" …

Total answers: 1

Python app on heroku dosn't open the Stripe Payment page

Python app on heroku dosn't open the Stripe Payment page Question: I am trying to integrate Stripe payments in a flutter web app. To do this I’ve written a python script that I’m hosting on heroku: import json import os import stripe from flask import Flask, render_template, jsonify, request from flask_cors import CORS # This …

Total answers: 2

Channels django

Channels django Question: I’m trying to get django channels to work with daphne, but I can’t connect rooms, the app runs good,but whenever I run the app, and open a "room" websocket it automatically disconnects, it is worth mentioning that my site is running with HTTP and any help will be apreciated 2022-08-19T13:20:57.879758+00:00 app[worker.1]: conn …

Total answers: 2

Heroku postgres postgis – django releases fail with: relation "spatial_ref_sys" does not exist

Heroku postgres postgis – django releases fail with: relation "spatial_ref_sys" does not exist Question: Heroku changed their PostgreSQL extension schema management on 01 August 2022. (https://devcenter.heroku.com/changelog-items/2446) Since then every deployment to Heroku of our existing django 4.0 application fails during the release phase, the build succeeds. Has anyone experienced the same issue? Is there a …

Total answers: 9

Flask server does not recognize my own imported module (ModuleNotFoundError)

Flask server does not recognize my own imported module (ModuleNotFoundError) Question: In my main Python file, I import another script of mine called helper_1.py (from the subfolder my_helpers) like this: from my_helpers.helper_1 as h1 However, when I now try to start my server (or deploy it to Heroku), the server will crash with the error …

Total answers: 1

Problem installing PlayWright Chrome on Heroku using Python

Problem installing PlayWright Chrome on Heroku using Python Question: I’m developing a WebScraping application using PlayWright, but when deploying it on heroku it can’t install the browsers using the playwright install command I got to run the command directly on the heroku console, it does the installation but also doesn’t it worked out. I’m using …

Total answers: 1

How to save media files to Heroku local storage with Django?

How to save media files to Heroku local storage with Django? Question: Im having a Django REST app with React for client. Im recording a file with React and sending in to Django. When i save it i modify it with ffmpeg and save it again in the same folder with a new name, the …

Total answers: 1

"TypeError: 'datetime.datetime' object is not callable" on making discord bot with discord.py

"TypeError: 'datetime.datetime' object is not callable" on making discord bot with discord.py Question: I’m trying to make the bot to kick the player who has the role for a week, but I’m getting some errors. 2022-06-23T04:48:44.209432+00:00 app[worker.1]: Ignoring exception in on_member_update 2022-06-23T04:48:44.209541+00:00 app[worker.1]: Traceback (most recent call last): 2022-06-23T04:48:44.209560+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/client.py", line 343, in …

Total answers: 2