Re: Choosing a Django-based CMS

2012-08-06 Thread Sean O'Brian
Thanks all. As I get, I should try both Mezzazine and FeinCMS. May be they're have another advantages and disadvantages. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Do I understand the support schedule correctly?

2012-08-06 Thread Thomas Lockhart
I'd be interested in hearing other opinions about this. Out there in > the "real world" (™), how long does Long Term Support have to be in > order to be practically useful? Two years to be able to stick with a single version? Just fine imho. A few points you have probably heard before:

Re: Do I understand the support schedule correctly?

2012-08-06 Thread Mike Dewhirst
On 7/08/2012 11:15am, Russell Keith-Magee wrote: On Tue, Aug 7, 2012 at 8:40 AM, Mike Dewhirst wrote: Russell This might be slightly off-thread. Since 1.5 will be Python 3, would you consider making 1.4 a long-term-support version? Django 1.5 will be the first Django

Re: Testing FormWizard

2012-08-06 Thread jscn
On Tuesday, 7 August 2012 10:30:22 UTC+8, jscn wrote: > On Monday, 9 July 2012 16:43:19 UTC+8, James Rivett-Carnac wrote: > > > I am trying to write test cases for a django 1.4 CookieWizardView > > (django.contrib.formtools.wizard.views.CookieWizardView), and I'm not sure > > how to handle

Re: Testing FormWizard

2012-08-06 Thread jscn
On Monday, 9 July 2012 16:43:19 UTC+8, James Rivett-Carnac wrote: > I am trying to write test cases for a django 1.4 CookieWizardView > (django.contrib.formtools.wizard.views.CookieWizardView), and I'm not sure > how to handle sending multiple posts to the view. > > class

Re: Django work required

2012-08-06 Thread Marcin Tustin
What is your budget? Are you looking to pay hourly or get a fixed quote? How much existing code is there? Briefly, what is the nature of the project? What other software (e.g databases, job queues) are used? On Monday, August 6, 2012, MeAgain wrote: > Hello All, > I need some help finishing a

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-08-06 Thread Cal Leeming [Simplicity Media Ltd]
Hi everyone. Really sorry guys - but due to last minute work commitments I'm going to have to delay this webcast for a short while. Although we could have still gone ahead - we didn't have any slides or tidy example code ready, and I really didn't want the whole thing to be rushed like the last

Re: Do I understand the support schedule correctly?

2012-08-06 Thread Russell Keith-Magee
On Tue, Aug 7, 2012 at 8:40 AM, Mike Dewhirst wrote: > Russell > > This might be slightly off-thread. Since 1.5 will be Python 3, would you > consider making 1.4 a long-term-support version? Django 1.5 will be the first Django release to officially support Python 3, but it

Re: Do I understand the support schedule correctly?

2012-08-06 Thread Mike Dewhirst
Russell This might be slightly off-thread. Since 1.5 will be Python 3, would you consider making 1.4 a long-term-support version? I know a couple of large organisations who simply won't consider non-LTS open source kit. Mike On 7/08/2012 10:05am, Russell Keith-Magee wrote: On Sun, Aug 5,

Re: Do I understand the support schedule correctly?

2012-08-06 Thread Russell Keith-Magee
On Sun, Aug 5, 2012 at 12:24 AM, Steve Bergman wrote: > I'm considering using Django for 2 projects. An LFS shop and a site > which will use Pinax. Both high profile Django apps. At this time, the > latest supported Django version for both is 1.3.3. If I understand >

Re: Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-06 Thread Melvyn Sopacua
On 6-8-2012 17:56, Mark Gemmill wrote: > I am not sure how that would work. Remember, this is a single instance of > django - i.e. I'm not running the https/admin part of the > site as a separate instance and therefore have only one settings file. > > What I came up with so far was to create 2

Re: fastcgi vs wsgi

2012-08-06 Thread Melvyn Sopacua
Hi Gour, On 6-8-2012 18:03, Gour wrote: > At the moment I (have to) run 3 php sites in a tight memory environment > using lighttpd server & php-fpm and I'd like to move one php site (for > the beginning) to django cms (mezzanine) and wonder what is the impact > of running django app with fastcgi

Django work required

2012-08-06 Thread MeAgain
Hello All, I need some help finishing a Django site that has lots of code built already, which needs plugging together and the final teaks to deliver a working site. I have all the designs but need to find someone who can code it all together and start work on this soon. Any ideas about where I

Re: Thoughts on web2py?

2012-08-06 Thread joris
I actually decided to base my project on web2py rather than django but decided on django at te very last minute. The reason I originally chose web2py is the agility and flexibility of the generated SQL. Django favours simplicity over speed, meaning you develop very fast but the SQL is rather

Re: Form Wizard usable with branching?

2012-08-06 Thread Germán
Hi @mtnhiker. I ran into very similar problems and spent weeks dealing with a View class based on Django-1.4's django.contrib.formtools.wizard.views.SessionWizardView. It was so much customization that some things started to go wrong and debugging was awful. I came up with this solution:

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
I solved that problem. It was a circular reference caused by an import in app__unit__.py. I used to put in that file an import.to urls.py. Tanks for your help! Ivo Marcelo Leonardi Zaniolo +55 71 9302 3400 imarcel...@gmail.com www.informatizzare.com.br imarcelolz.blogspot.com.br Em 06/08/2012

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Yes, I'd check that, there is no circular reference. *Marcelo* 2012/8/6 Rajeesh Nair > > > Checked for any circular import between these apps also? I guess you > already know such possibilities. Just asking to make sure. > > > Rajeesh. > > -- > You received this

Re: Share models between django apps

2012-08-06 Thread Rajeesh Nair
Checked for any circular import between these apps also? I guess you already know such possibilities. Just asking to make sure. Rajeesh. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Yes, it raises an ImportError, but handled by django. At this point I can't see the stack trace or any other data related to this exception. it displays only the message: Error: cannot import name Medic I've already try to use on that line a relative/full import. *Tanks* *Ivo Marcelo Leonardi

Re: Share models between django apps

2012-08-06 Thread Rajeesh Nair
Hi, Please clarify what exactly is the failure. Is it raising ImportError? Then, Try "import from project.common.models" instead of "common.models". Rajeesh. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the

fastcgi vs wsgi

2012-08-06 Thread Gour
Hello, At the moment I (have to) run 3 php sites in a tight memory environment using lighttpd server & php-fpm and I'd like to move one php site (for the beginning) to django cms (mezzanine) and wonder what is the impact of running django app with fastcgi vs wsgi? how they compare memory-wise?

Re: Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-06 Thread Mark Gemmill
I am not sure how that would work. Remember, this is a single instance of django - i.e. I'm not running the https/admin part of the site as a separate instance and therefore have only one settings file. What I came up with so far was to create 2 static url settings: *STATIC_URL =

Re: PostGIS 2.0.0 problems

2012-08-06 Thread Oleg Korsak
Have you tried to create new project, then new app, then new model with PointField(geography=False) and then run manage.py syncdb? Here must be a problem :) суббота, 4 августа 2012 г., 8:59:34 UTC+3 пользователь Will Tuladhar-Douglas написал: > > Folks, > > I just checked and I'm running

Re: object.create speed, creating 3 objects takes 1 sec in sqlite

2012-08-06 Thread creecode
Hello Anton, On Friday, August 3, 2012 9:05:47 AM UTC-7, Anton wrote: > My Problem: I will populate it with 5 items. > > Has Django really such a bad performance for data insertion? > > I can't believe it, so ... can somebody give me a hint? > Is there a doc page dedicated to

Re: Choosing a Django-based CMS

2012-08-06 Thread Gour
On Sun, 5 Aug 2012 00:30:57 -0700 (PDT) Sean O'Brian wrote: > Can you advice a mature and extensible CMS? The main > requirement is extending pages, for avatars for example. I was hoping to replace PHP sites with some web2py CMS, but at the end have decided to go with Django

Re: Do I understand the support schedule correctly?

2012-08-06 Thread creecode
Hello Steve, On Saturday, August 4, 2012 9:24:27 AM UTC-7, Steve Bergman wrote: that means a forced upgrade on both framework and > apps Why a forced upgrade? Just use what you installed to get your projects up and running until such time as as conditions are comfortable for you to

Re: Choosing a Django-based CMS

2012-08-06 Thread Gabriel - Iulian Dumbrava
I did use FeinCMS to extend the Page model and it works pretty well. Gabriel duminică, 5 august 2012, 10:30:57 UTC+3, Sean O'Brian a scris: > > Hi! > I'm using Django CMS for a few of weeks and I like it. But there's one > problem, which I already ran into: I can't extend Page model easily. > I

Re: Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-06 Thread Nickolas Grigoriadis
What about 2 settings files, for the different instances? One for HTTP and one for HTTPS? You can partially override settings by doing something like this: from foo.settings.prod import * # Add local overrides here Regards, Nickolas On Monday, 6 August 2012 07:34:40 UTC+2, Mark Gemmill wrote:

Re: Dynamic form field type.

2012-08-06 Thread Nicolas Emiliani
On Sun, Aug 5, 2012 at 9:08 PM, Melvyn Sopacua wrote: > Hi, > > On 6-8-2012 0:09, Nicolas Emiliani wrote: > > > I have three Models, > > > > Home, HomeAttributeType and HomeAttributeValue. HomeAttributeValue has > > an FK to HomeAttributeType and one to Home. > > > > The

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Hello, the common is a directory with an django app. Ivo Marcelo Leonardi Zaniolo +55 71 9302 3400 imarcel...@gmail.com www.informatizzare.com.br imarcelolz.blogspot.com.br Em 06/08/2012 09:02, "Xavier Ordoquy" escreveu: > Hi, > > Le 6 août 2012 à 13:53, Ivo Marcelo

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Ivo Marcelo Leonardi Zaniolo +55 71 9302 3400 imarcel...@gmail.com www.informatizzare.com.br imarcelolz.blogspot.com.br Em 06/08/2012 09:02, "Xavier Ordoquy" escreveu: > Hi, > > Le 6 août 2012 à 13:53, Ivo Marcelo Leonardi Zaniolo > a écrit : > > I'm

Re: Share models between django apps

2012-08-06 Thread Xavier Ordoquy
Hi, Le 6 août 2012 à 13:53, Ivo Marcelo Leonardi Zaniolo a écrit : > I'm having problems share models between 3 different apps. > The models that I share the common app. > > example: > project / > common / models.py > app1/models.py -> import from common.models >

Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
I'm having problems share models between 3 different apps. The models that I share the common app. example: project / common / models.py app1/models.py -> import from common.models app2/models.py -> import from common.models If I configure the application and only the most common one app, I have

Re: union of two QuerySets

2012-08-06 Thread Robin Pedersen
There might be situations where you already have a couple of querysets, and want to combine them, or for DRYness it might be an idea to create functions that return querysets, and combine the results: combined = self.get_some() | self.get_others() And querysets are lazily executed, so unless

Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-06 Thread Mark Gemmill
I've been tackling the problem of serving both the frontend (http) and the admin (https) site of a Django application from a single instance of the application. I ran a successful test on webfaction serving the application with nginx+gunicorn and having nginx take care of redirecing /admin urls

Re: django.shortcuts redirect doesn't pass argument

2012-08-06 Thread Bill Beal
I see that I had mixed the second and third ways of using 'redirect' in the doc. It seems to be working OK this way: def upload1(request): . . . fout = 'tempfile.csv' return redirect('/isf/upload2/' + fout + '/') def upload2(request, filename=None): . . . with the following in