Re: Django 1.6's lifespan for security updates?

2015-03-11 Thread Tim Graham
Having managed the last few security releases for Django, I'll say it's one of my least favorite tasks and I'm quite looking forward to dropping support for 1.4 (which supports Python 2.5) and 1.6 (Python 2.6). But, if there's sufficient interest that we could raise funds to support this effort

Re: Django phonegap CORS

2015-03-11 Thread Filipe Ximenes
Not 100% sure I understood your question, but it seems that you are trying to overcome the CORS only from the frontend side when you should be treating it from the Django side. Could you take a look on this package: https://github.com/ottoyiu/django-cors-headers If it suits your needs, a good idea

DjangoCon Europe 2015

2015-03-11 Thread Daniele Procida
Dear friends in Django, There's just one week left to submit a talk for this year's DjangoCon in Cardiff. If you don't think you're the right person to give a talk, please reconsider - and don't just take our word for it, read what Erik Romijn has to say o

Re: Don't understand regex-urls and DetailView...

2015-03-11 Thread inoyon artlover KLANGRAUSCH
I got it! :D (?P\w+) and NOT (P? . Am Mittwoch, 11. März 2015 21:57:34 UTC+1 schrieb inoyon artlover KLANGRAUSCH: > > I don't understand why this doesn't work and smashes an > > '*The current URL, lighter, didn't match any of these.'* > > my models.py > > class ShopList(models.Model): >

Don't understand regex-urls and DetailView...

2015-03-11 Thread inoyon artlover KLANGRAUSCH
I don't understand why this doesn't work and smashes an '*The current URL, lighter, didn't match any of these.'* my models.py class ShopList(models.Model): name = models.CharField(max_length=100, null=True, blank=True) description = models.CharField(max_length=100, null=True, blank=True

Re: Getting 500 error on ASO

2015-03-11 Thread Collin Anderson
Hi Michael, Are you checking your Apache log? Also, be sure to set up ADMINS so you can get emails for any django errors. I believe runfastcgi is gone from django now, along with all of django.core.servers.fastcgi. At work we used to host on ASO too. We now use Linode. Digital Ocean is good t

Re: Can't perform Querying using Q objects

2015-03-11 Thread Vijay Khemlani
At least when I tested a similar query it makes an OUTER JOIN, not an INNER JOIN What's the actual SQL command being executed? print Shops.objects.filter(...).query On Wed, Mar 11, 2015 at 1:19 PM, Ajay M wrote: > Hi Vijay, > The search text is okay.. I think when using the state__state_nam

Re: Django 1.6's lifespan for security updates?

2015-03-11 Thread Stephen Gallagher
On Wednesday, March 11, 2015 at 12:00:25 PM UTC-4, Carl Meyer wrote: > > It certainly sounds like there's an opportunity here for someone to > provide extra-extended security-backport support for certain Django > releases (beyond the ~3.5 years we'll typically support an LTS release > under cu

Re: Using the eval() command

2015-03-11 Thread Henry Versemann
Carl, Thanks for the advice and information. I'm certainly going to try it. Thanks again for the help. Henry On Wednesday, March 11, 2015 at 11:05:38 AM UTC-5, Carl Meyer wrote: > Hi Henry, > > On 03/10/2015 07:37 PM, Henry Versemann wrote: > > So how does an expression like you suggested abo

Re: How to get/assign the contents of the app code directory into my Django project

2015-03-11 Thread jaisol
Thanks again for your time on this. Even the setup.py comes with the downloaded app I didn't execute it because it wasn't part of the Install steps noted at the README.md file. Also, I didn't say which module I downloaded from GitHub because I thought it was against the forum policies so I gues

Re: Can't perform Querying using Q objects

2015-03-11 Thread Ajay M
Hi Vijay, The search text is okay.. I think when using the state__state_name and city__city_name relations Django INNER JOIN removes the shop without existing relation from the result. On Wednesday, March 11, 2015 at 8:22:55 PM UTC+5:30, Vijay Khemlani wrote: > > At least when using Post

Re: Django 1.6's lifespan for security updates?

2015-03-11 Thread Carl Meyer
Hi Stephen, On 03/11/2015 06:28 AM, Stephen Gallagher wrote: > So, here's the basic problem. The distributions that are packaging > python 2.6 are, basically Red Hat Enterprise Linux 6 and its clones > (CentOS, Scientific Linux, Oracle, etc.) and SUSE Linux Enterprise > Server 11. These two distri

Django phonegap CORS

2015-03-11 Thread Florian Auer
Hello I'm am stuck in a problem dealing with an CORS request from a phonegap app to an django application. What I have so far is the following: - a regular django web project - a phonegap app build on angularJS for some settings. - The idea is, that users can use the app to store relevant s

Re: Django 1.6's lifespan for security updates?

2015-03-11 Thread Tom Evans
On Wed, Mar 11, 2015 at 12:53 PM, Andreas Kuhne wrote: > I think the main thing here is that python 2.6 has already reached end of > life in October 2013. That's 1 ½ years ago! So opting for a dead version of > python to be used is not really the right way to go for the django > developers IMHO. I

Can't perform Querying using Q objects

2015-03-11 Thread Ajay M
Hi I'm a newbie to Django. I'm trying to implement a search feature like this. query_results = Shops.objects.filter\ (Q(shop_name__icontains=search_text)\ |Q(state__state_name__icontains=search_text)\ |Q(city_

Re: Django 1.8 ImportError: No module named formtools

2015-03-11 Thread Neto
Hi Simon, pip install django-formtools doesn't work. Could not find any downloads that satisfy the requirement django-formtools Em quarta-feira, 11 de março de 2015 03:12:06 UTC-3, Simon Charette escreveu: > > Hi Neto, > > Here's an excerpt from the Django 1.8 release note >

Re: render_to_response and HttpResponseRedirect

2015-03-11 Thread elcaiaimar
Finally, I've changed my way to send parameters, it's much better send them by url. El miércoles, 11 de marzo de 2015, 11:21:34 (UTC+1), elcaiaimar escribió: > > Hello! > > I'm having problems in a form. I want to send some values with it to > 'obras/edicionobra.html' but I also want to redirect

Re: Django 1.6's lifespan for security updates?

2015-03-11 Thread Bill Freeman
You should really decouple yourself from the distro's choices, saving headaches in the future. Let me expand on Avraham's suggestion. There is little difficulty in having more than one version of python on a box. The main caution here is that the distrio's use of python might depend on that pyth

Re: Django 1.6's lifespan for security updates?

2015-03-11 Thread Andreas Kuhne
2015-03-11 13:28 GMT+01:00 Stephen Gallagher : > > On Tuesday, March 10, 2015 at 6:01:28 PM UTC-4, Carl Meyer wrote: >> >> I sympathize with your situation, but Python 2.6 reached end-of-life on >> October 29, 2013 (a year and a half ago now), and since then has been >> unsupported and not receivi

Re: Django 1.6's lifespan for security updates?

2015-03-11 Thread Stephen Gallagher
On Tuesday, March 10, 2015 at 6:01:28 PM UTC-4, Carl Meyer wrote: > > I sympathize with your situation, but Python 2.6 reached end-of-life on > October 29, 2013 (a year and a half ago now), and since then has been > unsupported and not receiving security updates. I don't think the Django > core

Django 1.7.6 TypeError when applying migration with ForeignKey with default

2015-03-11 Thread Krzysztof Ciebiera
I have created a model A: def g(): return A.objects.get(pk=1) class A(models.Model): a = models.IntegerField() ./manage.py makemigrations ./manage.py migrate then I've added some data: a = A(a=1) a.save() then I have created another model with a ForeignKey field with a default set to

Testing Django: testing template at different time

2015-03-11 Thread Zaki Akhmad
Hello, I'd like to write a test script for my django app. Example, if within business hour, my django app will render: "It's working time!" And if not within business hour, my django app will render: "Happy holiday!" So the views, will check when the url is accessed. How do I write the test sc

render_to_response and HttpResponseRedirect

2015-03-11 Thread elcaiaimar
Hello! I'm having problems in a form. I want to send some values with it to 'obras/edicionobra.html' but I also want to redirect to the page "/edicionobra/". In the code below I send the values and I go to edicionobra.html, however, the URL is /nuevacuenca/ and that's wrong. I've tried to put

Different user profile associated to a each user group

2015-03-11 Thread Alessandro Pasotti
Hi, I've used custom user profiles in the past, but they were associated to all users, now I need to associate a different custom profile for each user group (for example: "corporate", "private"). Any hint about the best approach? -- Alessandro Pasotti w3: www.itopen.it -- You received this

Re: Generic Relation in Legacy Database?

2015-03-11 Thread Gergely Polonkai
Hello, sure, I can do that as soon as I get home in the evening (timezone CET). Maybe we can patch up some helper class for anyone who wants to migrate from eloquent, although I don't think many devs who use an ORM already would want to transition to another, but hey, who knows? :) Best, Gergely