Re: Pinax or Straight Django

2012-01-16 Thread Adnan Sadzak
Maybe this can help You:
http://groups.google.com/group/django-users/browse_thread/thread/420e428525b41659/570dd1ffc19458ff?pli=1
http://groups.google.com/group/django-users/browse_thread/thread/420e428525b41659/570dd1ffc19458ff?pli=1

Cheers


On Tue, Jan 17, 2012 at 8:12 AM, Kevin Miller wrote:

> Dear all,
>
> I have been struggling between using Pinax or Straight django to
> develop my apps. I have never used Pinax,  but was reading on it.
> I have already only developed one website in django although it is not
> yet launched.
>
> I would really like to hear the experiences of those who have used both.
>
> Are there really any benefits in using Pinax?
>
> NB: On a quick browse on google I realize that it was difficult to
> find good and up to date tutorials on Pinax.
>
>
> Thanks in advance for the replies.
>
>
> Kevin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Pinax or Straight Django

2012-01-16 Thread Kevin Miller
Dear all,

I have been struggling between using Pinax or Straight django to
develop my apps. I have never used Pinax,  but was reading on it.
I have already only developed one website in django although it is not
yet launched.

I would really like to hear the experiences of those who have used both.

Are there really any benefits in using Pinax?

NB: On a quick browse on google I realize that it was difficult to
find good and up to date tutorials on Pinax.


Thanks in advance for the replies.


Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread mattym
I started learning Python and Django at the same time. That was a bit
of a challenge for me, with the Django template language having
slightly different syntax. Soon after I started I had to get a project
out fast, so I went with Pinax. Pinax helped me learn more about
Django (and Python). It felt complementary to me.

Python knowledge and an undertanding the MVC pattern will help tons.

Good luck!

On Jan 16, 8:08 pm, Alec Taylor  wrote:
> Thanks, I didn't know of the lightBird site.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pseudo one-to-one

2012-01-16 Thread Mike Dewhirst

On 17/01/2012 12:57pm, Bill Beal wrote:

How about this (or has it been mentioned already?): All children in one
table, all with FK to the parent.  One FK in the parent pointing to the
one special child.  Does there really have to be a one-to-one anywhere?
And I don't understand why anyone  needs to chain from child to child.
  If they are entered in chronological order, the IDs will be in
numerical order, or else you can add a field to order them.


Bill - this is the direction I'm now taking.

Thanks one and all.

Cheers

Mike




On Mon, Jan 16, 2012 at 6:06 PM, Mike Dewhirst > wrote:

On 17/01/2012 4:13am, Jeff Heard wrote:

You might modify the manager to store historical entries in a
different table with the same structure.


I once built a work invoicing system like that where the work
records got transferred from work_in_progress to work_invoiced as
part of the invoicing process. It succeeded nicely because it was
genuinely different information in different tables.

This problem isn't quite the same and I'm reluctant to keep the same
information in two places. There has to be a better way than
multiple tables.

Thanks Jeff

Mike





On Jan 16, 2012, at 2:18 AM, Mike Dewhirst__>
wrote:

On 16/01/2012 5:19pm, Bill Beal wrote:

Why not have a child model that differs from the
one-to-one child
model in that the parent key is now a foreign key to the
parent?
When another child needs to replace the current one in the
one-to-one relationship, move the child to the second
table where
there is a many-to-one relationship to the parent, then
modify
the one-to-one child record.  If necessary, duplicate
the current
one-to-one record in the many-to-one table.  Does this make
sense?


I understand what you mean but it feels a bit yukky.
Thinking about
it some more maybe I need a 'hidden' field which gets updated on
saving based on the existence of a more modern child.

Dunno.

Thanks

Mike



Bill Beal

On Mon, Jan 16, 2012 at 12:55 AM, Mike
Dewhirst
>__>
wrote:

I need a one-to-many to behave like a one-to-one.

The parent instance of my model can only ever have one
current
child instance of another model. Multiple child
instances have to
exist and be kept for the historical record.

The main benefit of one-to-one relationships is that
they can be
mapped together (in the Admin) as an extension of the
parent.

In a view I suppose I can use a manager to filter the
children
into a pseudo-one-to-one thingy but how do I do this in the
Admin?

Maybe sort them into date order and only show one? Is
there a
better way?

Thanks for any help

Mike

-- You received this message because you are subscribed
to the
Google Groups "Django users" group. To post to this
group, send
email to django-users@googlegroups.com

>. To unsubscribe
from this
group, send email to
django-users+unsubscribe@__goo__glegroups.com

__>.
For more
options, visit this group at
http://groups.google.com/group/django-users?hl=en

>.


-- You received this message because you are subscribed
to the
Google Groups "Django users" group. To post to this
group, send
email to django-users@googlegroups.com
. To 

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Alec Taylor
Thanks, I didn't know of the lightBird site.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pseudo one-to-one

2012-01-16 Thread Ovnicraft
On Mon, Jan 16, 2012 at 12:55 AM, Mike Dewhirst wrote:

> I need a one-to-many to behave like a one-to-one.
>

In -many side add a constraint, unique.

Regards,

>
> The parent instance of my model can only ever have one current child
> instance of another model. Multiple child instances have to exist and be
> kept for the historical record.
>
> The main benefit of one-to-one relationships is that they can be mapped
> together (in the Admin) as an extension of the parent.
>
> In a view I suppose I can use a manager to filter the children into a
> pseudo-one-to-one thingy but how do I do this in the Admin?
>
> Maybe sort them into date order and only show one? Is there a better way?
>
> Thanks for any help
>
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>


-- 
Cristian Salamea
@ovnicraft

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Venkatraman S
http://www.lightbird.net/dbe/ has some neat hands-on tutorials.

-Venkat

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Best Practices for Outsourcing Partial Development?

2012-01-16 Thread Venkatraman S
On Tue, Jan 17, 2012 at 6:30 AM, cjwalter  wrote:

> This is why I would appreciate to hear about experiences traveling
> this road. What worked and what didn't?
>

Have never been a fan of elance etc; you should be lucky to find a good set
of 'trained hands' there.
The best would be to ask around and check the probable candidates - word of
mouth works best.

-Venkat

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pseudo one-to-one

2012-01-16 Thread Bill Beal
How about this (or has it been mentioned already?): All children in one
table, all with FK to the parent.  One FK in the parent pointing to the one
special child.  Does there really have to be a one-to-one anywhere?
And I don't understand why anyone  needs to chain from child to child.  If
they are entered in chronological order, the IDs will be in numerical
order, or else you can add a field to order them.

On Mon, Jan 16, 2012 at 6:06 PM, Mike Dewhirst wrote:

> On 17/01/2012 4:13am, Jeff Heard wrote:
>
>> You might modify the manager to store historical entries in a
>> different table with the same structure.
>>
>
> I once built a work invoicing system like that where the work records got
> transferred from work_in_progress to work_invoiced as part of the invoicing
> process. It succeeded nicely because it was genuinely different information
> in different tables.
>
> This problem isn't quite the same and I'm reluctant to keep the same
> information in two places. There has to be a better way than multiple
> tables.
>
> Thanks Jeff
>
> Mike
>
>
>
>>
>>
>> On Jan 16, 2012, at 2:18 AM, Mike Dewhirst
>> wrote:
>>
>>  On 16/01/2012 5:19pm, Bill Beal wrote:
>>>
 Why not have a child model that differs from the one-to-one child
 model in that the parent key is now a foreign key to the parent?
 When another child needs to replace the current one in the
 one-to-one relationship, move the child to the second table where
 there is a many-to-one relationship to the parent, then modify
 the one-to-one child record.  If necessary, duplicate the current
 one-to-one record in the many-to-one table.  Does this make
 sense?

>>>
>>> I understand what you mean but it feels a bit yukky. Thinking about
>>> it some more maybe I need a 'hidden' field which gets updated on
>>> saving based on the existence of a more modern child.
>>>
>>> Dunno.
>>>
>>> Thanks
>>>
>>> Mike
>>>
>>>
>>>
 Bill Beal

 On Mon, Jan 16, 2012 at 12:55 AM, Mike
 Dewhirst**>
 wrote:

 I need a one-to-many to behave like a one-to-one.

 The parent instance of my model can only ever have one current
 child instance of another model. Multiple child instances have to
 exist and be kept for the historical record.

 The main benefit of one-to-one relationships is that they can be
 mapped together (in the Admin) as an extension of the parent.

 In a view I suppose I can use a manager to filter the children
 into a pseudo-one-to-one thingy but how do I do this in the
 Admin?

 Maybe sort them into date order and only show one? Is there a
 better way?

 Thanks for any help

 Mike

 -- You received this message because you are subscribed to the
 Google Groups "Django users" group. To post to this group, send
 email to django-users@googlegroups.com
 >.
 To unsubscribe from this
 group, send email to 
 django-users+unsubscribe@__goo**glegroups.com
 
 **>. For more
 options, visit this group at
 http://groups.google.com/__**group/django-users?hl=en
 
 >.


 -- You received this message because you are subscribed to the
 Google Groups "Django users" group. To post to this group, send
 email to django-users@googlegroups.com. To unsubscribe from this
 group, send email to 
 django-users+unsubscribe@**googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/**group/django-users?hl=en
 .

>>>
>>> -- You received this message because you are subscribed to the
>>> Google Groups "Django users" group. To post to this group, send
>>> email to django-users@googlegroups.com. To unsubscribe from this
>>> group, send email to 
>>> django-users+unsubscribe@**googlegroups.com.
>>> For
>>> more options, visit this group at
>>> http://groups.google.com/**group/django-users?hl=en
>>> .
>>>
>>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> 

Best Practices for Outsourcing Partial Development?

2012-01-16 Thread cjwalter
I am working on a django project and am contemplating to contract some
expertise (using elance portals) for certain aspects in order to speed-
up the development process. This could concern visual design aspects
or working on specific apps. But I am reluctant to grant full access
to all project files. Not only because I am somewhat (but not more
than this ;-) paranoid, but would like to keep the coordination
efforts as small as possible. At the same time I see that the fully
functioning project must be available to a third party in order to do
serious work. Maybe providing .pyc files could be a solution (yes, I
know that they can be decompiled)?

This is why I would appreciate to hear about experiences traveling
this road. What worked and what didn't?

TIA

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Customize "This field is required" message.

2012-01-16 Thread galgal
You can specify error message using that: 
https://docs.djangoproject.com/en/1.3/ref/forms/fields/#error-messages

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/H4zyq5AY728J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



admin - user related modules in admin

2012-01-16 Thread galgal
I use extended user profile (class name: UserProfile). I made an app for 
this, named account. In settings I have set:AUTH_PROFILE_MODULE = 
'account.UserProfile'

But I made another model in that app named RestrictedUsername. I want to 
put there usernames, that will be reserved and not available in register 
process. I don't know why, but it doesn't appear in admin panel. I 
registered it:
>
> from django.contrib import admin
> from apps.account.models import RestrictedUsername
> class RestrictedUsernameAdmin(admin.ModelAdmin):
> list_display = ('username',)
> search_fields = ('username',)
> admin.site.register(RestrictedUsername, RestrictedUsernameAdmin)


Any ideas how to make it work?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/eUhARmLIvV4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-16 Thread Stuart Laughlin

Graham, thanks for your input, which I found enlightening, especially the 
information regarding extension modules and sub interpreters. I can see how 
some of the things I said previously may have been unfairly biased against 
apache, when the real issues were inherent to how WSGI works and so might 
very well have manifested no matter the web server involved (is that a fair 
way to state it?).

Regarding the topic of this thread, I am still inclined to think that the 
lighter servers are a better choice than apache for django devs in general 
(i.e. people who are not sysadmins or apache experts) simply because fewer 
options and fewer unneeded features makes for an easier/better 
installation, easier learning curve, and the like. I also note that 
everyone who advocates for apache concedes that the default 
installation/configuration is really not appropriate for django apps. I 
intend to look more deeply into the suitability of the default 
configurations of nginx / lighttpd / cherokee as delivered by various linux 
distros. Finally, your point about mod_wsgi's superior configurability is a 
good one, and something I had not considered.

I especially appreciate and echo your points about the importance of 
knowing what your production system is doing and the key role of 
monitoring. I'm hoping the work you are doing with New Relic will go a long 
way towards solving those problems.


--Stuart

On Saturday, January 14, 2012 9:46:00 PM UTC-6, Graham Dumpleton wrote:
>
>
>
> On Jan 15, 9:40 am, Stuart Laughlin  wrote: 
> > Graham turned up on a thread in another forum where I was asking about 
> how 
> > to fix a strange error I had been seeing intermittently for months. He 
> > instructed me on how to put mod-wsgi into daemon mode, among other 
> things, 
> > and finally solved my problem. 
> > 
> > Here's a link to the thread, if you're interested. 
> > 
> > http://groups.google.com/group/satchmo-users/browse_thread/thread/6a6... 
>
>
> And the problem was actually due to a likely bug in psycopg2 and not 
> mod_wsgi. 
> You would have had the same problems with knowing what the cause was 
>
if you had hit this bug when using uWSGI in one of the ways that it 
> uses sub interpreters. 
>
> So, that the issue could arise isn't unique to mod_wsgi, but an issue 
> for any system using sub interpreters, which for WSGI hosting means 
> both mod_wsgi and uWSGI. 
>
> Ultimately, if an issue like this had occurred with gunicorn you would 
> have been equally stuffed. This is because the problem was in a C 
> extension module and problems in C extension modules like that are 
> hard to debug and invariably are fixed through thinking about the 
> problem and looking at source code and not through trying to run pdb 
> or even gdb on a running process. You are lucky when someone else 
> knows what the issue is already. 
>
> That all said, that mod_wsgi and uWSGI in some modes use sub 
> interpreters does cause more than it share of problems. This though 
> pretty well always derives from the fact that people writing C 
> extension modules take short cuts and don't even contemplate that the 
> extension module may be used in sub interpreters or even in multiple 
> sub interpreters at the same time. 
>
> There have even been examples where in the Python interpreter itself 
> they have broken things for sub interpreters. For example, fork() is 
> broken in Python 2.7.2 in sub interpreters. So, even the core 
> developers don't always get it quite right and they would generally 
> know more than most people who write C extension modules. 
>
> One of the benefits at least is that mod_wsgi is configurable enough 
> that one can configure around broken third party software when these 
> sorts of issues arise, other systems may not provide you as much 
> flexibility. The config you used was also not a 'perfect config' in 
> the general sense, but was one that just solved your specific problem. 
> What configuration is best is going to be specific to a particular 
> application and the requirements. 
>
> Now being part of the Apache eco system, mod_wsgi is a bit ham strung 
> by the default configs forced on people by PHP and Linux distros. So 
> the default isn't necessarily a good config for sites. Even so, it 
> still serves adequately for a lot people because the server generally 
> isn't the issue anyway. The only big problem is usually memory usage 
> because Apache/mod_wsgi for a Linux distro is embedded and prefork 
> MPM, which is bad for fat Python web applications. 
>
> As to ease of debugging, if you are debugging your code and need to 
> run pdb or other IDE debugger, although it can be done under mod_wsgi 
> with the right knowledge, you are much better off doing it in a proper 
> development system. Debugging is not the missing thing here. What most 
> people really need is decent monitoring of their production systems. 
> What use is the ability to debug code if you have no idea what 

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Mario Gudelj
I'd recommend Django first. Do the polls tutorial, first 7 chapters of the
book, some Django By Example tuts and then get into Pinax.

https://docs.djangoproject.com/en/dev/intro/tutorial01/

http://www.djangobook.com/en/2.0/

http://lightbird.net/dbe/

Cheers,

On 17 January 2012 05:12, Alec Taylor  wrote:

> Thanks
>
> (also, apologies for replying to these so late, I thought I was subscribed
> but I was only a member... n00b mistake, well I'm getting them as they
> arrive now)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/rmwxQRV2v50J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pseudo one-to-one

2012-01-16 Thread Mike Dewhirst

On 17/01/2012 4:13am, Jeff Heard wrote:

You might modify the manager to store historical entries in a
different table with the same structure.


I once built a work invoicing system like that where the work records 
got transferred from work_in_progress to work_invoiced as part of the 
invoicing process. It succeeded nicely because it was genuinely 
different information in different tables.


This problem isn't quite the same and I'm reluctant to keep the same 
information in two places. There has to be a better way than multiple 
tables.


Thanks Jeff

Mike





On Jan 16, 2012, at 2:18 AM, Mike Dewhirst
wrote:


On 16/01/2012 5:19pm, Bill Beal wrote:

Why not have a child model that differs from the one-to-one child
model in that the parent key is now a foreign key to the parent?
When another child needs to replace the current one in the
one-to-one relationship, move the child to the second table where
there is a many-to-one relationship to the parent, then modify
the one-to-one child record.  If necessary, duplicate the current
one-to-one record in the many-to-one table.  Does this make
sense?


I understand what you mean but it feels a bit yukky. Thinking about
it some more maybe I need a 'hidden' field which gets updated on
saving based on the existence of a more modern child.

Dunno.

Thanks

Mike




Bill Beal

On Mon, Jan 16, 2012 at 12:55 AM, Mike
Dewhirst>
wrote:

I need a one-to-many to behave like a one-to-one.

The parent instance of my model can only ever have one current
child instance of another model. Multiple child instances have to
exist and be kept for the historical record.

The main benefit of one-to-one relationships is that they can be
mapped together (in the Admin) as an extension of the parent.

In a view I suppose I can use a manager to filter the children
into a pseudo-one-to-one thingy but how do I do this in the
Admin?

Maybe sort them into date order and only show one? Is there a
better way?

Thanks for any help

Mike

-- You received this message because you are subscribed to the
Google Groups "Django users" group. To post to this group, send
email to django-users@googlegroups.com
. To unsubscribe from this
group, send email to django-users+unsubscribe@__googlegroups.com
. For more
options, visit this group at
http://groups.google.com/__group/django-users?hl=en
.


-- You received this message because you are subscribed to the
Google Groups "Django users" group. To post to this group, send
email to django-users@googlegroups.com. To unsubscribe from this
group, send email to django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.


-- You received this message because you are subscribed to the
Google Groups "Django users" group. To post to this group, send
email to django-users@googlegroups.com. To unsubscribe from this
group, send email to django-users+unsubscr...@googlegroups.com. For
more options, visit this group at
http://groups.google.com/group/django-users?hl=en.





--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pseudo one-to-one

2012-01-16 Thread Mike Dewhirst

On 17/01/2012 4:05am, Bill Freeman wrote:

Two thoughts:

1.  Have both a one to one and a one to many onto the same children.
There's no reason that the current child can't be in both
relationships, or you could keep them disjoint by "moving" the old
current child to the collection when it id displaced by a new child.


I like this. Perhaps in the model there could be a 1:1 field with 
choices= ??? I guess I'll need to experiment.


My existing schema has 1:n between parent and children and the children 
have a 1:1 between themselves forming links in a chain as you suggest 
below.




2. Have a many to many on self in the child (set) or a one to one (or
just foreign key on self (list) so that the current child allows
access to the history children.

Or am I misunderstanding the problem.


Not at all. But I think I'm getting it. If your #1 thought doesn't work 
I'll try and filter out all children except for the current one and 
then, in the form for the only visible child, find a way to navigate 
forward to the not-yet-current one and backward to the immediate 
predecessor.


Thanks Bill

Mike




Bill

On 1/16/12, Mike Dewhirst  wrote:

On 16/01/2012 5:19pm, Bill Beal wrote:

Why not have a child model that differs from the one-to-one child model
in that the parent key is now a foreign key to the parent?  When another
child needs to replace the current one in the one-to-one relationship,
move the child to the second table where there is a many-to-one
relationship to the parent, then modify the one-to-one child record.  If
necessary, duplicate the current one-to-one record in the many-to-one
table.  Does this make sense?


I understand what you mean but it feels a bit yukky. Thinking about it
some more maybe I need a 'hidden' field which gets updated on saving
based on the existence of a more modern child.

Dunno.

Thanks

Mike




Bill Beal

On Mon, Jan 16, 2012 at 12:55 AM, Mike Dewhirst>  wrote:

 I need a one-to-many to behave like a one-to-one.

 The parent instance of my model can only ever have one current child
 instance of another model. Multiple child instances have to exist
 and be kept for the historical record.

 The main benefit of one-to-one relationships is that they can be
 mapped together (in the Admin) as an extension of the parent.

 In a view I suppose I can use a manager to filter the children into
 a pseudo-one-to-one thingy but how do I do this in the Admin?

 Maybe sort them into date order and only show one? Is there a better
 way?

 Thanks for any help

 Mike

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To post to this group, send email to django-users@googlegroups.com
 .
 To unsubscribe from this group, send email to
 django-users+unsubscribe@__googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/__group/django-users?hl=en
 .


--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.






--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Validators for fields in Proxy Model - possible without monkeypatching?

2012-01-16 Thread Matt Schinckel
You can probably use a form to do most of what you want, with the caveat 
that as long as your restrictions are more restrictive than any db 
constraints that auth.User puts in there are.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/yqvx-0MGSxsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Database connection closed after each request?

2012-01-16 Thread ydjango
Django-orm looks very useful. Any high DB traffic site using it in
production?
How mature is it?


On Jan 15, 12:06 pm, Daniel Gerzo  wrote:
> On 15.1.2012 3:36, ydjango wrote:
>
> > Any updates on MySQL connection pool for django. Has anyone
> > implemented it yet and willing to share?
> > Graham Dumpleton also raised it in G+ today.
>
> > On Nov 20 2011, 5:45 am, Jonathan  wrote:
> >> Does anyone know if this progressed anywhere since '09?
>
> You can use django-orm[1] for that.
>
> [1]https://github.com/niwibe/django-orm
>
> Kind regards
> Daniel Gerzo

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Alec Taylor
Thanks

(also, apologies for replying to these so late, I thought I was subscribed 
but I was only a member... n00b mistake, well I'm getting them as they 
arrive now)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/rmwxQRV2v50J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Video conference on django app

2012-01-16 Thread Alec Taylor
You could probably integrate something with BBB, or you could use this:

Talk to Experts: This is an extension of Video Office project, that
allows you to also search for experts based on a topic, see their
calendar, sign up to talk to them in their calendar, and video chat
with them in real-time. It uses Adobe Stratus for peer-to-peer media
streams, Google App Engine for back-end service, its Channel API for
asynchronous events, and its XMPP module for interacting with Google
chat. The can get notified on Google chat when a visitor wants to chat
with him. The application allows you to sign up as an expert on some
topic, and potentially monetize your time giving expert advice. The
source code is available in SVN under django-apps directory. Keywords:
video office, talk to experts, video call, adobe stratus, google app
engine, channel api, xmpp.
Link: http://code.google.com/p/flash-videoio/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Martin Tiršel
On Mon, 16 Jan 2012 16:41:43 +0100, Tom Evans   
wrote:


On Mon, Jan 16, 2012 at 3:34 PM, Martin Tiršel   
wrote:


No, you could just subtly re-order your statements:



Why I am doing everything the hard way? :)))

Thanks,
Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pseudo one-to-one

2012-01-16 Thread Jeff Heard
You might modify the manager to store historical entries in a different table 
with the same structure. 



On Jan 16, 2012, at 2:18 AM, Mike Dewhirst  wrote:

> On 16/01/2012 5:19pm, Bill Beal wrote:
>> Why not have a child model that differs from the one-to-one child model
>> in that the parent key is now a foreign key to the parent?  When another
>> child needs to replace the current one in the one-to-one relationship,
>> move the child to the second table where there is a many-to-one
>> relationship to the parent, then modify the one-to-one child record.  If
>> necessary, duplicate the current one-to-one record in the many-to-one
>> table.  Does this make sense?
> 
> I understand what you mean but it feels a bit yukky. Thinking about it some 
> more maybe I need a 'hidden' field which gets updated on saving based on the 
> existence of a more modern child.
> 
> Dunno.
> 
> Thanks
> 
> Mike
> 
> 
>> 
>> Bill Beal
>> 
>> On Mon, Jan 16, 2012 at 12:55 AM, Mike Dewhirst > > wrote:
>> 
>>I need a one-to-many to behave like a one-to-one.
>> 
>>The parent instance of my model can only ever have one current child
>>instance of another model. Multiple child instances have to exist
>>and be kept for the historical record.
>> 
>>The main benefit of one-to-one relationships is that they can be
>>mapped together (in the Admin) as an extension of the parent.
>> 
>>In a view I suppose I can use a manager to filter the children into
>>a pseudo-one-to-one thingy but how do I do this in the Admin?
>> 
>>Maybe sort them into date order and only show one? Is there a better
>>way?
>> 
>>Thanks for any help
>> 
>>Mike
>> 
>>--
>>You received this message because you are subscribed to the Google
>>Groups "Django users" group.
>>To post to this group, send email to django-users@googlegroups.com
>>.
>>To unsubscribe from this group, send email to
>>django-users+unsubscribe@__googlegroups.com
>>.
>>For more options, visit this group at
>>http://groups.google.com/__group/django-users?hl=en
>>.
>> 
>> 
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Customize "This field is required" message.

2012-01-16 Thread Chen Xu
Hi, everyone:
I created a django form, when I validate it,  the empty field that can not
be none shows error message "This field is required." Is there a way to
tell which filed is required instead of just saying "This field is
required." in general? Ex: Username is required.

Thanks


-- 
⚡ Chen Xu ⚡

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pseudo one-to-one

2012-01-16 Thread Bill Freeman
Two thoughts:

1.  Have both a one to one and a one to many onto the same children.
There's no reason that the current child can't be in both
relationships, or you could keep them disjoint by "moving" the old
current child to the collection when it id displaced by a new child.

2. Have a many to many on self in the child (set) or a one to one (or
just foreign key on self (list) so that the current child allows
access to the history children.

Or am I misunderstanding the problem.

Bill

On 1/16/12, Mike Dewhirst  wrote:
> On 16/01/2012 5:19pm, Bill Beal wrote:
>> Why not have a child model that differs from the one-to-one child model
>> in that the parent key is now a foreign key to the parent?  When another
>> child needs to replace the current one in the one-to-one relationship,
>> move the child to the second table where there is a many-to-one
>> relationship to the parent, then modify the one-to-one child record.  If
>> necessary, duplicate the current one-to-one record in the many-to-one
>> table.  Does this make sense?
>
> I understand what you mean but it feels a bit yukky. Thinking about it
> some more maybe I need a 'hidden' field which gets updated on saving
> based on the existence of a more modern child.
>
> Dunno.
>
> Thanks
>
> Mike
>
>
>>
>> Bill Beal
>>
>> On Mon, Jan 16, 2012 at 12:55 AM, Mike Dewhirst > > wrote:
>>
>> I need a one-to-many to behave like a one-to-one.
>>
>> The parent instance of my model can only ever have one current child
>> instance of another model. Multiple child instances have to exist
>> and be kept for the historical record.
>>
>> The main benefit of one-to-one relationships is that they can be
>> mapped together (in the Admin) as an extension of the parent.
>>
>> In a view I suppose I can use a manager to filter the children into
>> a pseudo-one-to-one thingy but how do I do this in the Admin?
>>
>> Maybe sort them into date order and only show one? Is there a better
>> way?
>>
>> Thanks for any help
>>
>> Mike
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> django-users+unsubscribe@__googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/__group/django-users?hl=en
>> .
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Selecting an E-commerce Application

2012-01-16 Thread Matthias Kestenholz
On Mon, Jan 16, 2012 at 17:31, Lenz Hirsch  wrote:
> Servus,
>
> i would give plata a try because its from the creators of feincms wich
> is IMO the best django based CMS. As feincms is more a "cms framework"
> which ships with a very good "default implementation" i assume the
> same is true for plata. Plata is very new so maybe you are missing a
> lot of features. A "out of the box feature rich ready to go" solution
> is Kai´s LTFS. Maybe Kai can give us some insides if LTFS´s models
> (not product properties - that sure can be done very easily) are
> extendable in an easy way (no forking and under 10 lines of code) too.
>
> Depending on the requirements i would choose one of those two.
>

Thanks :-)

There is no stable release of Plata yet, but it is in use in several
shops right now, a few of them have been built by Feinheit, but I know
of two other companies which use it for their webshops.

The core hasn't changed much in months, and the basic ideas haven't
changed for even longer. I'd say even though there is no version 1.0
yet it is ready to build your shops on.

The current development version (https://github.com/matthiask/plata
branch master) comes without a product model -- the idea is that you
write your own because only you know which fields and which behavior
is needed. Models for contact information, discounts / vouchers,
carts, orders and payment tracking are included as are payment modules
for paypal, postfinance and cash-on-delivery. The checkout process is
fully managed by Plata, multi-currency shops are supported etc.

All of this means that yes, Plata isn't the best option if you want a
solution which works fine out of the box. If you anticipate you'll
have to customize the shop in several ways, choosing a lightweight
option with a small LOC count which solves the hard problems in a
reusable way (order tracking, payments, total calculation with taxes
and discounts), Plata might be the right choice for you.

Best regards
Matthias

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:47 PM, Krondaj  wrote:
> Well that didn't come out how I typed it, which helped me solve the
> problem!!  and now this should also be formatted properly??
>

Yes, that came through properly! A mixture of tabs and spaces would
mess things up.

> p.s.  should it be four spaces per indent (instead of tabs) for python
> in general, or is this a Django thing?
>

It's a python thing - 4 space indents, all spaces, no tabs. There is a
PEP (Python Enhancement Proposal) called PEP 8 which extols the basis
of python style:

http://www.python.org/dev/peps/pep-0008/

They are just guidelines, but good to follow.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Andre Terra
On Mon, Jan 16, 2012 at 2:43 PM, Python_Junkie <
software.buy.des...@gmail.com> wrote:

> I guess I am digging in a lot deeper into this topic that I had
> intended, but your statement above
> about each developer compiling their own source code seems to go
> against the DRY
> principle.
>


The DRY principle applies to writing code, not executing it. Besides, if
different people aren't running the same command once, no one's repeating
themselves.

There are numerous advantages to installing everything manually. When
you're dealing with multiple projects on the same machine, it's the only
way to keep things sane, especially with the advent of virtualenv[1].
Binary python packages will give you an option of which Python install you
are going to use that library for, at the most. They are not made to work
with virtualenv, which I'm willing to bet is running in at least 2/3 of the
stacks running Django in the wild.

If I haven't made myself clear, I'll try again: virtual environments are a
must and they don't mix well with binary packages. Even on windows, you
should 'python setup.py install' from a virtualenv or, even better, use
pip[2].


Cheers,
AT

[1] http://pypi.python.org/pypi/virtualenv
[2] http://pypi.python.org/pypi/pip

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Javier Guerra Giraldez
On Mon, Jan 16, 2012 at 11:43 AM, Python_Junkie
 wrote:
> I have no issue with running a script that will compile the source
> code, if that was all there was to the process,
>  but if someone has tweaked the source code
> and makes it work on a particular version of mac OS or ubuntu with a
> particular version of python, why do I want
> to go through the same exercise and then recompile again.  It seems it
> is not simply a matter of compiling the source code.


yes it is, as long as you follow sane procedures and/or rely on your
OS/distribution packagers

if you're curious, pick any popular enough project and try to see what
OSs use the top contributors.  it's quite likely that among the top 10
you'll find at least one each for Linux, Mac and Windows.  they don't
have to 'tweak' the code, any specific adaptation that was needed gets
included in the main tree.

as a related anecdote, i had to use pyodbc for a project.  in my
development machine, i used ubuntu, so i first tried apt-get and got
it cleanly.  later, i had to setup the staging server, so i created a
virtualenv directory and proceeded to install all needed packages,
this time with PIP instead of apt-get.  at first pyodbc complained
about missing libraries, so i had to dig deeper in the manual
installation procedure.  but once i had all libraries that apt-get had
setup for me, PIP completed without a hitch.

when i moved to the production server, the pip-freeze log was almost
the only thing needed to rebuild the virtualenv directory on a
different linux build (still debian-based but with heavy
modifications)

tl;dr: compiling is confusing for non-developers; but a central part
of OSS.  consider it a one-time payment if you wish.

-- 
Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Krondaj
Hi Tom,

Yeah, just realised.  When i wrote the code, I think it was telling me
weird things about the indentation.
In my editor it looked correct like the message I just wrote above...
But obviously when it when through the interpreter it saw what i wrote
even earlier, thus getting itself a bit angry with me.

I think I have solved it now, the indentation now works (i told it to
use spaces instead of tabs and spaces, that it was previously set to
for some reason!?!)

I hope what i have said makes sense?

Chris

On Jan 16, 4:41 pm, Tom Evans  wrote:
> On Mon, Jan 16, 2012 at 4:31 PM, Krondaj  wrote:
> > Hi, This is what I have written, which I believe is the correct
> > indentation:
> > --From Geany editor-
> > [ ... ]
> > does anyone have any other suggestions?
>
> > When I try to do what i believe is the correct indentation
>
> Chris:
>
> You need to fix your mail client so that what comes through is not an
> unintelligible mangle of code. It is hard to see where your problems
> with indentation are when the indentation in your emails is so badly
> munged.
>
> Alternatively, paste your code somewhere like pastebin.com
>
> Cheers
>
> Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie
Thank you for your response.

Your answer makes sense.
If the source is set up as a package then  in theory it can be
installed on any platform
with the command setup.py install.

Thanks again.
I will try again to set finish the set up on my Mac.

Bob

On Jan 16, 11:38 am, Tom Evans  wrote:
> On Mon, Jan 16, 2012 at 4:32 PM, Python_Junkie
>
>  wrote:
> > Thanks for the procedure.
>
> > But when I look at the list of packages for pyodbc displayed, they are
> > tailored to a specific version of python /chipset.
>
> >http://code.google.com/p/pyodbc/downloads/list
>
> Note, these are not ports, but compiled packages.
>
>
>
> > I have a couple of questions.
>
> > 1. Where do I obtain the source code for pyodbc, above,
>
> So, eg from that list:
>
> http://code.google.com/p/pyodbc/downloads/detail?name=pyodbc-2.1.11.z...
>
> > 2. How do I tailor it for Lion OS and python 27 for example
>
> fetch the file above, unpack it
> open a terminal and cd to that location
> run ''sudo python setup.py install''
>
> > 3. How much testing do I need to do in order to make sure that it
> > works
>
> None/as much as you like. You aren't getting any guarantees with this
> code, if there are issues related to your specific choice of platform
> that other people haven't encountered, they will be unlikely to be
> fixed (self evidently).
>
>
>
> > The last item leads me to another question, if I see a port of this
> > package from the url above
> > How confident can I be that it has been tested thoroughly
>
> See above.
>
> Cheers
>
> Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Krondaj
Well that didn't come out how I typed it, which helped me solve the
problem!!  and now this should also be formatted properly??

Hi, This is what I have written:

--From Geany editor-


from django.db import models

# Create your models here.
import datetime

class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __unicode__(self):
return self.question
def was_published_today(self):
return self.pub_date.date() == datetime.date.today()

class Choice(models.Model):
poll = models.ForeignKey(Poll)
choice = models.CharField(max_length=200)
votes = models.IntegerField()
def __unicode__(self):
return self.choice

-


it now works... i figured it out because my previous message did not
format properly.  Geany was adding tabs and spaces for indentation.

If you set it to spaces (width 4) it works!!

So my initial code was right, it's just the indentation though it
looked right was in tabs instead of spaces!?!

Thanks!!

Hope this helps anyone else having problems!

p.s.  should it be four spaces per indent (instead of tabs) for python
in general, or is this a Django thing?

K



On Jan 16, 4:31 pm, Krondaj  wrote:
> Hi, This is what I have written, which I believe is the correct
> indentation:
> --From Geany editor-
>
> from django.db import models
> # Create your models here.import datetime
> class Poll(models.Model):    question =
> models.CharField(max_length=200)    pub_date =
> models.DateTimeField('date published')    def
> __unicode__(self):        return self.question    def
> was_published_today(self):        return self.pub_date.date() ==
> datetime.date.today()                     class Choice(models.Model):    poll 
> =
> models.ForeignKey(Poll)    choice = models.CharField(max_length=200)
>   votes = models.IntegerField()    def __unicode__(self):
> return self.choice
> --end of script---
> The django shell throws a wobbly and says this:
> chrissmith@ubuntu:~/Dcode/mysite$ python manage.py shellTraceback
> (most recent call last):  File "manage.py", line 14, in 
> execute_manager(settings)  File "/usr/local/lib/python2.7/dist-
> packages/django/core/management/__init__.py", line 438, in
> execute_manager    utility.execute()  File "/usr/local/lib/python2.7/
> dist-packages/django/core/management/__init__.py", line 379, in
> execute    self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/usr/local/lib/python2.7/dist-packages/django/core/management/
> base.py", line 191, in run_from_argv    self.execute(*args,
> **options.__dict__)  File "/usr/local/lib/python2.7/dist-packages/
> django/core/management/base.py", line 220, in execute    output =
> self.handle(*args, **options)  File "/usr/local/lib/python2.7/dist-
> packages/django/core/management/base.py", line 351, in handle
> return self.handle_noargs(**options)  File "/usr/local/lib/python2.7/
> dist-packages/django/core/management/commands/shell.py", line 47, in
> handle_noargs    loaded_models = get_models()  File "/usr/local/lib/
> python2.7/dist-packages/django/db/models/loading.py", line 167, in
> get_models    self._populate()  File "/usr/local/lib/python2.7/dist-
> packages/django/db/models/loading.py", line 61, in _populate
> self.load_app(app_name, True)  File "/usr/local/lib/python2.7/dist-
> packages/django/db/models/loading.py", line 78, in load_app    models
> = import_module('.models', app_name)  File "/usr/local/lib/python2.7/
> dist-packages/django/utils/importlib.py", line 35, in import_module
> __import__(name)  File "/home/chrissmith/Dcode/mysite/polls/
> models.py", line 11    def was_published_today(self):
>                                           ^If I write this however,
> which i don't think is the right
> indentation:--- from Geany-
>
> from django.db import models
> # Create your models here.import datetime
> class Poll(models.Model):    question =
> models.CharField(max_length=200)    pub_date =
> models.DateTimeField('date published')    def __unicode__(self):
> return self.question
>     def was_published_today(self):
>         return self.pub_date.date() == datetime.date.today()                  
>     class
> Choice(models.Model):    poll = models.ForeignKey(Poll)    choice =
> models.CharField(max_length=200)    votes = models.IntegerField()
> def __unicode__(self):
>     return self.choice
>
> -end scrtpt---
> It appears to work:
>
> chrissmith@ubuntu:~/Dcode/mysite$ python manage.py shellPython 2.7.2+
> (default, Oct  4 2011, 20:06:09) [GCC 4.6.1] on linux2Type "help",
> "copyright", "credits" or "license" for more information.
> (InteractiveConsole)>>> from polls.models import Poll, Choice>>>
> Poll.objects.all()[, ,  what's up now?>]>>> p = 

Video conference on django app

2012-01-16 Thread Isaac XXX

Hi folks,

I know that it's not mainly django topic, but I know here's is a well 
documented community through several areas.


I need to set a video conference (1 on 1) feature for a project in 
django. Can you provide me some hints about open-source (or 
free-royalty) apps, or frameworks, to get a simple videochat running in 
my nginx-apache-django environment?


I don't care if I need to install aditional server (like red5), but will 
be helpful if you provide some tutorial about how to deploy it along app.


Thanks a lot!

Isaac

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie

>yes, this is wrong.  most development is done in non-windows OS.
>what you're seeing is that since OSS is about sharing source,
On Jan 16, 11:31 am, Javier Guerra Giraldez 
wrote:
> On Mon, Jan 16, 2012 at 11:22 AM, Python_Junkie
>

I guess I am digging in a lot deeper into this topic that I had
intended, but your statement above
about each developer compiling their own source code seems to go
against the DRY
principle.

I have no issue with running a script that will compile the source
code, if that was all there was to the process,
 but if someone has tweaked the source code
and makes it work on a particular version of mac OS or ubuntu with a
particular version of python, why do I want
to go through the same exercise and then recompile again.  It seems it
is not simply a matter of compiling the source code.

Thanks for your feedback,






>  wrote:
> > Am I wrong in the assumption that there are less python packages
> > available for non windows OS
>
> yes, this is wrong.  most development is done in non-windows OS.
>
> what you're seeing is that since OSS is about sharing source, the main
> form of distribution is source.  but some projects recognize that
> windows doesn't make it easy to compile, so they (or some
> side-project) keep binaries to help those users.
>
> it's a pity that MacOS is going the same route (i think 10.4 still
> included XCode in the optional installers DVD), so there's some demand
> for binary distribution for Mac too.
>
> --
> Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:31 PM, Krondaj  wrote:
> Hi, This is what I have written, which I believe is the correct
> indentation:
> --From Geany editor-
> [ ... ]
> does anyone have any other suggestions?
>
> When I try to do what i believe is the correct indentation
>

Chris:

You need to fix your mail client so that what comes through is not an
unintelligible mangle of code. It is hard to see where your problems
with indentation are when the indentation in your emails is so badly
munged.

Alternatively, paste your code somewhere like pastebin.com

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread j_syk
On Jan 16, 10:31 am, Javier Guerra Giraldez 
wrote:
> it's a pity that MacOS is going the same route (i think 10.4 still
> included XCode in the optional installers DVD), so there's some demand
> for binary distribution for Mac too.

mac osx 10.7 (Lion) includes Xcode for free from the app store. AFAIK
this is the first time it's been available free for a while (I guess
10.4 as you say). So Python_Junkie, it may be cheaper to upgrade to
10.7 than to buy xcode for your current version. last i heard xcode
was kinda expensive and i think the Lion upgrade is just $30. Unless
maybe now they rolled back the price of xcode for all osx versions.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:32 PM, Python_Junkie
 wrote:
> Thanks for the procedure.
>
> But when I look at the list of packages for pyodbc displayed, they are
> tailored to a specific version of python /chipset.
>
> http://code.google.com/p/pyodbc/downloads/list

Note, these are not ports, but compiled packages.

>
> I have a couple of questions.
>
> 1. Where do I obtain the source code for pyodbc, above,

So, eg from that list:

http://code.google.com/p/pyodbc/downloads/detail?name=pyodbc-2.1.11.zip=2=

> 2. How do I tailor it for Lion OS and python 27 for example

fetch the file above, unpack it
open a terminal and cd to that location
run ''sudo python setup.py install''

> 3. How much testing do I need to do in order to make sure that it
> works

None/as much as you like. You aren't getting any guarantees with this
code, if there are issues related to your specific choice of platform
that other people haven't encountered, they will be unlikely to be
fixed (self evidently).

>
> The last item leads me to another question, if I see a port of this
> package from the url above
> How confident can I be that it has been tested thoroughly
>

See above.


Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:22 PM, Python_Junkie
 wrote:
> Am I wrong in the assumption that there are less python packages
> available for non windows OS
>

I have no explicit 'proof' of this, but I am fairly sure that the
opposite is true - there will be more packages available for non
windows OS. The majority of Python work ISTM happens on *NIX variants
like Linux, OS X and BSD, so it would be logical to assume that the
majority of packages work on non windows OS.

Having said that, a lot of python packages are 'pure python', and so
only rely on a conforming python interpreter. All of those packages
will work the same on windows, Linux, BeOS...

Aaah, I see where you are getting this from - when looking at a
project's available downloads, like py-odbc, there will be masses of
different compiled variants for windows. This is because windows users
often fail to have an appropriate development environment in which to
compile the necessary parts, which all other OS will have readily
available, and hence most windows python users are looking for a
binary package compiled for their version of python.


Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie
Thanks for the procedure.

But when I look at the list of packages for pyodbc displayed, they are
tailored to a specific version of python /chipset.

http://code.google.com/p/pyodbc/downloads/list

I have a couple of questions.

1. Where do I obtain the source code for pyodbc, above,
2. How do I tailor it for Lion OS and python 27 for example
3. How much testing do I need to do in order to make sure that it
works

The last item leads me to another question, if I see a port of this
package from the url above
How confident can I be that it has been tested thoroughly

Thanks

Bob

On Jan 16, 11:13 am, Brett Epps  wrote:
> You need two things:
>
> - Xcode (available in the Mac App Store) - this will give you the tools
> needed to build software from source
> - Homebrew (http://mxcl.github.com/homebrew/) - this is similar to fink or
> MacPorts, but IMHO much better
>
> Then do something like:
>
> > sudo easy_install pip
> > sudo pip install virtualenv
> > virtualenv /path/to/project/env
> > /path/to/project/env/bin/activate
> > pip install pyodbc mysqldb psycopg2
>
> And possibly:
>
> > brew install mysql postgresql
>
> All done!
>
> Brett
>
> On 1/15/12 11:27 PM, "Python_Junkie"  wrote:
>
>
>
>
>
>
>
> >I have been developing python/django programs on a windows machine at
> >work for several years
> >and have been very satisfied with the functionality available from the
> >available modules in windows.
>
> >I thought I would expand my universe and set up the development
> >environment on a mac this weekend at home.
>
> >I found some nice IDE's to use for developing on for the mac
>
> >and then I found this web site that seemed to have a thorough approach
> >to setting up the django environment
>
> >http://hackercodex.com/2011/08/30/python-install-django-on-mac-osx-li...
> >.7/
>
> >I was pretty satisfied with the core result.
>
> >I then wanted to add some extra modules that I have employed routinely
> >at work and ran into some difficulties.
>
> >I wanted to use pyodbc and mysql and postgre modules to implement
> >database functionality, as I do at my work.
>
> >I was either unable to find the mac versions, or the versions
> >available were source code that and not self installers that would
> >need to be compiled,
> >with the possibility, since they were not specifically made for Lion
> >that after compiling they would function correctly.
>
> >Just looking for feedback /input.  I would really like to use the mac
> >for development, because I like so many other web utilities on this
> >machine.
>
> >The solution I ended up with was using the mac  as my base machine in
> >order to use all of the utilities and simultaneously
> > logging in remotely to the windows machine for django development.
>
> >I don't want to start a border war, but does anyone have any
> >suggestions on setting up the mac development environment.
>
> >Just seemed like when I was looking for comparable modules, they were
> >not always readily available.
>
> >Thanks
>
> >--
> >You received this message because you are subscribed to the Google Groups
> >"Django users" group.
> >To post to this group, send email to django-users@googlegroups.com.
> >To unsubscribe from this group, send email to
> >django-users+unsubscr...@googlegroups.com.
> >For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Javier Guerra Giraldez
On Mon, Jan 16, 2012 at 11:22 AM, Python_Junkie
 wrote:
> Am I wrong in the assumption that there are less python packages
> available for non windows OS

yes, this is wrong.  most development is done in non-windows OS.

what you're seeing is that since OSS is about sharing source, the main
form of distribution is source.  but some projects recognize that
windows doesn't make it easy to compile, so they (or some
side-project) keep binaries to help those users.

it's a pity that MacOS is going the same route (i think 10.4 still
included XCode in the optional installers DVD), so there's some demand
for binary distribution for Mac too.

-- 
Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Selecting an E-commerce Application

2012-01-16 Thread Lenz Hirsch
Servus,

i would give plata a try because its from the creators of feincms wich
is IMO the best django based CMS. As feincms is more a "cms framework"
which ships with a very good "default implementation" i assume the
same is true for plata. Plata is very new so maybe you are missing a
lot of features. A "out of the box feature rich ready to go" solution
is Kai´s LTFS. Maybe Kai can give us some insides if LTFS´s models
(not product properties - that sure can be done very easily) are
extendable in an easy way (no forking and under 10 lines of code) too.

Depending on the requirements i would choose one of those two.

Cheers,

Lenz

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Krondaj
Hi, This is what I have written, which I believe is the correct
indentation:
--From Geany editor-

from django.db import models
# Create your models here.import datetime
class Poll(models.Model):    question =
models.CharField(max_length=200)    pub_date =
models.DateTimeField('date published')    def
__unicode__(self):return self.questiondef
was_published_today(self):return self.pub_date.date() ==
datetime.date.today() class Choice(models.Model):    poll =
models.ForeignKey(Poll)    choice = models.CharField(max_length=200) 
  votes = models.IntegerField()    def __unicode__(self):
return self.choice
--end of script---
The django shell throws a wobbly and says this:
chrissmith@ubuntu:~/Dcode/mysite$ python manage.py shellTraceback
(most recent call last):  File "manage.py", line 14, in    
execute_manager(settings)  File "/usr/local/lib/python2.7/dist-
packages/django/core/management/__init__.py", line 438, in
execute_manager    utility.execute()  File "/usr/local/lib/python2.7/
dist-packages/django/core/management/__init__.py", line 379, in
execute    self.fetch_command(subcommand).run_from_argv(self.argv) 
File "/usr/local/lib/python2.7/dist-packages/django/core/management/
base.py", line 191, in run_from_argv    self.execute(*args,
**options.__dict__)  File "/usr/local/lib/python2.7/dist-packages/
django/core/management/base.py", line 220, in execute    output =
self.handle(*args, **options)  File "/usr/local/lib/python2.7/dist-
packages/django/core/management/base.py", line 351, in handle   
return self.handle_noargs(**options)  File "/usr/local/lib/python2.7/
dist-packages/django/core/management/commands/shell.py", line 47, in
handle_noargs    loaded_models = get_models()  File "/usr/local/lib/
python2.7/dist-packages/django/db/models/loading.py", line 167, in
get_models    self._populate()  File "/usr/local/lib/python2.7/dist-
packages/django/db/models/loading.py", line 61, in _populate   
self.load_app(app_name, True)  File "/usr/local/lib/python2.7/dist-
packages/django/db/models/loading.py", line 78, in load_app    models
= import_module('.models', app_name)  File "/usr/local/lib/python2.7/
dist-packages/django/utils/importlib.py", line 35, in import_module   
__import__(name)  File "/home/chrissmith/Dcode/mysite/polls/
models.py", line 11    def was_published_today(self):     
  ^If I write this however,
which i don't think is the right
indentation:--- from Geany-

from django.db import models
# Create your models here.import datetime
class Poll(models.Model):    question =
models.CharField(max_length=200)    pub_date =
models.DateTimeField('date published')    def __unicode__(self):
return self.question
def was_published_today(self):
return self.pub_date.date() == datetime.date.today()
  class
Choice(models.Model):    poll = models.ForeignKey(Poll)    choice =
models.CharField(max_length=200)    votes = models.IntegerField()   
def __unicode__(self):
return self.choice

-end scrtpt---
It appears to work:

chrissmith@ubuntu:~/Dcode/mysite$ python manage.py shellPython 2.7.2+
(default, Oct  4 2011, 20:06:09) [GCC 4.6.1] on linux2Type "help",
"copyright", "credits" or "license" for more information.
(InteractiveConsole)>>> from polls.models import Poll, Choice>>>
Poll.objects.all()[, , ]>>> p = Poll.objects.get(pk=1)
Until here!
>>> p.was_published_today()Traceback (most recent call last):  File 
>>> "", line 1, in AttributeError: 'Poll' object has no 
>>> attribute 'was_published_today'>>>
I have tried variations in indentation - I can get the unicode method
to work, but I cannot get the custom method in the first tutorial to
work (page 19 of 1.3.1 documentation.
I have hit a brick-wall and I do not know what I am doing wrong!
does anyone have any other suggestions?

When I try to do what i believe is the correct indentation


Chris.

On Jan 10, 7:31 am, yati sagade  wrote:
> just like __unicode__, was_published_today is also a method/function - so
> do this:
>
> def __unicode__(self):
>     return self.question
>
> def was_published_today(self):
>     return self.pub_date.date() == datetime.date.today()
>
>
>
>
>
>
>
> On Tue, Jan 10, 2012 at 2:11 AM, Nasir Rasul  wrote:
> > check your indentation.
> >    def __unicode__(self):
> >                return self.question
> >                def was_published_today(self):
> >                        return self.pub_date.date() == datetime.date.today()
> > published_today should be at the same level as __unicode__.
>
> > - Nasir
>
> > On Mon, Jan 9, 2012 at 11:02 AM, Krondaj  wrote:
>
> >> On page 19 of the Django documentation release 1.3.1 It tells you to
> >> add
>
> >> import datetime
> >> #...
> >> class Poll(models.Model):
> >>   def 

Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie
I appreciate your response.
I still would like to move my development over to linux based OS, as
you said many of the deployments are on linux web servers.

You helped me clarify what I would require in order to make any
project successful.
I would need the capability of porting any existing open source module
to the OS /python/django/version that I would be implementing.

For example the sql/odbc module pyodbc exists as shown on this link
http://code.google.com/p/pyodbc/downloads/list

Can someone provide some guidance as to how I would port the source
code to a package that I could ultimately install with the simple
command of setup.py install

for any development environment that I would require.

***

I realize that there is a procedure for packaging up the source code,
but then I have to test it and make any modifications for the
environment that I am porting it to.

Which variables are the ones that I have to be most concerned about
python version
django version
OS version

In the end I have to decide whether it is worth it to move to "a less
supported" OS, if I have to port multiple packages/modules

Am I wrong in the assumption that there are less python packages
available for non windows OS

Thanks


Bob




On Jan 16, 9:39 am, j_syk  wrote:
> This isn't really an answer to your question, but here's my 2 cents.
> I'm in the reverse situation as you, Macs at work and Windows at home.
> I wasn't too interested in figuring out Django development on either
> after quickly disliking macports and never having the desire to
> develop on windows without a specific IDE. Although at the time I
> tried both, I was probably just too overwhelmed with everything I need
> to try to learn.
>
> I have always used a linux environment (ubuntu), mostly though ssh on
> headless clients. For a while I was running ubuntu desktop and server
> editions though virtual machines on both my work mac and windows
> computer at home and using osx and windows as my workspace. But now I
> have dedicated Linux servers at work and home to develop on, and a
> linode slice for public websites. I guess I've gotten used to a
> terminal based approach and using FTP as necessary.
>
> I don't know what your plans are in the future, but a lot of web
> hosting servers are Linux, so it may be beneficial to have experience
> and/or be able to directly port over projects.
>
> I know you asked for A or B and I said C, but maybe think about it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread Brett Epps
You need two things:

- Xcode (available in the Mac App Store) - this will give you the tools
needed to build software from source
- Homebrew (http://mxcl.github.com/homebrew/) - this is similar to fink or
MacPorts, but IMHO much better

Then do something like:

> sudo easy_install pip
> sudo pip install virtualenv
> virtualenv /path/to/project/env
> /path/to/project/env/bin/activate
> pip install pyodbc mysqldb psycopg2

And possibly:

> brew install mysql postgresql

All done!


Brett


On 1/15/12 11:27 PM, "Python_Junkie"  wrote:

>I have been developing python/django programs on a windows machine at
>work for several years
>and have been very satisfied with the functionality available from the
>available modules in windows.
>
>I thought I would expand my universe and set up the development
>environment on a mac this weekend at home.
>
>I found some nice IDE's to use for developing on for the mac
>
>and then I found this web site that seemed to have a thorough approach
>to setting up the django environment
>
>http://hackercodex.com/2011/08/30/python-install-django-on-mac-osx-lion-10
>.7/
>
>I was pretty satisfied with the core result.
>
>I then wanted to add some extra modules that I have employed routinely
>at work and ran into some difficulties.
>
>I wanted to use pyodbc and mysql and postgre modules to implement
>database functionality, as I do at my work.
>
>I was either unable to find the mac versions, or the versions
>available were source code that and not self installers that would
>need to be compiled,
>with the possibility, since they were not specifically made for Lion
>that after compiling they would function correctly.
>
>
>Just looking for feedback /input.  I would really like to use the mac
>for development, because I like so many other web utilities on this
>machine.
>
>The solution I ended up with was using the mac  as my base machine in
>order to use all of the utilities and simultaneously
> logging in remotely to the windows machine for django development.
>
>I don't want to start a border war, but does anyone have any
>suggestions on setting up the mac development environment.
>
>Just seemed like when I was looking for comparable modules, they were
>not always readily available.
>
>Thanks
>
>-- 
>You received this message because you are subscribed to the Google Groups
>"Django users" group.
>To post to this group, send email to django-users@googlegroups.com.
>To unsubscribe from this group, send email to
>django-users+unsubscr...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 3:34 PM, Martin Tiršel  wrote:
> Hello,
>
> This is the view (minimal version without POST processing block):
>
> @transaction.commit_manually()
> def create_free(request):
>    context = {};
>    context['categories'] = Category.objects.all()
>    transaction.commit()
>    return render_to_response(
>        'advert/create_free.html',
>        context,
>        RequestContext(request)
>    )
>
> But I still get "Transaction managed block ended with pending
> COMMIT/ROLLBACK" exception. This is caused by the Category model load (due
> to lazy QuerySet that is evaluated in template processing?). If yes, I will
> have to render_to_string and then commit, right?
>

No, you could just subtly re-order your statements:


@transaction.commit_manually()
def create_free(request):
   context = {};
   context['categories'] = Category.objects.all()
   rsp = render_to_response(
       'advert/create_free.html',
       context,
       RequestContext(request)
   )
   transaction.commit()
   return rsp

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: document admin interface

2012-01-16 Thread Sébastien Billion
Hi,

Why don't use help_text argument in your models or formAdmin?

2012/1/16, Jaroslav Dobrek :
> Hello,
>
> how can I document the admin interface. I do not mean the stuff that
> can be achieved with the admin documentation generator. I would like
> to add documentation to those pages that admins see when they create,
> delete or modify an object. I.e. I want to add explanations about the
> object being manipulated.
>
> Jaroslav
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Martin Tiršel

Hello,

This is the view (minimal version without POST processing block):

@transaction.commit_manually()
def create_free(request):
context = {};
context['categories'] = Category.objects.all()
transaction.commit()
return render_to_response(
'advert/create_free.html',
context,
RequestContext(request)
)

But I still get "Transaction managed block ended with pending  
COMMIT/ROLLBACK" exception. This is caused by the Category model load (due  
to lazy QuerySet that is evaluated in template processing?). If yes, I  
will have to render_to_string and then commit, right?


Thanks,
Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



document admin interface

2012-01-16 Thread Jaroslav Dobrek
Hello,

how can I document the admin interface. I do not mean the stuff that
can be achieved with the admin documentation generator. I would like
to add documentation to those pages that admins see when they create,
delete or modify an object. I.e. I want to add explanations about the
object being manipulated.

Jaroslav

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Alternatives to celery

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 3:05 PM, bryan hunt  wrote:
> Gearman only supports a MySql backend for persistent queues - it
> doesn't support a real message queue like Rabbitmq.
>
>
>
> On Jan 16, 10:33 am, Cherian Thomas  wrote:
>> Second Arun’s suggestion on gearman. Pretty solid too.

Gearman also would require a separate process for each project that
you have operating in it.

If you think about it, that is a bit of a non-requirement, since every
distributed task queue will require a daemon process to attach to it
to receive work, and if they are different projects, they will clearly
require separate processes.

With celery/rabbitmq, you can run as many django projects, with as
many celeryd instances per project, as you want. You don't need a 1:1
mapping between projects and celeryd instances, we run many celeryd
instances for a single project (across many boxes). Each project
should use a separate vhost on rabbitmq, which you configure with
settings.BROKER_VHOST.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Alternatives to celery

2012-01-16 Thread Cherian Thomas
Gearman supports sqlite. Gearman is for jobs, not just data.

Regards,
Cherian



On Mon, Jan 16, 2012 at 8:35 PM, bryan hunt wrote:

> Gearman only supports a MySql backend for persistent queues - it
> doesn't support a real message queue like Rabbitmq.
>
>
>
> On Jan 16, 10:33 am, Cherian Thomas  wrote:
> > Second Arun’s suggestion on gearman. Pretty solid too.
> >
> > Regards,
> > Cherian
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Jan 16, 2012 at 3:52 PM, Alec Taylor 
> wrote:
> > > Looking for an alternative to celery? — Have you considered carrot?
> >
> > > :P
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-users@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Alternatives to celery

2012-01-16 Thread bryan hunt
Gearman only supports a MySql backend for persistent queues - it
doesn't support a real message queue like Rabbitmq.



On Jan 16, 10:33 am, Cherian Thomas  wrote:
> Second Arun’s suggestion on gearman. Pretty solid too.
>
> Regards,
> Cherian
>
>
>
>
>
>
>
> On Mon, Jan 16, 2012 at 3:52 PM, Alec Taylor  wrote:
> > Looking for an alternative to celery? — Have you considered carrot?
>
> > :P
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Open-source or closed-source for SaaS?

2012-01-16 Thread bobhaugen
You might also want to consider:

(1) Will anybody actually want to compete with you using your code or
a fork of same?
People often assume ravenous competitors when in real life, nobody is
that interested, for whatever reasons.  Or at least they will not
become interested until you are way out in front.

(2) Even if they do, will they able to compete?  Or will your service
be clearly superior? And will you be able to evolve it faster and
better than any copycats, because you understand it deeply and they
don't?

None of those considerations mean you should or should not open-source
your code, but you might be worried about nothing much.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Thanks, now I don't have to do the hard work as a noob.

On Mon, Jan 16, 2012 at 9:23 AM, j_syk  wrote:

> This a good application for named urls with passing arguments.
>
> for example, given a urls.py containing
>
>url(r'^edit/(?P[0-9]+)/$', edit_item, name="edit_item"),
>
> in your template you can do this:
>
> {% for item in item_query %}
> 
>Edit
> 
> {% endfor %}
>
> Hope that helps! Named urls are the preferred DRY method too and so
> easy to use!
>
>
> On Jan 16, 8:04 am, Bill Beal  wrote:
> > Thanks, I'll try that.
> >
> > On Mon, Jan 16, 2012 at 8:58 AM, Szabo, Patrick (LNG-VIE) <
> >
> >
> >
> >
> >
> >
> >
> > patrick.sz...@lexisnexis.at> wrote:
> > > Hi,
> >
> > > I'm doing the exact same thing. What i do is i add the id of the
> object of
> > > a row to the url that the button is linking to.
> > > Then I use urls.py and views.py to identify that id and delete or add
> the
> > > object.
> >
> > > cheers
> >
> > > . . . . . . . . . . . . . . . . . . . . . . . . . .
> > > Ing. Patrick Szabo
> > >  XSLT Developer
> > > LexisNexis
> > > A-1030 Wien, Marxergasse 25
> >
> > > mailto:patrick.sz...@lexisnexis.at
> > > Tel.: 00431 534521573
> > > Fax: +43 1 534 52 146
> >
> > > -Ursprüngliche Nachricht-
> >
> > > Von: django-users@googlegroups.com [mailto:
> django-users@googlegroups.com]
> > > Im Auftrag von Bill Beal
> > > Gesendet: Montag, 16. Jänner 2012 14:55
> > > An: Django users
> > > Betreff: Need "edit" and "delete" buttons on each line of a rendered
> table
> >
> > > Hi All,
> >
> > > I'm trying to render a table and have an EDIT
> > > button and a DELETE button on each line, like:
> >
> > > ID numberID typeEDITDELETE
> >
> > > and identify which line is to be EDITed
> > > or DELETEd.  I tried to create a unique name
> > > for each button, like:
> >
> > >  > > value="EDIT" />
> >
> > > but the template language won't let me add.
> > > Is there a simpler way to know which line
> > > the submit came from, that works?
> > > Or even a complicated way that works?
> >
> > > Bill Beal
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-users@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-users@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: mac vs windows installation /deployment

2012-01-16 Thread j_syk
This isn't really an answer to your question, but here's my 2 cents.
I'm in the reverse situation as you, Macs at work and Windows at home.
I wasn't too interested in figuring out Django development on either
after quickly disliking macports and never having the desire to
develop on windows without a specific IDE. Although at the time I
tried both, I was probably just too overwhelmed with everything I need
to try to learn.

I have always used a linux environment (ubuntu), mostly though ssh on
headless clients. For a while I was running ubuntu desktop and server
editions though virtual machines on both my work mac and windows
computer at home and using osx and windows as my workspace. But now I
have dedicated Linux servers at work and home to develop on, and a
linode slice for public websites. I guess I've gotten used to a
terminal based approach and using FTP as necessary.

I don't know what your plans are in the future, but a lot of web
hosting servers are Linux, so it may be beneficial to have experience
and/or be able to directly port over projects.

I know you asked for A or B and I said C, but maybe think about it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Joining tables

2012-01-16 Thread bruno desthuilliers
On Jan 16, 8:04 am, Arun P  wrote:
> Does this work?
>
> info =
> ExtraInformation.objects.filter(user__is_active=1,user__is_staff=0,user__is_superuser=0).order_by("popularity").select_related("user")
>
> users = map(lambda i: i.user, info)


That was for the "uselessly complicated and memory-hungry" method. Now
for the "simple lazy" method:

=> users = User.objects.filter().order_by("extrainformation__popularity")

@OP : You can add a select_related if you plan on using data from
ExtraInformation so you save on useless queries.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread j_syk
This a good application for named urls with passing arguments.

for example, given a urls.py containing

url(r'^edit/(?P[0-9]+)/$', edit_item, name="edit_item"),

in your template you can do this:

{% for item in item_query %}

Edit

{% endfor %}

Hope that helps! Named urls are the preferred DRY method too and so
easy to use!


On Jan 16, 8:04 am, Bill Beal  wrote:
> Thanks, I'll try that.
>
> On Mon, Jan 16, 2012 at 8:58 AM, Szabo, Patrick (LNG-VIE) <
>
>
>
>
>
>
>
> patrick.sz...@lexisnexis.at> wrote:
> > Hi,
>
> > I'm doing the exact same thing. What i do is i add the id of the object of
> > a row to the url that the button is linking to.
> > Then I use urls.py and views.py to identify that id and delete or add the
> > object.
>
> > cheers
>
> > . . . . . . . . . . . . . . . . . . . . . . . . . .
> > Ing. Patrick Szabo
> >  XSLT Developer
> > LexisNexis
> > A-1030 Wien, Marxergasse 25
>
> > mailto:patrick.sz...@lexisnexis.at
> > Tel.: 00431 534521573
> > Fax: +43 1 534 52 146
>
> > -Ursprüngliche Nachricht-
>
> > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com]
> > Im Auftrag von Bill Beal
> > Gesendet: Montag, 16. Jänner 2012 14:55
> > An: Django users
> > Betreff: Need "edit" and "delete" buttons on each line of a rendered table
>
> > Hi All,
>
> > I'm trying to render a table and have an EDIT
> > button and a DELETE button on each line, like:
>
> > ID number    ID type    EDIT    DELETE
>
> > and identify which line is to be EDITed
> > or DELETEd.  I tried to create a unique name
> > for each button, like:
>
> >  > value="EDIT" />
>
> > but the template language won't let me add.
> > Is there a simpler way to know which line
> > the submit came from, that works?
> > Or even a complicated way that works?
>
> > Bill Beal
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Thanks, I'll try that.

On Mon, Jan 16, 2012 at 8:58 AM, Szabo, Patrick (LNG-VIE) <
patrick.sz...@lexisnexis.at> wrote:

> Hi,
>
> I'm doing the exact same thing. What i do is i add the id of the object of
> a row to the url that the button is linking to.
> Then I use urls.py and views.py to identify that id and delete or add the
> object.
>
> cheers
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
> Ing. Patrick Szabo
>  XSLT Developer
> LexisNexis
> A-1030 Wien, Marxergasse 25
>
> mailto:patrick.sz...@lexisnexis.at
> Tel.: 00431 534521573
> Fax: +43 1 534 52 146
>
>
> -Ursprüngliche Nachricht-
>
> Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com]
> Im Auftrag von Bill Beal
> Gesendet: Montag, 16. Jänner 2012 14:55
> An: Django users
> Betreff: Need "edit" and "delete" buttons on each line of a rendered table
>
> Hi All,
>
> I'm trying to render a table and have an EDIT
> button and a DELETE button on each line, like:
>
> ID numberID typeEDITDELETE
>
> and identify which line is to be EDITed
> or DELETEd.  I tried to create a unique name
> for each button, like:
>
>  value="EDIT" />
>
> but the template language won't let me add.
> Is there a simpler way to know which line
> the submit came from, that works?
> Or even a complicated way that works?
>
> Bill Beal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



AW: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Szabo, Patrick (LNG-VIE)
Hi, 

I'm doing the exact same thing. What i do is i add the id of the object of a 
row to the url that the button is linking to. 
Then I use urls.py and views.py to identify that id and delete or add the 
object. 

cheers


. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
 XSLT Developer 
LexisNexis
A-1030 Wien, Marxergasse 25

mailto:patrick.sz...@lexisnexis.at
Tel.: 00431 534521573 
Fax: +43 1 534 52 146 


-Ursprüngliche Nachricht-

Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im 
Auftrag von Bill Beal
Gesendet: Montag, 16. Jänner 2012 14:55
An: Django users
Betreff: Need "edit" and "delete" buttons on each line of a rendered table

Hi All,

I'm trying to render a table and have an EDIT
button and a DELETE button on each line, like:

ID numberID typeEDITDELETE

and identify which line is to be EDITed
or DELETEd.  I tried to create a unique name
for each button, like:



but the template language won't let me add.
Is there a simpler way to know which line
the submit came from, that works?
Or even a complicated way that works?

Bill Beal

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Hi All,

I'm trying to render a table and have an EDIT
button and a DELETE button on each line, like:

ID numberID typeEDITDELETE

and identify which line is to be EDITed
or DELETEd.  I tried to create a unique name
for each button, like:



but the template language won't let me add.
Is there a simpler way to know which line
the submit came from, that works?
Or even a complicated way that works?

Bill Beal

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Validators for fields in Proxy Model - possible without monkeypatching?

2012-01-16 Thread Kirill Panshin
I use proxy model class inherited from `django.contrib.models.User`
and I want to apply custom validator to `username` field.

Is threre a way to do this without monkeypatching, as I cannot
override fields in parent class?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Alternatives to celery

2012-01-16 Thread Cherian Thomas
Second Arun’s suggestion on gearman. Pretty solid too.



Regards,
Cherian



On Mon, Jan 16, 2012 at 3:52 PM, Alec Taylor  wrote:

> Looking for an alternative to celery? — Have you considered carrot?
>
> :P
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Alternatives to celery

2012-01-16 Thread Alec Taylor
Looking for an alternative to celery? — Have you considered carrot?

:P

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Alternatives to celery

2012-01-16 Thread Markus Gattol
Have a look at https://github.com/dmgctrl/django-ztask It's based on 
ZeroMQ, you can schedule and background tasks in various ways, same machine 
or even across the network.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/BFHmXHBbRVsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.