Re: Actively developed/supported piston fork?

2014-10-31 Thread reduxionist
On Thursday, October 30, 2014 4:34:32 PM UTC+7, sams...@gmail.com wrote: > > I've inherited an app that was written for Django 1.4, and updated it to > Django 1.7. > ... > Are any being actively used/fixed/supported? Which one should I try? > While Russell Keith-Magee is definitely correct when

Re: Primary keys vs. natural keys

2014-10-31 Thread Carl Meyer
> On Oct 31, 2014, at 3:26 PM, Torsten Bronger > wrote: > > Hallöchen! > > Carl Meyer writes: > >>> On Oct 31, 2014, at 4:19 AM, Torsten Bronger >>> wrote: >>> >>> [...] >>> >>> Do you mean this: >>> >>> class

Re: Calling a function for a url tag parameter

2014-10-31 Thread Aubrey Stark-Toller
Hey, A filter would work better here if you can use one. The following should work: Defined as: @register.filter def encode_url(link_text): return link_text.replace(' ', '_') And in template: {% with state_url=flow.state.description|encode_url %} advance {% endwith %} Aubrey On Thu, Oct 30,

Re: Auto-filling others ImageFields based on the original one

2014-10-31 Thread Mike Dewhirst
On 1/11/2014 2:35 AM, Sasa Trifunovic wrote: Hi, I have to save 3 versions of uploaded photo (and i dont want to use solr) , original one and two which are resized versions of the original one. I need those two additional photos as ImageFields in my model , due to the fact that i want to use

Re: Charfield case insensitive sorting in Model Admin

2014-10-31 Thread Azam Alias
Hi Collin, Thanks for the solution ! On Thursday, 30 October 2014 02:39:53 UTC+8, Collin Anderson wrote: > > Hello, > > One way to do it would be to have add an editable=False field name_sort > that's a lower() version of your name field. You can update that field in > the save method. > >

Re: Slow SQL query

2014-10-31 Thread Collin Anderson
Hi Erik, > Maybe Users doesn't belong in the Orders table? You could move the user to > a different table which stores the Order.id <-> user_id relation, which > would give a fast lookup on user_id and thus easy access to the Order.id > index. Interesting idea! I'll think about it.

Re: Primary keys vs. natural keys

2014-10-31 Thread Torsten Bronger
Hallöchen! Carl Meyer writes: >> On Oct 31, 2014, at 4:19 AM, Torsten Bronger >> wrote: >> >> [...] >> >> Do you mean this: >> >>class ExternalOperator(models.Model): >> >>name = models.CharField(_("name"), max_length=30, unique=True) >>

Re: Primary keys vs. natural keys

2014-10-31 Thread Carl Meyer
> On Oct 31, 2014, at 4:19 AM, Torsten Bronger > wrote: > Carl Meyer writes: >> [...] >> >> There is no built in feature for this, but it doesn't seem like a >> hard problem to solve with your own conventions. For instance, >> rather than hardcoding the name of

Re: DB foreign key constraints : Django 1.7 regression ?

2014-10-31 Thread notsqrt
Ticket created at https://code.djangoproject.com/ticket/23741 , with a basic implementation (that detected missing relations on non-managed models on my project !!). Thanks for the help ! Le jeudi 30 octobre 2014 18:28:31 UTC+1, Carl Meyer a écrit : > > On 10/30/2014 06:09 AM, not...@gmail.com

Auto-filling others ImageFields based on the original one

2014-10-31 Thread Sasa Trifunovic
Hi, I have to save 3 versions of uploaded photo (and i dont want to use solr) , original one and two which are resized versions of the original one. I need those two additional photos as ImageFields in my model , due to the fact that i want to use django ORM. Class Post(model.Models):

Re: pycurl and SSLv3

2014-10-31 Thread Tom Evans
On Thu, Oct 30, 2014 at 2:50 PM, john wrote: > Hi, > > On the server side of my Django website I use pycurl (version 7.20.x) to > connect to authorize.net (to send credit card info). On Nov 4 Authorize.net > will turn off SSLv3. So I'm wondering if my use pycurl will

Rotate the CSRF token on every request

2014-10-31 Thread ibrw100000
Hi all, I am in the process right now of working on a web portal where we want to rotate the csrf token on each request. We intend to have a new token each time for optimal security. I was hoping someone might know more about this than I do because I've run into some difficulties that were not

Freelance Web Designer in Hyderabad,Rumenia,Turkey,Afganisthan,Turkisthan

2014-10-31 Thread Freelancer Web Designer
My Self Raheem Pasha, Freelance Hyderabad based Freelance Website Designer and Developer with Five years experience in Internet, offering high-end expertise solution at freelance . Offering Web designing,Seo Services,Web Hosting,Template designing,Logo Designing,Banner Advertisement,Flash

Re: translation of view messages and business related messages not working

2014-10-31 Thread Marcela Campo
Thanks Ramiro, that worked. I think I understand why, but there's one thing I still don't get. I have some error messages that I was marking for translation with ugettext_noop, as I read it was a good way if I wanted for example to log the message without translation and translate it only

Re: Primary keys vs. natural keys

2014-10-31 Thread Torsten Bronger
Hallöchen! Carl Meyer writes: > [...] > > There is no built in feature for this, but it doesn't seem like a > hard problem to solve with your own conventions. For instance, > rather than hardcoding the name of the natural key field inside > the natural_key method, make it a model class

Re: Primary keys vs. natural keys

2014-10-31 Thread Carl Meyer
Hi Torsten, > On Oct 31, 2014, at 3:13 AM, Torsten Bronger > wrote: > Do I understand it correctly that in the Django community, it is > preferred to use surrogate primary keys (the auto ID field) instead > of explicitly setting primary keys? Yes, I'd say this

Primary keys vs. natural keys

2014-10-31 Thread Torsten Bronger
Hallöchen! Do I understand it correctly that in the Django community, it is preferred to use surrogate primary keys (the auto ID field) instead of explicitly setting primary keys? Currently, I add natural_key() methods to many of my models, but some of them return only one field. Now I wonder