Re: Regular Expression with Variables.

2016-05-19 Thread Arun S
I Did try this, i think i am not doing it right: Could you tell what is that i am doing is wrong. I am now not able to provide multiple Regex in the forms.RegexField using the above method. regex_f=r'^.*(?=.{{{MIN},{MAX}}})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!$%^&*?@#-_+=])'

Re: Regular Expression with Variables.

2016-05-19 Thread Stephen J. Butler
You can't provide multiple regex's to the RegexField. What you were doing before is exactly equivalent to this: r'^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!$%^&*?@#-_+=]).*$' So for my suggestion, just do this:

Create account that can either be a person or a group

2016-05-19 Thread Karl Arunachal
I want to create user accounts for my website. The account can be either a person or a group. So for *person* account I want to get different information from them (such as First name, Last Name, ...), and for *group* account get different information (such as Group name, ...). Basically different

Re: Regular Expression with Variables.

2016-05-19 Thread Arun S
Yes, This works exactly how i intended to. The Validator Raises error when it does'nt match now. And i did eliminate the .*$ which dint make much of a difference. Thanks for the help. Cheers Arun. On Thursday, May 19, 2016 at 12:35:42 PM UTC+5:30, Stephen Butler wrote: > > You can't provide

Re: Django Password Validation

2016-05-19 Thread James Schneider
> > Thanks for the Suggestion. > James, in the option that you provided makes the User change the Password of the Logged in user which might turn out to be a costly operation. Not entirely sure what you mean? If you make the username available to the ModelForm class (either as a field value or

elasticsearch for django with haystack

2016-05-19 Thread M Hashmi
My code is similar to like this if not exactly like in the link provided. But I am not able to search products added via products models. The link is http://stackoverflow.com/questions/37314696/djanog-elasticsearch-implementation-issue?noredirect=1#comment62151898_37314696. In this link user

Re: sub accounts in django

2016-05-19 Thread Javier Guerra Giraldez
On 18 May 2016 at 17:02, Mehdy M. Haghy wrote: > Creating sub accounts is a pretty common scenario. > you have clients like (copmany1, company2, ..., company N) > and they have their own users, roles and permissions. > any recommendation on how to implement this or any package

Re: sub accounts in django

2016-05-19 Thread M Hashmi
Can you explain one of those approaches or provide a web reference with complete A to Z implementaiton? On Thursday, May 19, 2016 at 2:19:04 AM UTC-7, Javier Guerra wrote: > > On 18 May 2016 at 17:02, Mehdy M. Haghy > wrote: > > Creating sub accounts is a pretty common

Re: sub accounts in django

2016-05-19 Thread Christian Ledermann
https://docs.djangoproject.com/en/1.9/ref/contrib/sites/ On 19 May 2016 at 14:02, M Hashmi wrote: > Can you explain one of those approaches or provide a web reference with > complete A to Z implementaiton? > > On Thursday, May 19, 2016 at 2:19:04 AM UTC-7, Javier Guerra

Re: sub accounts in django

2016-05-19 Thread Christian Ledermann
http://www.two-legs.com/2011/08/creating-a-dynamic-multisite-using-django/ On 19 May 2016 at 14:20, Christian Ledermann wrote: > https://docs.djangoproject.com/en/1.9/ref/contrib/sites/ > > On 19 May 2016 at 14:02, M Hashmi wrote: >> Can you

Re: sub accounts in django

2016-05-19 Thread Ben Lopatin
This is the scenario I wrote django-organizations to handle (http://django-organizations.readthedocs.io/en/latest/). On Wednesday, May 18, 2016 at 12:04:02 PM UTC-4, Mehdy M. Haghy wrote: > > Creating sub accounts is a pretty common scenario. > you have clients like (copmany1, company2, ...,

selectively remove forms from formset in view function

2016-05-19 Thread Richard Brockie
Hi, I'm working with pagination of a large formset in my view function. For forms outside the range to be viewed, I'm currently doing this: for form in results_formset: place_to_test = int(form['placing'].value()) if place_to_test not in visible_range:

Double free or Corruption error when using GeoDjango

2016-05-19 Thread Tapan Pandita
I am running django 1.9.4 on gunicorn19.4.5 with the gevent worker (gevent==1.0.2, greenlet==0.4.9). My app is deployed on heroku. For some requests, I have noticed this error: "*** Error in `/app/.heroku/python/bin/python': double free or corruption (out): 0x0403bc90 ***". I can't

Re: Double free or Corruption error when using GeoDjango

2016-05-19 Thread Erik Cederstrand
> Den 19. maj 2016 kl. 22.17 skrev Tapan Pandita : > > I am running django 1.9.4 on gunicorn19.4.5 with the gevent worker > (gevent==1.0.2, greenlet==0.4.9). My app is deployed on heroku. For some > requests, I have noticed this error: "*** Error in >

get all columns as a list

2016-05-19 Thread Larry Martell
This is probably very simple, but I just can't figure out how to do it. I want to get all the columns in some rows as a list. I know I could use values_list and flat=True and list all the columns, but is that the only way? I want to do something like this: rows = FOO.objects.filter(bar='baz')

is there any django app for opendata

2016-05-19 Thread Luis Zárate
Hi, I interested in opendata and open government so I am looking for tools to build a platform for a local government. I really like django, I like to build system with it so I want to implement something useful that help to create and transparent and eficient for free Do you have some

graphite delete data not in whisper

2016-05-19 Thread Dawei Zhang
I am using a graphite weewx, an extension to upload data from weather stations; and I need to delete some of it. However, the folders are not in the /opt/graphite/storage/whisper/ Where else can I search to delete data/folder from graphite server? -- You received this message because you are