I installed django-filebrowser-no-grappelli. It work fine on django dev server. But on production server filebrowser didn't create preview images in admin (everything else works). PIL installed. All settings are default, as well as dev server. What's wrong? Thx!
I changed PIL on Pillow. It's working now.
Related
I am trying to deploy a django project using POSTGIS on my windows 11 PC with Apache 2.4.
The web page is working as long as I am not using 'django.contrib.gis'.
When I add 'django.contrib.gis' to my INSTALLED_APPS and define GDAL_LIBRARY_PATH to point to my gdal installation things stop working.
Specifically, trying to access the web app ends up in infinitely loading the page. Weird enough there are no errors in the apache error log. The apache service starts fine.
As far as I can see gdal install is correct as the app is working fine on the same machine with the same python environment with the django development server.
Actually, I have the same issue with other python libraries that need some dlls, like opencv.
So my guess is that it is a security related issue, but I do not find any clues on how to solve it.
Any ideas?
I tried also to grant rights to the directory where gdal is install in apache conf. But no luck.
I work on ubuntu for creating a django app. Everything went well untill i install rest_framework and add this app to allowed apps list in settings.py Once i did this server started to show internal server errors. Somebody could help on it ?
uploading image in DJANGO web app hosted in azure is not working it is showing me an error
error cannot import name _imaging
but it works fine in local machine. I tried installing different version of pillow but it still displaying the error
i have a model in django that accepts text and image i am actually trying this from django admin and also it works fine locally i dont know what happed when i ship the code it displays the above error.i think the problem is with the azure
Please see my previous case : install odbc driver to azure app service to install pillow package in your azure django app.
In addition , as #Andrey said you could check if PIL and Pillow both installed in your django app via KUDU. Please refer to this case :ImportError: cannot import name _imaging.
Hope it helps you.
On Windows install pillow from .exe package
im running django development server and all models works fine..
But when i have configured and run apache through wsgi, only "Groups" and "Users" could be administrated, my own models disappears:
screenshot of admin pages from development server and production server
Why, please?
(After first comments here is my edit:)
I want to use django on localhost only, to fill and administrate small database file. Project is not intended for web hosting yet. I have no html views and templates defined. So I have try some simple view for testing purposes only, and problem is the same. Web server cant find some includes..:
image2: simple view also dosen't work
Make sure your production settings file has all the apps included. Normally when you don't see your admin models its due to the app missing from the list of apps included in settings.py.
Had the exact same problem. Had to restart uwsgi
sudo service uwsgi restart
Maybe for you it's wsgi or apache. Something in the pipeline needs to know you changed some python code.
I have to manually restart the server since I've updated from Django 1.6 to 1.8.6. Anyone have any idea why it's not restarting when changes are done to the code? not even if I change settings.py.
Also I'm using django-sslserver.
The issue was that django-sslserver is not up to date with Django 1.8 changes. So it's broken: Github Issue