Re: Expiration date option

2016-06-07 Thread 'David Turner' via Django users
Hi Many thanks for your answer which makes perfect sense and yes, this is only required for a single view. The expiry_date is needed as items are listed by expiry date. So would you suggest removing the has_expired and writing the filter against the expiry date? Thanks On 7 June 2016 at 23:35,

User object and session object usage.

2016-06-07 Thread learn django
Hi, Am trying to write a customized authentication model. In authenticate function I do the following. def authenticate(self, username=None, password=None): try: # Check if this user is valid on the mail server s.auth = HttpNtlmAuth(username, password, s)

Djangp, Tika, API

2016-06-07 Thread Allison
I am trying to extract a plain text from pdfs using Apache Tika. I can use a python binding, python-tika, but somehow I am not sure it's an efficient way as some files can come up more than 25M. What I need is the extract text instead of sending the files themselves to the server side. The bes

Network scan tool.

2016-06-07 Thread Luis Zárate
Hi, With your deadline is too difficult (impossible), but if you are a crack in django and celery and nmap this tool could be useful https://pypi.python.org/pypi/python-nmap El martes, 7 de junio de 2016, James Schneider escribió: > > > On Tue, Jun 7, 2016 at 6:01 AM, Mahesh Kss wrote: >> >> H

Re: Expiration date option

2016-06-07 Thread James Schneider
On Jun 7, 2016 1:35 PM, "'David Turner' via Django users" < django-users@googlegroups.com> wrote: > > Being new to Django I have a problem which I am not able to resolve. > > I have a model which has the following fields: > expiry_date = models.DateField(null=True, blank=True,) > has_expired = mode

Re: authenticate a user without databse

2016-06-07 Thread Stephen J. Butler
Another option is to do all the authentication in Apache and use the Django RemoteUser backend. This would require writing an Apache authnz module to talk to the c++ server, and adjusting your Apache configs to require valid-user. Or, if not Apache, whatever server you are using. Nothing about aut

Re: authenticate a user without databse

2016-06-07 Thread Michal Petrucha
On Tue, Jun 07, 2016 at 01:44:29PM -0700, Daniel Wilcox wrote: > Two options: > > 1. Tie into Django Authentication > > You can make a custom authentication backend and do whatever you want for > authentication -- including talk over a named pipe and get the OK for users > if you like. > > With

Re: authenticate a user without databse

2016-06-07 Thread Daniel Wilcox
Two options: 1. Tie into Django Authentication You can make a custom authentication backend and do whatever you want for authentication -- including talk over a named pipe and get the OK for users if you like. With that you'll be able to use the login_required decorator. To make a authenticatio

Expiration date option

2016-06-07 Thread 'David Turner' via Django users
Being new to Django I have a problem which I am not able to resolve. I have a model which has the following fields: expiry_date = models.DateField(null=True, blank=True,) has_expired = models.BooleanField(verbose_name='Has Expired', defau

Use of sphinx roles with django.contrib.admindocs

2016-06-07 Thread Adrian Lloyd Flanagan
First, apologies if this is documented elsewhere. I don't use Google Groups a lot, and I'm rather appalled at the search interface. At any rate, I've added "django.contrib.admindocs" to my INSTALLED_APPS and done all the other things to get /admin/docs to be automatically generated. Mostly, it'

Re: Network scan tool.

2016-06-07 Thread James Schneider
On Tue, Jun 7, 2016 at 6:01 AM, Mahesh Kss wrote: > > Hi all, > > > Need some of your thoughts for the below mentioned exercise. I am planning > to do it using Django. But I am not sure where i can place the python > script which monitors the network for connected hosts. > > Kindly share your tho

Re: How to set default ordering to Lower case?

2016-06-07 Thread Neto
Thanks Em terça-feira, 7 de junho de 2016 01:21:09 UTC-3, Simon Charette escreveu: > > Hi Neto, > > Ordering by expression (order_by(Lower('name')) is not supported yet but > it's > tracked as a feature request[1]. > > If we manage to allow transforms in `order_by()`[2] in the future you > shoul

Re: Network scan tool.

2016-06-07 Thread ludovic coues
There is two way to monitor the data. Either passively, listening for each host saying hello on the network or actively, probing for host at regular interval [1]. First way look like difficult as in requiring cooperation from diverse host and relying on protocol like SNMP. Or you could listen for

Network scan tool.

2016-06-07 Thread Mahesh Kss
Hi all, Need some of your thoughts for the below mentioned exercise. I am planning to do it using Django. But I am not sure where i can place the python script which monitors the network for connected hosts. Kindly share your thoughts and questions. I need to complete this as soon as possibl

Re: How can I get mail to go out?

2016-06-07 Thread C.J.S. Hayward
I uninstalled postfix and installed sendmail; now, for the first time, a password reset email went through. Thanks, On Tue, Jun 7, 2016 at 6:05 AM, C.J.S. Hayward < christos.jonathan.hayw...@gmail.com> wrote: > I have a Pinax installation where a classic Django "python manage.py > send_mail doe

How can I get mail to go out?

2016-06-07 Thread C.J.S. Hayward
I have a Pinax installation where a classic Django "python manage.py send_mail doesn't seem to be working. I have a Debian server (Linux www 4.5.0-x86_64-linode65 #2 SMP Mon Mar 14 18:01:58 EDT 2016 x86_64 GNU/Linux), and postfix is installed. It is working at least far enough that if, from the c

How do I order a model, based on multiple values of a ManyToManyField?

2016-06-07 Thread Sem Verbraak
Basically, I need to order, based on multiple values from a ManyToManyField. So what I want to achieve is having the objects with the most questioned values on top, continuing with objects that have less of the questioned values. Continuing with objects that don't have any of these values.

Re: django1.6 with uwsgi and nginx on RHEL 7

2016-06-07 Thread Avraham Serour
you just ran on your first problem for not using virtualenvs, I do hope you won't run onto others, but in most cases it just means you aren't seeing the problems yet. On Tue, Jun 7, 2016 at 12:02 AM, Larry Martell wrote: > In general, yes, I agree. But in this cast the machine is dedicated to >