Re: Modify only one field

2012-02-03 Thread akaariai
On Feb 4, 9:10 am, Ashe wrote: > Is there a better solution to modify only the specified field on a > table than : > self.__class__.objects.filter(id=self.id).update(myfield='new awesome > value') > ? > I have been looking for a cleaner solution for a long time without >

Modify only one field

2012-02-03 Thread Ashe
Hello, Is there a better solution to modify only the specified field on a table than : self.__class__.objects.filter(id=self.id).update(myfield='new awesome value') ? I have been looking for a cleaner solution for a long time without success, while waiting for that (

Checklist for appreciating a project from 1.2.7 to 1.4a1

2012-02-03 Thread Alec Taylor
Good afternoon, I'm bringing the "social-commerce" project up to the latest trunk of Pinax and Django. Is there a checklist of things I'll need to update? I've begun updating it, i.e. adding the new database dictionary: DATABASES = { 'default': { 'ENGINE':

Re: djangobench results (1.4 vs 1.3)

2012-02-03 Thread akaariai
I meant to post this to django-developers. But I guess this might be interesting to django-users also, so not a big mistake... :) - Anssi On Feb 4, 3:02 am, akaariai wrote: > I just completed some runs comparing performance of 1.4 vs 1.3 using > Djangobench. There doesn't

djangobench results (1.4 vs 1.3)

2012-02-03 Thread akaariai
I just completed some runs comparing performance of 1.4 vs 1.3 using Djangobench. There doesn't seem to be any repeatable significant regressions or gains except for these two tests: Running 'url_resolve' benchmark ... Min: 0.00 -> 0.00: incomparable (one result was zero) Avg: 0.92 ->

Re: Entering Text into a Database

2012-02-03 Thread akaariai
On Feb 4, 2:21 am, ds39 wrote: > Thanks to everyone who took the time to respond. I've been looking at > the godjango website, and its been very helpful with figuring out > forms. I was able to modify some of the tutorial examples on the site, > adding form.save(), to

Re: Entering Text into a Database

2012-02-03 Thread ds39
Thanks to everyone who took the time to respond. I've been looking at the godjango website, and its been very helpful with figuring out forms. I was able to modify some of the tutorial examples on the site, adding form.save(), to successfully enter text into the database. So, I think I've found my

Re: problem installing PIL

2012-02-03 Thread Stephan
You can download PIL for all py-versions and 64bit from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil -- 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

Re: problem installing PIL

2012-02-03 Thread NENAD CIKIC
Thanks, I have downloaded the instalation and I have managed to include the Imagefield in the model. Now will try it:) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: django-mptt compared w/ django-treebeard

2012-02-03 Thread Aljoša Mohorović
On Thu, Feb 2, 2012 at 8:13 PM, creecode wrote: > I wouldn't assume that just because something hasn't been updated for awhile > that it isn't good. like i said, i've used treebeard w/o problems so i don't think it's bad. my question/interest is mostly because i've noticed

Re: import error

2012-02-03 Thread Thorsten Sanders
Did you try to add a $ after the last slash for the login, may that makes a difference for the url resolver, but dunno, just a wild guess. Am 03.02.2012 18:39, schrieb Miten: hi guys, I am doing simple app for learning. I created page and then auth protected but as I added register link to

Re: Django Snippet imports?

2012-02-03 Thread msbuck
Yes you need to put register = template.Library() in your module. See https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ for more info on where this code should reside. On Feb 3, 9:17 am, Jesramz wrote: >

import error

2012-02-03 Thread Miten
hi guys, I am doing simple app for learning. I created page and then auth protected but as I added register link to login page it errors out on import error. I think its some thing to do with setup since created new app for registration. I have shown my setup and setting and traceback at

Re: FREE Full Django Tutorial

2012-02-03 Thread yati sagade
Hi Looks really good. Appreciate the hard work man :) Already favourited it. Keep up the good work! Cheers! Yati Sagade On Fri, Feb 3, 2012 at 10:29 PM, programmersbook.com < webmas...@programmersbook.com> wrote: > Thank you for your email. I'm not quite sure what you mean, could you > please

Re: FREE Full Django Tutorial

2012-02-03 Thread programmersbook.com
Thank you for your email. I'm not quite sure what you mean, could you please elaborate? On Feb 3, 4:45 pm, Aaron Cannon wrote: > Any plans to release a video podcast? > > Aaron > > On 2/3/12, programmersbook.com wrote: > > > > > > >

Re: FREE Full Django Tutorial

2012-02-03 Thread Aaron Cannon
Any plans to release a video podcast? Aaron On 2/3/12, programmersbook.com wrote: > Hi All, > > I created a full django turtorial screencast, so far 25, every week > I'm adding one more. > > http://www.youtube.com/playlist?list=PL385A53B00B8B158E=view_all > > Let

Re: Django Snippet imports?

2012-02-03 Thread Jesramz
source: http://djangosnippets.org/snippets/847/ from django.contrib.auth.models import User, Group from django.utils.encoding import force_unicode from django import template Missing anything? Would I have to use 'register = template.Library()' ? -- You received this message because you are

Re: Help Me With omab/django-socialauth

2012-02-03 Thread Matías Aguirre
Django-social-auth (note the hyphen ;)) uses LOGIN_URL as the URL to redirect in case of errors if LOGIN_ERROR_URL is not defined, you might be getting an error and being redirected to your LOGIN_URL and as your value is /login/twitter/ you are restarting the process again. Another possible flaw

Re: Help Me With omab/django-socialauth

2012-02-03 Thread coded kid
Yes, I've tried it. What's the main url you guys put in your LOGIN_URL? Because mine is '/login/twitter/' thats where the problem is. On Feb 3, 10:46 am, Kevin wrote: > Did you take a look at the example project? > >

Re: Views in django

2012-02-03 Thread Weldan
Calculate in view, in template should print values . Can group it in dict i think. On Feb 3, 2012 10:39 PM, "Sandeep kaur" wrote: > On Fri, Feb 3, 2012 at 7:52 PM, Weldan wrote: > > Entries.objects.count() > > > That will be applicable if I want to

Re: Views in django

2012-02-03 Thread Sandeep kaur
On Fri, Feb 3, 2012 at 7:52 PM, Weldan wrote: > Entries.objects.count() > That will be applicable if I want to his for only 1 table's entry. But here I have views as : cd = form.cleaned_data name_and_address =

Re: Views in django

2012-02-03 Thread Weldan
Entries.objects.count() On Feb 3, 2012 10:12 PM, "Sandeep kaur" wrote: > Can I apply some operations on the views ( of database) that are > created by me? Eg: to do sum of some filtered entries. If yes, then > how? > > -- > Sandeep Kaur > E-Mail: mkaurkha...@gmail.com >

Views in django

2012-02-03 Thread Sandeep kaur
Can I apply some operations on the views ( of database) that are created by me? Eg: to do sum of some filtered entries. If yes, then how? -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups

Re: Rooting my application at the base (/) of the URL

2012-02-03 Thread Daniel Roseman
On Thursday, 2 February 2012 20:14:57 UTC, Johan wrote: > > Hi > > I have deployed my application on Apache using WSGI, using > WSGIScriptAlias / /var/www/site/django.wsgi. Everything looks very > good. My actual application lives at http:///application. So > with the setup above when I

FREE Full Django Tutorial

2012-02-03 Thread programmersbook.com
Hi All, I created a full django turtorial screencast, so far 25, every week I'm adding one more. http://www.youtube.com/playlist?list=PL385A53B00B8B158E=view_all Let me know what you think. Best, -- You received this message because you are subscribed to the Google Groups "Django users"

Error in code send Email

2012-02-03 Thread Abhishek Srivastava
Hi All, import smtplib mail="[hidden email]"; subject="Hai"; msg = 'Some Text'; smtp_server = smtplib.SMTP( 'mail.%s' % mail.split( '@' )[-1] ) smtp_server.sendmail( mail , [ mail ] , 'Subject: %s\n' % subject + 'To: %s\n' % mail + '\n' + msg ) I am using above code to send an Email, for this

Error in code in send Email

2012-02-03 Thread Abhishek Srivastava
Hi All, I am using below given code to send email. When i am running this code, i am getting "You are not currently sending out real email. If you have sendmail installed you can use it by using the server with -- enable_sendmail" message on console. I am totally unable to solve this issue.

Error in send Email

2012-02-03 Thread Abhishek Srivastava
Hi All, I am using below given code to send email. When i am running this code, i am getting "You are not currently sending out real email. If you have sendmail installed you can use it by using the server with -- enable_sendmail" message on console. I am totally unable to solve this issue.

Re: Need help regarding url patterns

2012-02-03 Thread akaariai
On Feb 3, 2:50 pm, ankitrocks wrote: > Hi. > Thanks for replying. > > The reason  I used login/logout multiple times in the urls.py because > i was unable to redirect from polls/03/logout to polls/login. When I > am using href="../logout" , it works but sometimes when I

Re: Need help regarding url patterns

2012-02-03 Thread ankitrocks
Hi. Thanks for replying. The reason I used login/logout multiple times in the urls.py because i was unable to redirect from polls/03/logout to polls/login. When I am using href="../logout" , it works but sometimes when I am in level-2 in doesnt work. Please ignore the parameters of poll id in

Re: Rooting my application at the base (/) of the URL

2012-02-03 Thread bruno desthuilliers
On Feb 2, 9:14 pm, Johan wrote: > Hi > >   I have deployed my application on Apache using WSGI, using > WSGIScriptAlias / /var/www/site/django.wsgi. Everything looks very > good. My actual application lives at http:///application. So > with the setup above when I browse to

Re: Help Me With omab/django-socialauth

2012-02-03 Thread Kevin
Did you take a look at the example project? https://github.com/omab/django-social-auth/tree/master/example Compare it with your own project, or even use this example project as a base for your own project. If all your urls.py contains is "url(r'', include('social_auth.urls')), " and no other

Re: django-mptt compared w/ django-treebeard

2012-02-03 Thread Matt Stevens
*I used django-mptt (combined with FeinCMS's TreeEditor) on a few of my Django sites, it's brilliant.* *Any questions I've had have been quickly answered, usually by the maintainer** Craig de Stigter… he's pretty sharp.* * * * * *Matt. Stevens | www.dirtymonkey.co.uk* On Wed, Feb 1, 2012 at 5:46

how do I model an auto-populate name from admin authorised users list

2012-02-03 Thread Krondaj
Hi, I have written a model for a web form (of sorts) I'm making that people can fill in from the admin site. I have set permissions from the admin end so they can only write or change new posts of the form (see http://dpaste.org/BZ5Nm/). it's still work in progress but I have two problems.

Re: about QuerySet

2012-02-03 Thread akaariai
On Feb 3, 5:52 am, newme wrote: > so it means when i call user[1] after user[0], it is possible that i > will get same record if someone else insert a new record into database > between 2 calls. Actually, there doesn't need to be an insert between the calls if you don't

Re: I need a package.

2012-02-03 Thread Donald Stufft
https://github.com/eldarion/user_messages On Friday, February 3, 2012 at 3:16 AM, coded kid wrote: > Anyone knows about a django package that can be use by users to send > private messages to each other? -- You received this message because you are subscribed to the Google Groups "Django

I need a package.

2012-02-03 Thread coded kid
Anyone knows about a django package that can be use by users to send private messages to each other? -- 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

Re: Help Me With omab/django-socialauth

2012-02-03 Thread coded kid
Just keep getting redirect error. My Api keys are correct. Do you use the same LOGIN URL with the one above? Whats the main login url to twitter auth form? On Feb 2, 5:23 pm, Thorsten Sanders wrote: > I took your config and its working fine, maybe your twitter api key

Re: south create_table doesn't work

2012-02-03 Thread Anoop Thomas Mathew
Hi, May be you are asking at the wrong place. Please check it in south mailing list history, you should be able to find an answer. http://groups.google.com/group/south-users/search?group=south-users=create_table_g=Search+this+group Thanks, Anoop atm ___ Life is short, Live it hard. On 3