Re: Weird problem after schema change

2010-11-30 Thread chris
Nope, haven't defined anything interesting for admin. The field name matches, as far as I know. Frankly, though, given the length of time it takes for the server to reply (owing to the huge number of entries for the m2m field), I guess this really isn't worth fixing if it's more involved than a

Re: Where's the form value set for comments framework/app

2010-11-30 Thread photon
I looked into the code again and think I've found where the values come from. class CommentFormNode(BaseCommentNode): """Insert a form for the comment model into the context.""" ... return comments.get_form() (ctype.get_object_for_this_type(pk=object_pk)) The comments.get_form()

Re: Adding extra data in annotate()

2010-11-30 Thread fgasperino
For reference, it looks like D.Rosman has already wrote about the same topic at http://blog.roseman.org.uk/. Franco -- 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

Front-End Web Development Position(s)

2010-11-30 Thread CaspianSolutions
Hello all, We at CaspianSolutions, have couple of full-time Front-End Web Development positions with a start-up company here in Palo Alto. Job Description: • 4+ years of experience in an Engineering position. • Experience in Django/Python highly desired. • Deep knowledge of web:

Re: php script in django app

2010-11-30 Thread vamsy krishna
Oh ok. Thanks for the quick response. I guess I'll have to rewrite the script in Python. On Dec 1, 9:04 am, Javier Guerra Giraldez wrote: > On Tue, Nov 30, 2010 at 10:51 PM, vamsy krishna > wrote: > > I am trying to embed an Ajax call to load some

Re: php script in django app

2010-11-30 Thread Javier Guerra Giraldez
On Tue, Nov 30, 2010 at 10:51 PM, vamsy krishna wrote: > I am trying to embed an Ajax call to load some RSS feeds using a PHP > script in my Django app. This does not work and it returns my actual > PHP code which is not getting executed. This works when I try the same >

php script in django app

2010-11-30 Thread vamsy krishna
Hi, I am trying to embed an Ajax call to load some RSS feeds using a PHP script in my Django app. This does not work and it returns my actual PHP code which is not getting executed. This works when I try the same outside of Django in Apache. Can someone help me to get it working? Is it ok to use

Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-11-30 Thread Anurag Chourasia
Hi All, On Oracle 10.2 with Character-Set set to WE8MSWIN1252, When using Django, I try to select a Oracle row which contains a field with value as 'Páginas', i encounter the following error "'utf8' codec can't decode bytes " Here is the trace from the python command prompt. >>> tmlist =

Re: Project management software

2010-11-30 Thread Venkatraman S
On Wed, Dec 1, 2010 at 2:45 AM, Baurzhan Ismagulov wrote: > I'd > ideally like to pick one of the projects developed in Django and develop > on top of it. > I agrees. There are projects that need cleanup, and moreover developing a PM mgmt app from scratch is too much of an

Re: Error in ajax request

2010-11-30 Thread Andre Terra
Noob question here: why would it need limit=5 if the funcion has default values? Best regards, Andre Terra On Mon, Nov 29, 2010 at 20:17, Daniel Roseman wrote: > On Nov 29, 8:28 pm, James Matthews wrote: > > Hi, > > > > When I use this rate

Re: Django, Python, AJAX position

2010-11-30 Thread Venkatraman S
On Wed, Dec 1, 2010 at 8:08 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > 1) The fact you've put the terms "my client" and "work permit" whilst using > a gmail email address, that doesn't have your real name, kinda says a lot. > 2) You've broadly used the

Re: django to php

2010-11-30 Thread Kenneth Gonsalves
On Tue, 2010-11-30 at 12:56 +0530, Akash Mukherjee wrote: > I have a webapp created in django. Now I want to convert the entire > code into PHP. Is it possible?? If yes, how? although I can sympathise with your problem - some suit has decided that the code be in php? - it is unlikely that you

Re: Django, Python, AJAX position

2010-11-30 Thread Cal Leeming [Simplicity Media Ltd]
1) The fact you've put the terms "my client" and "work permit" whilst using a gmail email address, that doesn't have your real name, kinda says a lot. 2) You've broadly used the term AJAX, without specifying what JS framework (if any) you wish to be used. 3) You've used and/or on HTML5, as if

Re: django to php

2010-11-30 Thread Cal Leeming [Simplicity Media Ltd]
Too much noise! To answer OPs question, you'd have to port the code to PHP manually. On 01/12/2010 02:18, Steve Holden wrote: On 11/30/2010 9:15 PM, Kenneth Gonsalves wrote: On Tue, 2010-11-30 at 13:53 -0500, CLIFFORD ILKAY wrote: I have a webapp created in django. Now I want to convert the

Re: django to php

2010-11-30 Thread Steve Holden
On 11/30/2010 9:15 PM, Kenneth Gonsalves wrote: > On Tue, 2010-11-30 at 13:53 -0500, CLIFFORD ILKAY wrote: >>> I have a webapp created in django. Now I want to convert the entire >>> code into PHP. Is it possible?? If yes, how? >> >> I have a Porsche that I'd like to trade for an ox cart. Any

Re: django to php

2010-11-30 Thread Kenneth Gonsalves
On Tue, 2010-11-30 at 13:53 -0500, CLIFFORD ILKAY wrote: > > I have a webapp created in django. Now I want to convert the entire > > code into PHP. Is it possible?? If yes, how? > > I have a Porsche that I'd like to trade for an ox cart. Any takers? > Seriously, why would you want to do that?

Re: Issues importing models in between apps

2010-11-30 Thread Victor Hooi
heya, Sorry to reply to myself, but I seem to have the split worked out, using string syntax as suggested by Daniel, as you would for a FK to a model not yet defined (http://docs.djangoproject.com/en/dev/ref/models/ fields/#foreignkey). It seems to work now, however, it is a bit messier than

Re: Issues importing models in between apps

2010-11-30 Thread Victor Hooi
heya, Thanks to both for your advice. Yeah, you're right, it's a somewhat unwanted circular dependency. It was just the only way I could think of to deal with a somewhat unwieldy/large models.py file. Even using the string syntax, I hit a bunch of other issues, due to how tightly the two models

Re: Django, Python, AJAX position

2010-11-30 Thread Detectedstealth
If we are able to work from home then I will for sure provide my resume. Home = Canada On Nov 30, 7:37 am, Bita Bita wrote: > My client  is in an immediate need for a front end engineer who knows > Django, Python, AJAX, and/or html5 . This is a full time position with > a

Re: Loading CSS

2010-11-30 Thread Robert S
Well - that's one way A simpler way is to use your settings.py file to point to your media, and remove all reference to .css from your url.py files ... # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = '/path_to_media_root/static_media/'

Editing a many to many field in a save method

2010-11-30 Thread When ideas fail
Hi, I've got the following model and I want it so that each delivery has a default category of undefined class Delivery(models.Model): . categories = models.ManyToManyField(Category, blank = True, null = True) . Then if other categories are selected undefined is automatically

Re: Project management software

2010-11-30 Thread Baurzhan Ismagulov
On Tue, Nov 30, 2010 at 12:30:55PM -0800, tiemonster wrote: > I finally had a chance to put a demo up online: > > http://freeshell.de/~mscahill/projects/ > > Now obviously this isn't as pretty as it could be. It's meant to be > installed within an existing application. I made a half-hearted

Re: Adding extra data in annotate()

2010-11-30 Thread fgasperino
Ideally any proposed solution could also substitute the search for the newest timestamp via Max() to be the largest Value.data float with similar logic. Franco -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Current Django 1.3 Alpha 2 Documentation as PDF

2010-11-30 Thread ckar...@googlemail.com
Of course I will do upgrade the doc. BTW: Latest doc from SVN: http://ubuntuone.com/p/RY1/ On 30 Nov., 07:00, derek wrote: > Hmm.  So you're not planning to upgrade the doc when the final release > is made...?! > > On Nov 25, 4:22 pm, "ckar...@googlemail.com"

Project management software

2010-11-30 Thread tiemonster
I finally had a chance to put a demo up online: http://freeshell.de/~mscahill/projects/ Now obviously this isn't as pretty as it could be. It's meant to be installed within an existing application. I made a half-hearted effort to mock up something that would give you an idea of how it might

Re: missing object in object_list generic view

2010-11-30 Thread Andre Terra
Start by reading http://www.b-list.org/weblog/2006/nov/16/django-tips-get-most-out-generic-views/ and finish by writing one (or many!) wrapper function(s) as suggested. It will make your code 1) readable, 2) easier to debug, 3) extensible, 4) powerful, and 5) DRY. Cheers, Andre Terra On Tue,

Adding extra data in annotate()

2010-11-30 Thread fgasperino
All, I'm attempting to consolidate many orm queries into one. My models: class Key (models.Model): name = models.CharField() class Value (models.Model): data = models.FloatField() timestamp = models.DateTimeField() key = models.ForeignKey(Key) Given a list of Key names, I am able to

Re: django to php

2010-11-30 Thread Andre Terra
Because he can't drive stick. Regards, Andre Terra On Tue, Nov 30, 2010 at 16:53, CLIFFORD ILKAY wrote: > On 11/30/2010 02:26 AM, Akash Mukherjee wrote: > >> Hello, >> >> I have a webapp created in django. Now I want to convert the entire >> code into PHP. Is it

missing object in object_list generic view

2010-11-30 Thread Carlos Aboim
It's very strange, got this: urls info_dict = { 'Queryset': Obra.objects.all (), } (r'index / $ ',' django.views.generic.list_detail.object_list ', info_dict, dict (name = "obras_index", template_object_name = 'obras', paginate_by = 5)), template [...] {% For book in the works%}

Re: django to php

2010-11-30 Thread CLIFFORD ILKAY
On 11/30/2010 02:26 AM, Akash Mukherjee wrote: Hello, I have a webapp created in django. Now I want to convert the entire code into PHP. Is it possible?? If yes, how? I have a Porsche that I'd like to trade for an ox cart. Any takers? Seriously, why would you want to do that? -- Regards,

Re: Sample Auto Log Out Code

2010-11-30 Thread octopusgrabbus
Many thanks. This worked swell, and I also set the cookies expire when browser closed setting. On Nov 24, 11:39 am, Daniel Roseman wrote: > On Nov 24, 4:23 pm,octopusgrabbus wrote: > > > Sorry for the late reply. Most of my users will not

Loading CSS

2010-11-30 Thread octopusgrabbus
I am running Django 1.2.3 -- python -c "import django; print django.get_version()" I basically need to know what logs to look at to fix a css file not loading. I am trying to load a css file in my base template {% block title %}Town of Arlington Water Department AMR System{%

Re: Django timestamp to Javascript timestamp

2010-11-30 Thread Matt Thompson
Thanks for the info guys, after I slept on it I went a different way. Used a model manager that added a column to the row (p.js_timestamp = time.mktime(p.datetime.timetuple()) * 1000) Matt On 29 Nov, 18:16, Matt Thompson wrote: > Hello guys and girls, > > I'm looking to

Re: nUnrouteable address

2010-11-30 Thread Tom Evans
On Tue, Nov 30, 2010 at 5:01 PM, mangamonk wrote: > here are my email configurations in settings.py > > EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' > EMAIL_HOST = 'smtp.domain.org' > EMAIL_HOST_PASSWORD = 'password' > EMAIL_HOST_USER =

nUnrouteable address

2010-11-30 Thread mangamonk
here are my email configurations in settings.py EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.domain.org' EMAIL_HOST_PASSWORD = 'password' EMAIL_HOST_USER = 'webmas...@domain.org' EMAIL_PORT = '587' DEFAULT_FROM_EMAIL = 'webmas...@domain.org' SERVER_EMAIL =

Re: Django, Python, AJAX position

2010-11-30 Thread Brett Thomas
If nobody responded to you yesterday, you might want to revise the post with some more details, rather than just re-posting it. It's not worth most good developers' time to inquire about 2 sentence job posts that are really ambiguous... On Tue, Nov 30, 2010 at 10:37 AM, Bita Bita

Re: Django timestamp to Javascript timestamp

2010-11-30 Thread sacabuche
I forgot to get miliseconds you just have to do: datetime.getTime(); -- 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

Re: Django timestamp to Javascript timestamp

2010-11-30 Thread sacabuche
You can use this format {{date|date:"Y/m/d H:i:s"}} d = new Date("2010/11/30 09:58:25"); The problem with ms is that Javascripts accepts only two decimals so if you want to use miliseconds you can do something like this: function to_datetime(datetime){ // from python >>>

Django, Python, AJAX position

2010-11-30 Thread Bita Bita
My client is in an immediate need for a front end engineer who knows Django, Python, AJAX, and/or html5 . This is a full time position with a really good pay in Palo Alto, CA. Sent me your updated resume if interested. The candidate should have work permit. -- You received this message because

Re: Error in ajax request

2010-11-30 Thread David De La Harpe Golden
On 29/11/10 22:17, Daniel Roseman wrote: > (Actually I'm not sure that 'callable decorator' is the right term > here, but I can't think of a better one. Is there a canonical name for > this sort of thing?) PEP 318 just says "function that returns a decorator" (which is a bit of a mouthful)

Re: Javascript and template rendering problem

2010-11-30 Thread David De La Harpe Golden
On 29/11/10 20:03, Anderson Goulart wrote: > Hi, > > How can I render to a javascript code a variable set in a view? > I tried {{ variable }} but it returns nothing in the html source code. > When I put this {{ variable }} outside

Re: django to php

2010-11-30 Thread Brett Thomas
Time better spent learning django :) On Nov 30, 2010 9:24 AM, "Tom Evans" wrote: > On Tue, Nov 30, 2010 at 7:26 AM, Akash Mukherjee wrote: >> Hello, >> >> I have a webapp created in django. Now I want to convert the entire >> code into PHP. Is it

Re: django to php

2010-11-30 Thread Tom Evans
On Tue, Nov 30, 2010 at 7:26 AM, Akash Mukherjee wrote: > Hello, > > I have a webapp created in django. Now I want to convert the entire > code into PHP. Is it possible?? If yes, how? > > Thanks > > Akash > Anything is possible given enough resource. I am not aware of any

Re: Where's the form value set for comments framework/app

2010-11-30 Thread Daniel Roseman
On Nov 30, 8:31 am, photon wrote: > Mostly I followed the instruction > ofhttp://docs.djangoproject.com/en/dev/ref/contrib/comments/ > > While my code could run as expected, I cannot find when and where the > field values in "form" are set before it's called in line 4~6 of

Re: 2 paypal forms in a view with django-paypal

2010-11-30 Thread Venkatraman S
2010/11/30 Alexandre González > It always show two forms but with the last one (five_form) but the update() > works perfectly. > Try dcramer or johnboxall version of django-paypal - dcramer's is no more maintained i guess. On a different note : were you able to add

2 paypal forms in a view with django-paypal

2010-11-30 Thread Alexandre González
Hi! I like to show 2 different paypal forms using django-paypal, this is my code: def payments(request): paypal_dict = { 'amount': None, 'business': settings.PAYPAL_RECEIVER_EMAIL, 'item_name': None, 'notify_url': settings.PAYPAL_NOTIFY, 'return_url':

Where's the form value set for comments framework/app

2010-11-30 Thread photon
Mostly I followed the instruction of http://docs.djangoproject.com/en/dev/ref/contrib/comments/ While my code could run as expected, I cannot find when and where the field values in "form" are set before it's called in line 4~6 of the form.html as below. What I'm particularly interested in was

django to php

2010-11-30 Thread Akash Mukherjee
Hello, I have a webapp created in django. Now I want to convert the entire code into PHP. Is it possible?? If yes, how? Thanks Akash -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Issues importing models in between apps

2010-11-30 Thread bruno desthuilliers
On 30 nov, 07:01, Victor Hooi wrote: > Hi, > > I had an application with a fairly large models.py file, which I split > up into separate apps to make it easier to manage. This won't address your problem but FWIW, you don't have to use separate apps just to split a models.py

Re: Django - Alternative to using NULLs? (for integer and FK fields).

2010-11-30 Thread Tom Evans
On Tue, Nov 30, 2010 at 4:11 AM, Lachlan Musicman wrote: > On Tue, Nov 30, 2010 at 12:28, Victor Hooi wrote: >> Hi, >> >> I'm wondering what the community's stance on using NULL in Django is? >> >> Say for example you have: >> >>    class

Re: Issues importing models in between apps

2010-11-30 Thread Daniel Roseman
On Nov 30, 6:01 am, Victor Hooi wrote: > Hi, > > I had an application with a fairly large models.py file, which I split > up into separate apps to make it easier to manage. > > Two of the apps are called "conferences" and "people", each with their > own models.py. > > These

Re: Choices vs. ForeignKeys

2010-11-30 Thread Torsten Bronger
Hallöchen! Todd Wilson writes: > [...] > > [...] Instead of hard-coding the entity types here, you are using > a constant, presumably because you may want to introduce more > entity types later. But what are the trade-offs bewteen > representing types as CharFields with choices, as you are

admin static doesn't work

2010-11-30 Thread robos85
I've successfully managed to configure my django project on virtual server :) The only problem 1 have by now are admin static files:/ I have no rights to /usr/lib/python2.5/site-packages/django/contrib/ admin/media. I created symlink, but permissions block it's display. I there any way, to put my