if regform.is_valid():
image_file =
StringIO.StringIO(request.FILES['image'].read())
image = Image.open(image_file)
imageresize = image.resize((100,100), Image.ANTIALIAS)
*imageresize.save( 'abc.JPEG', quality=75)*
I have a webservice written in django and I want to call it from a non
django app with ajax. Both apps run on the same host. When I call the
webservice with curl it works fine, but when I call it with ajax from
the other app I get a 500 internal server error. There are no errors
in the web server l
I'm also reasonably certain that this isn't limited to just
AdminEmailHandler. It seems like *nothing* I set up as a logging handler
for 500 errors gets triggered.
On Wednesday, March 25, 2015 at 12:47:59 PM UTC-7, Robert Rollins wrote:
>
> I'm at my whit's end trying to debug this problem with
Ohh thanks. You have saved at least 4 hours of my sleep, 10 coffees and a
very bad mood!
Am Mittwoch, 25. März 2015 21:57:19 UTC+1 schrieb Stephen Butler:
>
> On Wed, Mar 25, 2015 at 2:27 PM, Sven Mäurer > wrote:
> > backend.conf
> >
> > Listen 8787
> >
> > WSGIScriptAlias / /var/www/html/b
On Wed, Mar 25, 2015 at 2:27 PM, Sven Mäurer wrote:
> backend.conf
>
> Listen 8787
>
> WSGIScriptAlias / /var/www/html/backend/API/wsgi.py
> WSGIPythonPath
> /var/www/html/backend:/var/www/html/backend/venv/lib/python2.7/site-packages
> WSGIPassAuthorization On
WSGIScriptAlias belongs in your Vir
I'm at my whit's end trying to debug this problem with one of my Django
sites. I've done absolutely everything I can think of, and that google
direct me to, to make it send 500 emails, but to no avail. For some reason
I cannot fathom, even with every logging setting I know set to the Django
1.6
*backend.conf*
Listen 8787
WSGIScriptAlias / /var/www/html/backend/API/wsgi.py
WSGIPythonPath
/var/www/html/backend:/var/www/html/backend/venv/lib/python2.7/site-packages
WSGIPassAuthorization On
DocumentRoot /var/www/html/backend
Re
Hello,
Please share the rest of this Apache config; from what you copied, it's
impossible to tell.
Best,
Gergely
On 25 Mar 2015 17:12, "Sven Mäurer" wrote:
> I have two applications on my apache. Why is my Django application running
> accepting the connection also of port ?
>
> Listen 8787
Yes I know I can't acces the Manager from a model instance, but I need
to check the value of a field saved in the database before updating it.
Can I do it from the Model clean() method?
Felix.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
T
On Wed, Mar 25, 2015 at 1:06 AM, arthur sherman
wrote:
> i have a python script which currently runs in a shell cli.
> i'd like to initiate this script from a web page.
> the closest i got was to have the output displayed on the webpage (w/o
> linefeeds),
> but it crashed when requesting input via
I have two applications on my apache. Why is my Django application running
accepting the connection also of port ?
Listen 8787
The other application:
Listen
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from th
You could look at using a tool like Skulpt which allows you to run scripts
with interaction in a browser window:
http://www.skulpt.org/
E.g. from their example:
Python 2.6(ish) (skulpt, Wed Mar 25 2015 17:52:34)
[Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko)
Ubuntu Chrom
Hi again,
When you add the save function to a class, it overrides the builtin
function that comes with the django db model. So it will be called
everytime you call save on your model (which is called when you create or
resave your model). Your form is a modelform, and somewhere in the code you
sho
try using a more recent version of django to see if the issue is resolved,
it could also be a driver problem, what version of cx_oracle are you using?
what python version are you using?
On Tue, Mar 24, 2015 at 9:05 PM, Daniel Porter
wrote:
> I have an application that we run locally against a po
Great tool, thanks :)
On 03/24/2015 11:22 PM, Russell Keith-Magee wrote:
Hi Gergely,
One option is to use a test suite GUI tool, like cricket:
http://pybee.org/cricket
Cricket lets you view your entire test suite as a tree, select subsets
of the suite to run, see test results as the suite ex
Hi..
ok will not give storage parameter, but how the function save will
called.Will it be called automatically when i edit image.
I have used upload function to call a function which change the name of the
image and save it to the database.
On Wed, Mar 25, 2015 at 1:44 PM, Andreas Kuhne
wrote:
Hello Carl,
thanks, I will take a look at this, too!
Best,
Gergely
On 24 March 2015 at 23:33, Carl Meyer wrote:
> Hi Gergely,
>
> On 03/24/2015 04:27 AM, Gergely Polonkai wrote:
> > I have a pretty extended test suite for my application, which can run
> > for about 15 minutes. Now when I intro
Hi,
No, that is not correct. The storage parameter has nothing to do with this.
Also, why are you not using an ImageField instead of the FileField? Also
you have to put all methods with "self" as a parameter with the class
itself. Self is a pointer to the instance of the class, so it needs to be
w
Hi,
Again, you should really put this in your database model instead of in the
view. If you use your overriden save function, you would be able to add
this there. Also, you check if the image is not an L or RGB image (don't
know what L is) and resize it ONLY if it is on of them.
Regards,
Andréas
For image resizing i have used the following function*(in bold).*Is it
right??
def edit_profile(request):
if 'username' in request.session:
#user_id=request.POST.get('id')
user_id=request.GET.get('id')
usr_obj=User.objects.get(id=int(user_id))
if request.method
20 matches
Mail list logo