All Questions

Tagged with
Filter by
Sorted by
Tagged with
35 votes
30 answers
122k views

django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded

The scenario is, I cloned the Django code for OpenShift-V3 from here . When I ran the code with python manage.py runserver, I got this error: django.core.exceptions.ImproperlyConfigured: WSGI ...
user avatar
24 votes
4 answers
13k views

Deploying a local django app using openshift

I've built a webapp using django. In order to host it I'm trying to use openshift but am having difficulty in getting anything working. There seems to be a lack of step by steps for this. So far I ...
Oliver Burdekin's user avatar
24 votes
1 answer
10k views

How to configure Django on OpenShift? [closed]

I recently tried to export a Django project on OpenShift, but fruitlessly. The only solutions I found were "prebuilt" ones (such as https://github.com/openshift/django-example). I spent some hours ...
Antoine Pinsard's user avatar
12 votes
3 answers
3k views

Django serving media files (user uploaded files ) in openshift

I have successfully deployed my Django project in openshift. But I need to be able to serve files that are uploaded by users. I user MEDIA_ROOT and MEDIA_URL for that. I followed this tutorial here, ...
Apostolos's user avatar
  • 7,961
7 votes
1 answer
1k views

Serving Django static files in OpenShift

According to the March 2014 blog post, OpenShift now got rid of some directories like wsgi/, wsgi/static/, data/ and libs/. Given I used wsgi/static for this purpose, how I am supposed to serve ...
giallu's user avatar
  • 152
5 votes
5 answers
4k views

Static files on OpenShift Django

I'm having issues serving up static files - i.e. style sheets and images required from my html pages. I cannot seem to fathom why these static images are not being found. Here is what I have in my ...
disruptive's user avatar
  • 5,829
5 votes
1 answer
2k views

How to setup a Django App on OpenShift DIY with virtualenv

As RedHat openshift doesn't support Python 2.7, I choose to use Do-It-Yourself (DIY) application. I could able to install python 2.7, setuptools, PIP successfully using an amazing tutorial. Now I ...
Surya's user avatar
  • 4,824
5 votes
2 answers
4k views

Cannot chmod file on Openshift online v3 : Operation not permitted

I am migrating a Django application from Openshift v2 to v3 (In case you don't know, RedHat is shutting down v2 on September 30th, see: https://blog.openshift.com/migrate-to-v3-v2-eol/) So, I am ...
matthieu.cham's user avatar
5 votes
2 answers
11k views

python manage.py migrate does not make any changes in the postgres database

This seems like a simple problem I am not sure what I am doing wrong. If for example I wanted to add a new field in one of my classes in models.py by changing: class FeedBack(models.Model): ...
Abendsen's user avatar
  • 173
5 votes
2 answers
252 views

Git - How to commit a local repository to a subfolder of another local repository?

I have a Django project that I've started some time ago and I was hosting it at bitbucket. Now I need to host it at openshift, and the way to do that is that they provide you with a git repository and ...
ibrabeicker's user avatar
  • 1,798
4 votes
2 answers
625 views

daily cron run terminated as it exceeded max run time

I have no idea why my cron is running 20 minutes and it is terminated. On openshift, if you run cron, it gets killed after 5 minutes. If you run with nohup, it gets killed after 20 minutes. This is my ...
Lucas03's user avatar
  • 2,296
4 votes
1 answer
495 views

.htaccess seemingly ignored on OpenShift

I'm working on a site on OpenShift (Django, Python 2.7, Apache), and I'd like it to always be served over HTTPS. I figured this would be a simple task using .htaccess, and OpenShift's knowledge base ...
mrt's user avatar
  • 43
4 votes
1 answer
4k views

Unknown command: 'collectstatic' Django 1.7

I want do static files. I use Django 1.7 and Python 2.7.5 and openshift hosting. When I try to run: python manage.py collectstatic I get: Unknown command: 'collectstatic' Type 'manage.py help' for ...
Nikolay Bildeyko's user avatar
4 votes
0 answers
1k views

In Django cursor.execute("select ..") randomly returns None

I am running Django + MySql on OpenShift server and have this problem. Code: from django.db import connection ... cursor = connection.cursor() somedate = calculateSomeDate() query = "SELECT id ...
Pařez Pařez's user avatar
3 votes
1 answer
1k views

Django Appending Slashes to Static File URLs on OpenShift

I am attempting to deploy a Django 1.6 application on OpenShift using the Python 3.3 cartridge, but I have run into problems with static files. I have had partial success with the OpenShift IRC ...
Ben Whitney's user avatar
3 votes
1 answer
4k views

Daphne server cannot connect with websockets on HTTPS

I'm deploying a Django project on the Openshift cloud. This project uses channels and Websockets to make it work asynchronously. The problem is that I can't successfully connect websockets from the ...
pazitos10's user avatar
  • 1,681
3 votes
3 answers
523 views

Openshift: OSError Errno 98 can't update server

I'm using Openshift with Django/Python 3. As of yesterday, I've been unable to update my server. When I push a change, the push is successful. Using SCP to view the files on the server, the updated ...
Turtles Are Cute's user avatar
3 votes
1 answer
2k views

Django staticfiles

I'm struggling getting staticfiles (CSS) to work on my Django site deployed to Openshift. I can workaround this by putting style info in the HTML templates, but the Django admin site stylesheets ...
Turtles Are Cute's user avatar
3 votes
0 answers
158 views

How do you launch a django functional test via the jenkins cartridge on openshift?

I followed this https://developers.openshift.com/en/managing-continuous-integration.html and set up a jenkins app for an existing app (Django 1.7). Via the jenkins config I added python ${...
Dennis_M's user avatar
  • 340
3 votes
2 answers
436 views

Openshift app not responding

I have a work in progress django app hosted on openshift, at some point over the last few days it has stopped responding entirely in the browser. I can still ssh into it, I can deploy to it, and the ...
davur's user avatar
  • 1,418
2 votes
4 answers
4k views

Openshift [Errno 13] Permission denied

I met an exact same problem with what this link says:pip install Failed in OpenShift, the error info is Permission Denied. I encountered the error while I was deploying django-oscar to openshift. To ...
MrJu's user avatar
  • 41
2 votes
1 answer
584 views

Django/python: Understanding paths in django

As I was looking through my settings.py file in my current project, I realized I wasn't too sure what was really going on under the hood with python in terms of os.path.join I tried looking it up, ...
ApathyBear's user avatar
  • 9,287
2 votes
2 answers
1k views

How to run OpenShift Django project locally?

I'm trying to run my django 1.6 project locally (downloaded from openshift) with command: $python3.3 manage.py runserver and get error: Unhandled exception in thread started by <function ...
user3470836's user avatar
2 votes
2 answers
617 views

restart python app on openshift doesn't reload environment variables

I'm trying reload my application on Openshift and having some problems. Don't matter if run rhc app restart or rhc app reload to restart/reload the application, my environment variables aren't ...
nsantana's user avatar
  • 2,022
2 votes
2 answers
595 views

How to host Django localhost application no openshift?

I have create a Django application in my localhost.Now i need to host in the internet.I have tried openshift and pythonanywhere also.But hosting is not easy as i thought.How can i host localhost ...
Nuwan Indika's user avatar
2 votes
1 answer
2k views

Very simple way of password protecting django app on OpenShift

Is there a very simple way of creating password access using .htaccess whilst testing. I don't want to do anything that would interfere with the application. Is there a way of doing this within ...
disruptive's user avatar
  • 5,829
2 votes
1 answer
48 views

Alternative Solutions for Syncing PostgreSQL Databases Across Machines

I possess two machines: My laptop, which operates on Ubuntu 22.04. OKD (Openshift container) that runs on CentOS 7. My objective is to synchronize a PostgreSQL database between these two machines. ...
Mehrdad Salimi's user avatar
2 votes
1 answer
620 views

Django on Openshift - 500 Internal Server Error - error in wsgi.py

I tried to deploy my django app on the OpenShift, but somesthing going wrong, and I dont't know how to solve this problem. The result from rhc tail -a myproject: (and the site page show 500 Internal ...
Nico's user avatar
  • 535
2 votes
2 answers
144 views

Connecting to Amazon SES with Django on Openshift

I am trying to access amazon SES from openshift using a django based app. The app works properly when run from my development system (assuming firewall is not block SMTP connection) but does not ...
user3590750's user avatar
2 votes
3 answers
367 views

openshift Gear postreceive Error in python django

I deployed my django application at django-appspot.rhcloud.com Until yesterday everything was working fine. But later when I pushed my codes I found errors on the deploy script in the action hooks ...
Mohammad Maksud Alam Chowdhury's user avatar
2 votes
1 answer
3k views

Where to store an SQLite database using Openshift

I'm trying to deploy my first Django app using OpenShift. So far everything is working smoothly except when I get to adding my database. From this article I found that I should be storing the ...
Brett Shollenberger's user avatar
2 votes
1 answer
388 views

Openshift Python and Nodejs in the same app

I am building a Django project and in Openshift I have an app with the cartridge for Python 2.7 and Mysql 5.5. I also want to use bower to manage the client side packages, but bower has as ...
mario595's user avatar
  • 3,731
2 votes
1 answer
439 views

Openshift Django static files

I've started a new Django project for Openshift following the github example. According to this openshift post the project folder structure can be simplified. I tried this so now, I only have setup....
argaen's user avatar
  • 4,195
2 votes
1 answer
354 views

Django - No module name site.urls

As this other SO post shows, my Django 1.4 directory structure globally looks like: wsgi/ champis/ settings.py settings_deployment.py urls.py site/ static/ ...
Emmanuel's user avatar
  • 14.1k
2 votes
3 answers
936 views

Could not import settings in Django over OpenShift

I'm testing OpenShift with Django/Python 2.7 and I'm getting this: 127.5.232.1 - - [2013-06-28 17:01:37] "GET / HTTP/1.1" 500 161 0.013770 Traceback (most recent call last): File "build/bdist.linux-...
chachan's user avatar
  • 2,422
2 votes
1 answer
761 views

ImportError at / No module named 'wsgi' in django

Well, as the title says I'm constantly getting the above error when trying to import a class from another app. My file structure looks like this (I am on openshift btw): - openshiftappname - ....
Cédric's user avatar
  • 419
2 votes
1 answer
167 views

task runner/queue/scheduling on openshift with django

few days ago I have asked how to send email with django and openshift, but I guess it was too broad since it was closed. So in this question I would like to know what task runner/queue/scheduling ...
Lucas03's user avatar
  • 2,296
2 votes
0 answers
66 views

django_libsass failed to install in openshift

django_libsass package is failed to install in openshift and the error is given below.Any solution for this ? error: command 'gcc' failed with exit status 1
Navajyoth M S's user avatar
2 votes
0 answers
229 views

Django deployment in openshift taking too long than normal

Django 1.5.4 app with postgres 9.2 cartridge is taking simply too long to deploy after each push, the git remote console message gets stuck in "Preparing build for deployment" state always. What might ...
Abinash Koirala's user avatar
2 votes
0 answers
583 views

openshift and bad request after deploying django 1.6

I created a django app using openshifts default django quickstart app. But because it is based on django 1.4 I did the following changes setup.py #!/usr/bin/env python from setuptools import setup ...
Apostolos's user avatar
  • 7,961
2 votes
1 answer
1k views

Django: ImportError: No module named quiz.views

I'm trying to deploy my app to the OpenShift, but I have some troubles. I tried to add my files to the default django-example project and that's what I've got (my app is in 'quiz' folder, copied from ...
uncle Lem's user avatar
  • 5,014
1 vote
1 answer
1k views

How to install the 3part django app using pip on Openshift

Thank for your help at first I created a app on Openshift (create method pls refer to https://github.com/drivard/openshift-django-mysql) Now i want to install pip and a 3part app(such as hitconter), ...
viking yang's user avatar
1 vote
2 answers
2k views

Openshift + django: 503 Service Unavailable + project root

I'm trying to set up openshift to publish my django project. I created a scalable python3.3 app with django preinstalled and I added postgres9.2 cartridge. I found the dirs structure quite ...
Sirion's user avatar
  • 854
1 vote
2 answers
770 views

Using Django on OpenShift

Expanding on this question I am trying to deploy Django on OpenShift but I'm having some problems understanding OpenShift. I have managed to get as far as setting up a quick app with the git repo ...
Robert Johnstone's user avatar
1 vote
2 answers
292 views

django/python : error when get value from dictionary

I have python/django code hosted at dotcloud and redhat openshift. For handling different user, I use token and save it in dictionary. But when I get the value from dict, it sometimes throws an error(...
Alvin's user avatar
  • 45
1 vote
1 answer
896 views

Looking for template in a wrong directory

I have uploaded my Django project to Openshift and python code works correctly, however, my templates are being loaded from a wrong folder: /var/lib/openshift/55b9********************/templates My ...
Mirac7's user avatar
  • 1,606
1 vote
1 answer
192 views

Openshift Django Scaling

I'm creating Django app on OpenShift on Python 3.3 with no scaling, it works fine. So when I browse the app gives me a django url error and with /admin brings me the admin login page. But as I create ...
Serjik's user avatar
  • 10.7k
1 vote
1 answer
549 views

Openshift Custom Cartridge with Python 3.4

Hi there I was recently developing an application on openshift. I used the Python 3.3 Cartridge together with Django. And there is the problem. Because of the "old" version of python I get some ...
Omoe's user avatar
  • 23
1 vote
1 answer
237 views

raise ImportError "Settings cannot be imported" ENVIRONMENT_VARIABLE

i am trying to reach my MySQL database from python. It runs on Openshift - Python 2.7, MySQL 5.5. Django and Mysql deployment run just fine. PHPMyAdming works. edited setup.py setup( name='...
Pařez Pařez's user avatar
1 vote
2 answers
918 views

How to debug Django exceptions in OpenShift applications

Background: I am deploying a django application with Python 2.7.5 && Django 1.6. Currently I am able to render all pages, but one. The only error I am able to see when tailing the logs is:...
Buck's user avatar
  • 751

1
2 3 4 5