deployment

Need Help in Django Deployment

Need Help in Django Deployment Question: I want help in deploying my django app. i tried deploying on heroku but its giving me alot of errors. like: SECRET_KEY must not be empty(even if its not empty) APP_CRASHED i’ve tried hosting on pythonanywhere too but it gives me errors as well. also, i’m using postgres as …

Total answers: 1

How to deploy django app on hosting service

How to deploy django app on hosting service Question: I’m new to web development. I bought the web hosting start-up package from Siteground to host my graphic design portfolio website. It’s a simple Django app that is a one-page portfolio with a contact form using Django’s sendEmail through gmail service. I’ve never deployed a Django …

Total answers: 2

How to deploy python script?

How to deploy packed python script on Windows? Question: This might sound like a very open ended question, but I am a python enthusiast, and pretty new to this world of development. I have developed a python script which takes in an input and gives an output based on the algorithm I have put in …

Total answers: 5

Gunicorn/Django, ImportError: No module named application.wsgi

Gunicorn/Django, ImportError: No module named application.wsgi Question: I’m trying to deploy a Django app using Heroku, but I’m running into the following error: “ImportError: No module named myproject.wsgi”. My project is configured as such: my-project │ Procfile │ requirements.txt │ runtime.txt │ README.md │ ├───myproject │ │ db.sqlite3 │ │ django │ │ django._file_ │ …

Total answers: 4

Django: Not Found static/admin/css

Django: Not Found static/admin/css Question: I just deployed my first Django app on Heroku but I notice that it doesn’t have any CSS like when I runserver on the local machine. I know there’s something wrong with static files but I don’t understand much about it even when I already read the docs. I can …

Total answers: 6

Deploying a minimal flask app in docker – server connection issues

Deploying a minimal flask app in docker – server connection issues Question: I have an app whose only dependency is flask, which runs fine outside docker and binds to the default port 5000. Here is the full source: from flask import Flask app = Flask(__name__) app.debug = True @app.route(‘/’) def main(): return ‘hi’ if __name__ …

Total answers: 8

How to update code from Git to a Docker container

How to update code from Git to a Docker container Question: I have a Docker file trying to deploy Django code to a container FROM ubuntu:latest MAINTAINER { myname } #RUN echo “deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -sc) main universe” >> /etc/apt/sou$ RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tar git curl dialog wget net-tools nano …

Total answers: 5

Deploy to artifactory via python script

Deploy to artifactory via python script Question: I am trying to create a python script that can deploy an artifact to Artifactory. I am using Python 3.4 and I want the resulted script to put it through py2exe, so external libraries might create issues. Through all my research, I found that one way is this, …

Total answers: 2

How can I detect Heroku's environment?

How can I detect Heroku's environment? Question: I have a Django webapp, and I’d like to check if it’s running on the Heroku stack (for conditional enabling of debugging, etc.) Is there any simple way to do this? An environment variable, perhaps? I know I can probably also do it the other way around – …

Total answers: 7