Re: django-voting

2007-11-17 Thread tanukichan
I see. Thanks for the response. I appreciate 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 gro

Re: Different behaviour for url parameter in dev run versus test run

2007-11-17 Thread Ramdas S
are u using windows? On Nov 18, 2007 12:41 AM, Manoj Govindan <[EMAIL PROTECTED]> wrote: > > My application has a view that accepts a string parameter and filters > a model based on that parameter. In the development environment the > view works well when passed a string with a space in it, say '

Training/Projects on Bioinformatics, Biotechnology And SAS Programming at Global Institute of Biotechnology

2007-11-17 Thread Global Institute of Biotechnology
SAS FOR LIFE SCIENCES SAS (statistical analysis systems) is business intelligence software used for data analysis by more than 40,000 customers worldwide. SAS provides many solutions for life sciences including: * Optimization of the flow of Scientific Data * Integration of molecular i

Re: Custom commands on win32 vs. BSD

2007-11-17 Thread Russell Keith-Magee
On 11/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > A bit of digging revealed that the project's parent directory is > getting removed from sys.path, so the import of myproj.core.management > fails (INSTALLED_APPS has "myproj.core" in it). > > I had to add ".." to sys.path at the top of

Re: Apache mod_python config problem

2007-11-17 Thread Graham Dumpleton
On Nov 18, 2:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks for the help. I didn't think about checking permissions. I > have the site working now and I think it was a combination of > permissions and file paths. Here's the httpd.conf file that works: > > > ServerName

Re: Apache mod_python config problem

2007-11-17 Thread [EMAIL PROTECTED]
Thanks for the help. I didn't think about checking permissions. I have the site working now and I think it was a combination of permissions and file paths. Here's the httpd.conf file that works: ServerName music.sensiblestaffing.com DocumentRoot/home/published/www/dja

Re: more info when serializing

2007-11-17 Thread bfordham
> You could use a objects.values(...) which return a dictionary if I > remember > correctly, and then simplejson.dumps... I'll play with this and see how it works out tomorrow Thanks --B --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: more info when serializing

2007-11-17 Thread bfordham
> The serializer doesn't support this. It would take a bit of design work > to figure out how to specify such an extension easily. You might like > put some thought into that, though. For my specific case, I wrote a custom serializer, extending the current json one, that added the additional inf

Re: more info when serializing

2007-11-17 Thread Ben Ford
You could use a objects.values(...) which return a dictionary if I remember correctly, and then simplejson.dumps... Ben On 18/11/2007, Bryan L. Fordham <[EMAIL PROTECTED]> wrote: > > > So, say I have a model something like this: > > class Bar(models.Model): > user = models.ForeignKey(User) >

Re: more info when serializing

2007-11-17 Thread Malcolm Tredinnick
On Sat, 2007-11-17 at 16:21 -0500, Bryan L. Fordham wrote: > So, say I have a model something like this: > > class Bar(models.Model): > user = models.ForeignKey(User) > name = models.CharField(maxlength=50) > description = models.TextField() > > where user is tied to a django.contri

How to handle differing timezones?

2007-11-17 Thread [EMAIL PROTECTED]
I'm curious how others handle the ever-annoying issue of timezones. Our Django app, running Django trunk/MySQL 5.0 on FreeBSD, has to handle multiple time zones. Each user has his/her own time zone set. Currently, I have middleware that sets os.environ["TZ"] to their time zone, followed by a cal

Re: Understanding autoescape-aware filters

2007-11-17 Thread Malcolm Tredinnick
On Sat, 2007-11-17 at 20:49 +0300, Ivan Sagalaev wrote: > Hello! > > I'm about to convert my apps to play well with recently introduced > autoescaping but I have to confess that I don't get mark_safe, is_safe > and needs_autoescaping. > > First, I don't get why .is_safe attribute is needed at

Re: Understanding autoescape-aware filters

2007-11-17 Thread Karen Tracey
On 11/17/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > > Hello! > > I'm about to convert my apps to play well with recently introduced > autoescaping but I have to confess that I don't get mark_safe, is_safe > and needs_autoescaping. I'm also just getting started on learning this, but feel lik

Re: Does Hostmonster support Django?

2007-11-17 Thread Evgeny
here is hostmonster's response about mod_python and django: >We don't have mod_python installed, nor will we install it for anyone. >We don't officially support django, but we've had many customers run/install >it successfully using fastcgi. On Nov 12, 6:57 pm, Evgeny <[EMAIL PROTECTED]> wrote:

Re: GeoDjango: Can't find libraries and geos errors

2007-11-17 Thread Justin Bronn
> On OS X, using MacPorts, ctypes doesn't look in /opt/local/lib unless > you set LD_LIBRARY_PATH. On Ubuntu Feisty, the gdal package uses a > weird naming convention and isn't found. Is it possible to specify > these library locations in settings.py or somewhere? There are no explicit settings f

Forget about burning CDs and using expensive overnight courier.

2007-11-17 Thread pishate chond
Forget about burning CDs and using expensive overnight courier. Send, Track and Receive files with YouSendIt. Start Your FREE Trial! Get Free Code: Limited Time Only! http://www.tkqlhce.com/click-2667396-10501907 --~--~-~--~~~---~--~~ You received this message bec

more info when serializing

2007-11-17 Thread Bryan L. Fordham
So, say I have a model something like this: class Bar(models.Model): user = models.ForeignKey(User) name = models.CharField(maxlength=50) description = models.TextField() where user is tied to a django.contrib.auth.models.User entity. When I serialize this to json, I get: [{"pk": "1

Re: advice on template shortcomings

2007-11-17 Thread [EMAIL PROTECTED]
You don't need the development version. You should be able to do something like: {% for item in mydict.items %} the key: {{ item.0 }} the value: {{ item.1 }} {% for subitem in item.1 %} {{ subitem }} {% endfor %} {% endfor %} While not as pretty as the development version of d

Re: advice on template shortcomings

2007-11-17 Thread Manoj Govindan
> > Note I am using 0.96, the production distro. The ability to iterate through dictionaries is only available in the *development* version. Documentation URL: http://www.djangoproject.com/documentation/templates/#for >From the django site: This can also be useful if you need to access the item

Re: advice on template shortcomings

2007-11-17 Thread Ken
Great! I hope you can tell me what I'm doing wrong. Here's the template: {% for k, v in thedict.iteritems %} {{ k }}, {{ v }} {% endfor %} {% for a1, a2 in thelist %} {{ a1 }}, {{ a2 }} {% endfor %} and the views' index function def index(request): thedict = {'a': '1', 'b': '2' }

Re: Understanding autoescape-aware filters

2007-11-17 Thread Ivan Sagalaev
SmileyChris wrote: > It's explained here: > http://www.djangoproject.com/documentation/templates_python/#filters-and-auto-escaping Yes, I've asked the group after I've read those docs, twice :-). First time I thought that I was just slow but the second time I didn't understand again and asked f

Re: Understanding autoescape-aware filters

2007-11-17 Thread SmileyChris
On Nov 18, 6:49 am, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > the docs are > written in Linux how-to style: "make these magic passes and hope for the > best and don't try to understand the thing since you never will". Could > you please clarify why are those things needed and what exact effect >

Re: advice on template shortcomings

2007-11-17 Thread Ivan Sagalaev
Ken wrote: > For instance, I > cant pass a dict or a list of lists to the template. Actually it's not true, you can perfectly pass and access dicts and lists and whatever in templates. Can you describe your specific case that didn't work? --~--~-~--~~~---~--~~ Y

advice on template shortcomings

2007-11-17 Thread Ken
I'm using 0.96 and find django's templates very frustrating. While I find the ability to pass Python objects to the template and accessing object attributes or methods to be really nice, this feature does not extend to basic python objects like lists and dicts. For instance, I cant pass a dict o

Different behaviour for url parameter in dev run versus test run

2007-11-17 Thread Manoj Govindan
My application has a view that accepts a string parameter and filters a model based on that parameter. In the development environment the view works well when passed a string with a space in it, say 'hello world'. The portion of the url representing the parameter shows up as 'hello%20world'. I th

Understanding autoescape-aware filters

2007-11-17 Thread Ivan Sagalaev
Hello! I'm about to convert my apps to play well with recently introduced autoescaping but I have to confess that I don't get mark_safe, is_safe and needs_autoescaping. First, I don't get why .is_safe attribute is needed at all. If my filter returns any HTML I should escape it and mark_safe

Re: URL/Request Question

2007-11-17 Thread [EMAIL PROTECTED]
On Nov 17, 4:33 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-11-16 at 19:19 -0800, [EMAIL PROTECTED] wrote: > > > On Nov 17, 4:15 am, Malcolm Tredinnick <[EMAIL PROTECTED]> > > wrote: > > > On Fri, 2007-11-16 at 19:04 -0800, [EMAIL PROTECTED] wrote: > > > > [...] > > > > > Is

HOTTEST PHOTO-SHOOTS OF THE SEXIEST MODELS N CELEBRITIES. GET THEM HERE

2007-11-17 Thread blog
THE BEST SITES FOR THE NEWEST WALLPAPERS N GOSSIP N ALL THE OTHER HAPPENINGS IN BOLLYWOOD HOLLYWOOD N IN THE GLAMOROUS WORLD:- http://bollywood-dhamaal.blogspot.com/ http://comingup-bollywood.blogspot.com/ http://nasty-hollywood.blogspot.com/ http://fun-at-its-best.blogspot.com/ wanna earn m

Re: Accessing request.user inside a model methods

2007-11-17 Thread Samuel Adam
http://lucumr.pocoo.org/blogarchive/why-i-cant-stand-threadlocal-and-others On Nov 17, 10:20 am, DanB <[EMAIL PROTECTED]> wrote: > Thxs Alex, > > really helpful info. > > Cheers, > DanB > > On Nov 16, 7:04 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > >http://code.djangoproject.com/wiki/CookBo

Re: Sharding with Django

2007-11-17 Thread crybaby
python orm sqlalchemy allows sharding. I would like to me sqlalchemy integrated into django. I am python noob, so I can't go around hacking the framework. I like django, but the whole framework is not decoupleable. --~--~-~--~~~---~--~~ You received this message

HOTTEST PHOTO-SHOOTS OF THE SEXIEST MODELS N CELEBRITIES. GET THEM HERE

2007-11-17 Thread priyanka
THE BEST SITES FOR THE NEWEST WALLPAPERS N GOSSIP N ALL THE OTHER HAPPENINGS IN BOLLYWOOD HOLLYWOOD N IN THE GLAMOROUS WORLD:- http://bollywood-dhamaal.blogspot.com/ http://comingup-bollywood.blogspot.com/ http://nasty-hollywood.blogspot.com/ http://fun-at-its-best.blogspot.com/ wanna earn m

Re: django-voting

2007-11-17 Thread Karen Tracey
On Nov 17, 2007 3:42 AM, tanukichan <[EMAIL PROTECTED]> wrote: > > When looking at the example given in the overview.txt file for django- > voting (http://django-voting.googlecode.com/svn/trunk/docs/ > overview.txt), they give the following: > > "Votes are recorded using the ``record_vote`` helper

Re: Accessing request.user inside a model methods

2007-11-17 Thread DanB
Thxs Alex, really helpful info. Cheers, DanB On Nov 16, 7:04 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser > > On 16 нояб, 20:07, "Dan-Cristian Bogos" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > Can anyone tell me if it is possib

Re: Dynamically load objects

2007-11-17 Thread Grupo Django
On 17 nov, 01:28, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On Nov 16, 2007 8:18 PM, Grupo Django <[EMAIL PROTECTED]> wrote: > > > > > Thanks a lot! get _model works. > > Only one thing, I've been reading the code in te file django/db/models/ > > loading.py and I don't understand how it work

django-voting

2007-11-17 Thread tanukichan
When looking at the example given in the overview.txt file for django- voting (http://django-voting.googlecode.com/svn/trunk/docs/ overview.txt), they give the following: "Votes are recorded using the ``record_vote`` helper function:: >>> from django.contrib.auth.models import User >>> f