Re: Django with PyPy JIT?

2010-09-05 Thread Alex_Gaynor


On Sep 5, 4:40 pm, Andy  wrote:
> Anyone tried running Django with PyPy JIT?
>
> What are the steps to set it up? Is it stable?
>
> PyPy benchmark shows almost 3X speed up of Django and they also said
> it would reduce memory consumption. I'm interested in trying it out.
> Just want to learn about anyone's experience with running Django on
> PyPy.
>
> Are there any pitfalls?
>
> Thanks.

Hi Andy,

I haven't deployed Django under PyPy ever, however I have been working
to ensure they work together.  If you take a look at the videos from
here: http://morepypy.blogspot.com/2010/08/europython-2010-videos-available.html
you can see some of the stuff that's been done with it.  The one major
pitfall is that there are no c-extensions, so you can't use something
like psycopg2.

Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Translation sprint in Montréal

2010-01-16 Thread Alex_Gaynor


On Jan 16, 7:21 pm, Yannick Gingras  wrote:
> Hello guys,
>   this is just a quick note to let you know that we're going to do a
> sprint for French translation of the Django doc here in Montréal next
> Monday:
>
> http://montrealpython.org/2010/01/15/django-translation-sprint-on-201...
>
> If you are in the area, feel free to drop by.
>
> --
> Yannick Gingrashttp://ygingras.nethttp://confoo.ca-- track 
> coordinatorhttp://montrealpython.org-- lead organizer
>
>  signature.asc
> < 1KViewDownload

Could you please make a page for this on the Django wiki, and add it
to the list here: http://code.djangoproject.com/wiki/Sprints

Alex
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Switching from soc2009/multidb to trunk; cross db foreign keys

2009-12-31 Thread Alex_Gaynor


On Dec 31, 3:30 pm, CB  wrote:
> *Oops, sorry about the refrences to 'AdSalesModel' and setting
> using='adsales' - you can see where I'm using these ideas :)
>
> Change them to PartitionedModel and self.objects.forced_using
> respectively.

Hrm, it's clear that the current implementation is probably overly
aggressive in changing the DB, there are plenty of cases where a
related model would be on a different database.  That being said in
your case it might make sense for using() to be a no-op, since by
definition your manager is supposed to work with a specific DB.

Alex

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: new readonly_fields in modeladmin

2009-12-31 Thread Alex_Gaynor


On Dec 31, 3:06 pm, Alex_Gaynor <alex.gay...@gmail.com> wrote:
> On Dec 31, 12:46 pm, Tim Miller <t...@lashni.net> wrote:
>
> > I just want to confirm this isn't my own idiocy or intended behaviour
> > before I file a bug.
>
> > I've got the following line defined in my modeladmin entry...
>
> > readonly_fields = ('date_created', 'date_modified', 'date_published')
>
> > They get displayed in the admin as 'Date created', 'Date modified' and
> > 'Date published'. I've tried specifying different strings for those
> > fields with the first positional argument and with verbose_name. Neither
> > of those change how the text is displayed in the admin.
>
> > readonly_fields was introduced in #11965.
>
> This sounds like a bug.  Could you please file it on trac?
>
> Thanks,
> Alex

I've actually gone ahead and filed it, and uploaded a patch:
http://code.djangoproject.com/ticket/12477

Alex

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: new readonly_fields in modeladmin

2009-12-31 Thread Alex_Gaynor


On Dec 31, 12:46 pm, Tim Miller  wrote:
> I just want to confirm this isn't my own idiocy or intended behaviour
> before I file a bug.
>
> I've got the following line defined in my modeladmin entry...
>
> readonly_fields = ('date_created', 'date_modified', 'date_published')
>
> They get displayed in the admin as 'Date created', 'Date modified' and
> 'Date published'. I've tried specifying different strings for those
> fields with the first positional argument and with verbose_name. Neither
> of those change how the text is displayed in the admin.
>
> readonly_fields was introduced in #11965.

This sounds like a bug.  Could you please file it on trac?

Thanks,
Alex

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: django-tagging is not multi-db safe

2009-12-26 Thread Alex_Gaynor


On Dec 26, 11:11 am, Rob Hudson  wrote:
> > Django-tagging have a lot of users though. Maybe the pinax-people will
> > arrange for a version that is 1.2-safe.
>
> Check out django-taggit:http://github.com/alex/django-taggit

Unfortunately django-taggit isn't multi-db safe, although I'm aware of
this (and have been ever since I wrote it :P).  I don't imagine it'll
be difficult to make it work though, the internal poking is fairly
self contained.

Alex

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Custom Django-Admin commands

2009-12-21 Thread Alex_Gaynor


On Dec 21, 8:38 pm, Justin Steward  wrote:
> On Tue, Dec 22, 2009 at 12:16 PM, Doug Blank  wrote:
>
> > You probably just need to set your PYTHONPATH:
>
> > cd /home/user
> > PYTHONPATH=proj python proj/manage.py custom
>
> That was my initial thought too, however setting the PYTHONPATH does
> not affect the behaviour in this instance.
>
> ~Justin

Do you have __init__.py files in each of those directories?

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.




Call for proposals -- PyCon 2010

2009-09-16 Thread Alex_Gaynor

Call for proposals -- PyCon 2010 -- 
===

Due date: October 1st, 2009

Want to showcase your skills as a Python Hacker? Want to have
hundreds of people see your talk on the subject of your choice? Have
some
hot button issue you think the community needs to address, or have
some
package, code or project you simply love talking about? Want to launch
your master plan to take over the world with python?

PyCon is your platform for getting the word out and teaching something
new to hundreds of people, face to face.

Previous PyCon conferences have had a broad range of presentations,
from reports on academic and commercial projects, tutorials on a broad
range of subjects and case studies. All conference speakers are
volunteers
and come from a myriad of backgrounds. Some are new speakers, some
are old speakers. Everyone is welcome so bring your passion and your
code! We're looking to you to help us top the previous years of
success
PyCon has had.

PyCon 2010 is looking for proposals to fill the formal presentation
tracks.
The PyCon conference days will be February 19-22, 2010 in Atlanta,
Georgia, preceded by the tutorial days (February 17-18), and followed
by four days of development sprints (February 22-25).

Online proposal submission is open now! Proposals  will be accepted
through October 1st, with acceptance notifications coming out on
November 15th. For the detailed call for proposals, please see:

 

For videos of talks from previous years - check out:



We look forward to seeing you in Atlanta!

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---