Re: Special SELECT and UPDATE for a field

2013-01-31 Thread Yarden Sachs
In the end, what i did is, i added a conversion type to MySQLDB for my Corrdinates object to convert it to a non literal string. and for the selecting part, i had to copy and alter db/sql/compiler's get_columns and get_default_columns to wrap my field selection with the AsText function. a very b

Re: F function?

2013-01-31 Thread Jirka Vejrazka
Pro tip: if you find yourself in a similar situation again, try searching Django code for "def F(" and "class F(" - that should narrow your search a bit :) Cheers Jirka On Fri, Feb 1, 2013 at 6:14 AM, Chad Vernon wrote: > Nevermind, found it! Was having a hard time searching for "F" :

RE: newbie confused about urls

2013-01-31 Thread Babatunde Akinyanmi
You need to change the view argument you supplied - 'order_details' either to a string with the full path to the 'order_details' function like: (r'^order_details/(?P[-\w]+)/$', 'path.to.my.view.order_details', {'template_name': 'registration/order_details.html'}, 'order_details'), or import

Re: initial argument in forms not working for me

2013-01-31 Thread Peter of the Norse
Weird HTML formatting in your message. Plain text fixes things. The issue is the capital P in initial='Public'. The choices list looks like (value stored in the database, value displayed to the user). The choices that the RadioSelect looks for from the datase are 'public' and 'private'. 'Public'

Re: Polls tutorial receive object not object representation

2013-01-31 Thread Peter of the Norse
On Jan 27, 2013, at 6:53 PM, Sayth Renshaw wrote: > Hi > > Just seeking a little clarification. > > In the Polls tutorial we get this section. > > >>> p = Poll.objects.get(pk=1) > > # Display any choices from the related object set -- none so far. > >>> p.choice_set.all() > [] > > # Create t

Re: Announcing new django project

2013-01-31 Thread Chad Vernon
Very nice! I'll probably try it out in my current project. On Thursday, January 31, 2013 9:25:06 PM UTC-8, h3 wrote: > > Hi everybody, > > I would like to introduce you my latest project: django-editlive > > It can make any database object editable in template with a simple > template tag. > > M

Announcing new django project

2013-01-31 Thread h3
Hi everybody, I would like to introduce you my latest project: django-editlive It can make any database object editable in template with a simple template tag. More informations, including demos and docs here: http://editlive.motion-m.ca Feedback would be appreciated. -- Maxime Haineault

Re: F function?

2013-01-31 Thread Chad Vernon
Nevermind, found it! Was having a hard time searching for "F" :) https://docs.djangoproject.com/en/1.4/topics/db/queries/#query-expressions On Thursday, January 31, 2013 9:10:39 PM UTC-8, Chad Vernon wrote: > > I was looking at this snippet: > > http://djangosnippets.org/snippets/1560/#comments

F function?

2013-01-31 Thread Chad Vernon
I was looking at this snippet: http://djangosnippets.org/snippets/1560/#comments And on this line: ReportField.objects.filter(order__range=range).update(order=F('order')+shift) What is the F in F('order')? Thanks! Chad -- You received this message because you are subscribed to the Google Grou

Re: newbie confused about urls

2013-01-31 Thread yati sagade
Okay, please paste the full error page contents at http://dpaste.org Also, show us your models.py which contains the Order model On Fri, Feb 1, 2013 at 6:25 AM, frocco wrote: > I am getting this error: > TypeError at /order_details/17/ > > 'str' object is not callable > > > urls.py > (r'^order

Re: newbie confused about urls

2013-01-31 Thread frocco
I am getting this error: TypeError at /order_details/17/ 'str' object is not callable urls.py (r'^order_details/(?P[-\w]+)/$', 'order_details', {'template_name': 'registration/order_details.html'}, 'order_details'), template Order #{{ order.id }} - {{ order.date|date }} (view) views

Greyed out models in Django Admin

2013-01-31 Thread Huw Jones
Hi, Using Django 1.4, have registered 3 model classes with admin. When accessing admin page provided by test server can select each class and edit entries. However when accessing production admin the classes are greyed out, only the users, groups and sites are selectable. I thought this might be d

Re: Special SELECT and UPDATE for a field

2013-01-31 Thread Yarden Sachs
You can see in my paste that i already created a custom field for geometry field. On Thu, Jan 31, 2013 at 7:52 PM, Tom Evans wrote: > On Wed, Jan 30, 2013 at 8:14 PM, Yarden Sachs wrote: > > Hello, > > i want to create a field class for geometry (not using geodjango). > > here's the field code

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Sreenivas Reddy T
thanks for the write-up Best Regards, Srinivas Reddy Thatiparthy 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein On Thu, Jan 31, 2013 at 11:53 PM, Larry Martell wrote: > This is something I found back in 07 when I was offered a chance t

Re: newbie confused about urls

2013-01-31 Thread yati sagade
Hi You usually define get_absolute_urls() on a model to let Django know how to derive a URL for that object. The docs for get_absolute_url can be found here. I advise you to understand how URL routing works i

Application Developer Position in Sunny San Diego!!!!

2013-01-31 Thread mlivings
Looking for an experience Django/python developer to fill an open development position for Qualcomm. You can see the details and apply here: https://jobs.qualcomm.com/public/jobDetails.xhtml?requisitionId=1910238&page=jobSearch Requisition # N1910238 Job Title Application Developer C

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Larry Martell
This is something I found back in 07 when I was offered a chance to interview there. I searched for it again, and there are links to it, but they don't appear to work. My situation was the strangely similar to Peter's - I also got an unsolicited call from someone at google who said they saw my resu

inspectdb option and DJango normal operations

2013-01-31 Thread arc4gold
If I use the inspectdb command to create models.py file from existing database schema would it function the same way as if I had created the tables using the syncdb command.? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Joey Espinosa
Google is HEAVY on Python... I have some experience working directly with Google engineers in their offices, and I can tell you the level of knowledge that they all have in their respective areas. It's significant, and they're going to want someone with a deep working knowledge of the technologies

Re: newbie confused about urls

2013-01-31 Thread frocco
I am following the "Beginning Django e-commerce" book and he uses the get_absolute_url method in his models. The book is dated (2009) and being new, I am not sure what applies. He also creates urls.py in each module directory, but when I run it, it never finds it. it defaults to the main urls.py

Re: Special SELECT and UPDATE for a field

2013-01-31 Thread Tom Evans
On Wed, Jan 30, 2013 at 8:14 PM, Yarden Sachs wrote: > Hello, > i want to create a field class for geometry (not using geodjango). > here's the field code: http://pastebin.com/yADpZykJ > > i want 2 things i can't seem to do: > 1. I want the select to wrap the column with MySql AsText() Function >

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Larry Martell
On Thu, Jan 31, 2013 at 10:48 AM, Tom Evans wrote: > On Thu, Jan 31, 2013 at 5:25 PM, Larry Martell > wrote: >> Books have been written about interviewing at google. Google >> 'interviewing at google' and you'll find a plethora of stories. After >> reading them you may not want to interview ther

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Tom Evans
On Thu, Jan 31, 2013 at 5:25 PM, Larry Martell wrote: > Books have been written about interviewing at google. Google > 'interviewing at google' and you'll find a plethora of stories. After > reading them you may not want to interview there. I was offered a > chance to interview there about 8 years

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Larry Martell
On Thu, Jan 31, 2013 at 8:15 AM, laxmikant ratnaparkhi wrote: > Hello Everybody, > I have an interview scheduled on monday with google. So can you > anybody have an related information or any experience. Please help me what > would be asked for this interview. > I have 2 years of exp in py

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Andre Terra
I don't have any experience in interviews for developer positions, but I have general job interview tips that you might like. First, get to know your resumé. This is my #1 advice. Interviewers usually want to know why you made your decisions. What was the reason behind picking this or that school?

Re: Moving a Django website to another server

2013-01-31 Thread Avraham Serour
Just checked the docs, looks like ImageField stores the path it was a satchmo app, does someone knows what it does with the product images? thanks avraham On Thu, Jan 31, 2013 at 4:45 PM, Kelly Nicholes wrote: > If you're storing your images in your database (don't) then your db > migration sh

Re: Moving a Django website to another server

2013-01-31 Thread Mike Doroshenko II
I have scripts that use rsync for my backups, this is old hat for me lol :) John Robertson wrote: Hi there, thanks for all your very helpful responses. Its all a little out of my comfort zone so I might employ someone to do it for me. Any takers/quotes? cheers John On Friday, January 25, 201

Re: newbie confused about urls

2013-01-31 Thread Mike Doroshenko II
You mean mappings urls to views(pages?). Because if get_absolue_url is like request.get_full_path() then you would use that in the view itself and use urls.py to map urls to pages/views. And templates are are called from in views. frocco wrote: Hi All, I am trouble understanding how to use u

newbie confused about urls

2013-01-31 Thread frocco
Hi All, I am trouble understanding how to use urls. I see tutorials that have get_absolue_url, url mysite, ect. I need to do: 1. load a page with no parameters 2. load a page with 1 parameter 3. load a page with more than 1 parameter What should my templates look like? Thank you -- You re

Re: Can I set a "global" variable after user login, to use in my view?

2013-01-31 Thread Tom Evans
On Tue, Jan 22, 2013 at 8:01 PM, Fellipe Henrique wrote: > The problem is, I need to pass this request.user to one form, using a > inlineformset_factory..in these code: > > class PedidoItensForm(ModelForm): > class Meta: > model = ItensPedido > > def __init__(self, *args, **kwargs)

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Mike Doroshenko II
Really? Since when, because Google Predates Django, doesn't it? @OP: Interview, like for a job? Michał Nowotka wrote: Didn't you know that whole google search thing is actually just django + tastyPie + solr? -- Mike Doroshenko, Junior Sys Admin TecKnoQuest Inc. mi...@tecknoquest.com www.teckn

Re: Problem with FilteredSelectMultiple widget

2013-01-31 Thread Victor Rocha
Can you post up your code? On Thursday, January 31, 2013 6:29:08 AM UTC-5, KVR wrote: > > Hi, > I am trying to reuse FilteredSelectMultiple widget from django admin > widgets. > > I've defined my form and media classes, and included form and media > contexts in my template also. > > But when I

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Michał Nowotka
Didn't you know that whole google search thing is actually just django + tastyPie + solr? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr..

AW: Kindly help for an interview with Google on python django

2013-01-31 Thread Szabo, Patrick (LNG-VIE)
I’d be interessted if they are still using python or if they moved to „go“ entirely. Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von laxmikant ratnaparkhi Gesendet: Donnerstag, 31. Jänner 2013 16:15 An: django-users@googlegroups.com Betreff: Kindly help

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Mando
I don't, but your where I want to be in a couple of years. If you could share your experience that would be really helpful thanks in advance. Also Good luck! On Thursday, January 31, 2013 9:15:11 AM UTC-6, laxglx wrote: > > Hello Everybody, > I have an interview scheduled on monday with

Kindly help for an interview with Google on python django

2013-01-31 Thread laxmikant ratnaparkhi
Hello Everybody, I have an interview scheduled on monday with google. So can you anybody have an related information or any experience. Please help me what would be asked for this interview. I have 2 years of exp in python and django. Thanks in advance!!! regards, Laxmikant -- You rece

Re: Moving a Django website to another server

2013-01-31 Thread Kelly Nicholes
If you're storing your images in your database (don't) then your db migration should have done it. If you're storing the paths in the database, let's hope they're relative paths to the images. You'll have to copy the images to your new server using the same approaches listed above. One alter

Re: django support for ms SQL

2013-01-31 Thread Andre Terra
http://django-mssql.readthedocs.org/en/latest/ Cheers, AT On Thu, Jan 31, 2013 at 11:34 AM, wrote: > is there any support for MS SQL ? > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop

django support for ms SQL

2013-01-31 Thread arc4gold
is there any support for MS SQL ? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: Moving a Django website to another server

2013-01-31 Thread Avraham Serour
similar question on the same topic: I used dumpdata/loaddata to move from sqlite to postgres, while it was able to move the relations it didn't get any image, any way I could something similar but including the images? would south be able to do it? On Thu, Jan 31, 2013 at 11:09 AM, John Roberts

Re: get_absolute_url with custom extra parameter

2013-01-31 Thread Daniel Roseman
On Thursday, 31 January 2013 05:35:05 UTC, Sammael wrote: > Thank you for your answer! > > I have a photo album which can be displayed in two modes: full (with url > like 'album/id/full') and thumbnails ( like 'album/id/thumbnails' ). I > would like 'get_absolute_url' to return a corresponding u

Re: get_absolute_url with custom extra parameter

2013-01-31 Thread Bill Freeman
The template language does not allow for the passing of arguments to model methods. Two methods does not seem ugly to me. But if you feel that you need something else, you could write a template filter used something like: {{ album|get_photo_url:"thumbnails" }} The implementation of the filte

Problem with FilteredSelectMultiple widget

2013-01-31 Thread KVR
Hi, I am trying to reuse FilteredSelectMultiple widget from django admin widgets. I've defined my form and media classes, and included form and media contexts in my template also. But when I load the page, it's just showing multiselect box and below line: What may be the problem and how to g

Re: previous values of custom method in save

2013-01-31 Thread Sammael
Daniel, thank you for your response. I just use standard "edit album" page in admin interface without any special forms or widgets for ManyToManyField. Perhaps it worth mentioning, I also use django-mptt for Tag like this: *from mptt.models import MPTTModel, TreeForeignKey* * * *class Tag

Re: previous values of custom method in save

2013-01-31 Thread Daniel Roseman
On Wednesday, 30 January 2013 10:31:09 UTC, Sammael wrote: > > When I change 'tags' in admin panel and save my model, old tags are being > written to file 'info.txt' instead of new ones, but it works good with > regular fields like self.name. > How do I overcome this issue? > Thank you in adva

Re: an elusive ValueError: 'str' object not callable -- lost.

2013-01-31 Thread Tom Evans
On Wed, Jan 30, 2013 at 6:59 PM, Maurice Asimov wrote: > Hey guys. > > I recently started getting a ValueError complaining that an str is not > callable -- in a very wierd place. > > This happens to some calls to messages.info(request, 'somethingsomething'), > in one of those cases __inside the dj

Re: Special SELECT and UPDATE for a field

2013-01-31 Thread Yarden Sachs
Its a hack. but it solves the save problem: class CoordinatesQuerySetManager(models.Manager): def __getattr__(self, name): return getattr(self.get_query_set(), name) def get_query_set(self): q = self.model.QuerySet(self.model) connection = q.query.get_compiler(us

Re: Moving a Django website to another server

2013-01-31 Thread John Robertson
Hi there, thanks for all your very helpful responses. Its all a little out of my comfort zone so I might employ someone to do it for me. Any takers/quotes? cheers John On Friday, January 25, 2013 10:20:49 AM UTC, John Robertson wrote: > > Hi there, if I want to move a Django website to another