Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
hi Coues, that's helped me alot thank you for your Solution. On Wed, Nov 23, 2016 at 1:16 AM, ludovic coues wrote: > If you start django by running "python manage.py runserver", you > should have some log message where you have typed the command. > When your program raise an error, like no such

Channels: startup order of daphne and workers leads to issues

2016-11-22 Thread Alex Peitsinis
Hello, I noticed a weird thing during a deployment of a service that uses channels at work the other day. We use docker, so we have a container for daphne and a container for workers (currently 4). We start a service that some other machines connect to almost automatically (reconnecting etc), a

Re: New-style middleware

2016-11-22 Thread Carl Meyer
Hi Torsten, I worked on the design and implementation of new-style middleware. On 11/22/2016 01:30 PM, Torsten Bronger wrote: > Hallöchen! > > Considering the following old-style middleware class: > > class ExceptionsMiddleware: > def process_exception(self, request, exception): >

Re: Custom PG Range: where to place register_range() call?

2016-11-22 Thread Javi
I found a way to do it. For those interested take a look at https://github.com/djangonauts/django-hstore/blob/master/django_hstore/apps.py That example solves the problem for register_hstore() but it can be extrapolated for register_range() as well. The method is the following, in the file apps

New-style middleware

2016-11-22 Thread Torsten Bronger
Hallöchen! Considering the following old-style middleware class: class ExceptionsMiddleware: def process_exception(self, request, exception): ... I convert this to new-style middleware by inserting two methods: class ExceptionsMiddleware: def __init__(self, g

Re: Upload Images from Remote Server

2016-11-22 Thread ludovic coues
If you start django by running "python manage.py runserver", you should have some log message where you have typed the command. When your program raise an error, like no such file, django should print a stacktrace in the log. It's a list of all the function that django called before getting the err

Custom PG Range: where to place register_range() call?

2016-11-22 Thread Javi
I was following the documentation at https://docs.djangoproject.com/en/1.10/ref/contrib/postgres/fields/#defining-your-own-range-types in order to create a custom range. It says that I have to use the function register_range()

Re: Django authorisation within PostgreSQL

2016-11-22 Thread Antonis Christofides
What you want is not entirely clear. Do you want to authenticate against your PostgreSQL users instead of the django.contrib.auth users? If yes, you need to customize your authentication [1]. One solution would be to write a custom authentication backend, but you might also be able to use RemoteUse

Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
Hi Ludovic, What is Full stacktrace ..? i tried very solution but i can't able to store image without a form in rest framework..? On Tue, Nov 22, 2016 at 2:56 PM, ludovic coues wrote: > The actual full stacktrace and at least the relevant function in your > code would be nice. > > 2016-11-21 14:

Re: Upload Images from Remote Server

2016-11-22 Thread ludovic coues
The actual full stacktrace and at least the relevant function in your code would be nice. 2016-11-21 14:09 GMT+01:00 pradam programming : > hi Guys, > 1.I have Created an API which store images into database just giving image > path but issue is when i remotely upload image using API i will get th