Re: Returning an inclusion tagLLKKJJ

2010-09-10 Thread bruno desthuilliers
on 10 sep, 01:06, maroxe wrote: > Hi, I am suffering whereever i try to do something in django that is > not common(in django, not in python in general) > > For example, i don't know how to return an inclusion tag. This. > obviously, won't work: > > @register.inclusion_tag('template.tpl') > def my

Re: 404 handler not working on live hosting environment

2010-09-10 Thread Sithembewena Lloyd Dube
Thanks Kenneth, we were also discussing yesterday how we need to have a "safer" deployment strategy. We are using TortoiseSVN for version Control. On Fri, Sep 10, 2010 at 4:31 AM, Kenneth Gonsalves wrote: > On Thu, 2010-09-09 at 14:31 +0200, Sithembewena Lloyd Dube wrote: > > Yes, both the Djang

Re: 404 handler not working on live hosting environment

2010-09-10 Thread Kenneth Gonsalves
On Fri, 2010-09-10 at 09:55 +0200, Sithembewena Lloyd Dube wrote: > Thanks Kenneth, we were also discussing yesterday how we need to have > a > "safer" deployment strategy. > > We are using TortoiseSVN for version Control. you could look into upgrading from windows also ;-) -- regards Kenneth G

Re: How does django convert string to modules

2010-09-10 Thread Tom Evans
On Fri, Sep 10, 2010 at 1:05 AM, Bachir wrote: > The problem is not the lack of information, the real problem is that i don't > know what to search for . > > 2010/9/9 bruno desthuilliers >> >> >> On 9 sep, 03:46, maroxe wrote: >> > Hi, I am trying to understand an other magic thing about django:

Re: 404 handler not working on live hosting environment

2010-09-10 Thread Sithembewena Lloyd Dube
:) If I had my way, we'd be using Linux for dev. The design guys need Windows for all the Adobe software (although technically, there's VirtualBox, Wine et al). On Fri, Sep 10, 2010 at 10:55 AM, Kenneth Gonsalves wrote: > On Fri, 2010-09-10 at 09:55 +0200, Sithembewena Lloyd Dube wrote: > > Thank

Any Django/Python Chat application ??

2010-09-10 Thread ravi krishna
Hi, Can somebody tell me some django Chat application which can be used to embed inside a Django web application. Both private and group chat should be possible. Can u suggest some ?? -- Regards, Rav! -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Please wait page trouble

2010-09-10 Thread Bradley Hintze
I got to work! I needed a good nights sleep to see it. the url was '/DHM_run/' NOT '/run_DHM/'. Thanks Alec On Thu, Sep 9, 2010 at 4:20 PM, Bradley Hintze wrote: > Ok, cant quite get it. Here is what I have: > > please_wait.html > ... > src="Re: Please wait page trouble
Excellent. Glad you got it working. On Fri, Sep 10, 2010 at 8:54 AM, Bradley Hintze wrote: > I got to work! I needed a good nights sleep to see it. the url was > '/DHM_run/' NOT '/run_DHM/'. > > Thanks Alec > > -- You received this message because you are subscribed to the Google Groups "Djan

Deleted rows available in a transaction

I am facing a very peculiar problem that even when I delete some rows, I can just get them back again in same transaction. Edit: I have created a sample app to test it out, so that I can be sure that none of my code is culprit. I created a testapp with following code **models.py** import uu

ModelName.objects.none().update() makes changes to db

if I do nothing = ModelName.objects.none() nothing.update(status='new_status') Then all of my objects in the database get updated. I would expect nothing to happen but... is an empty QuerySet really supposed to apply changes like that? -- You received this message because you are subscribed to

custom model fields are always "modified" when saving from the admin change form

Hi. I've wrote a custom model field which splits strings by commas and returns a list of values. Everything works fine except the admin - after editing a record admin treats the custom fields as modified even if they were actually not, issuing an UPDATE query for (not modified) record and adding a

Django - Multiple columns primary key

Hello, I would like to implement multicolumns primary keys in django. I've tried to implement an AutoSlugField() which concatenate my columns values(foreignkey/dates) ... models.py : class ProductProduction(models.Model): enterprise = models.ForeignKey('Enterprise') product = models.ForeignKey(

Re: How does django convert string to modules

thanks, éthat's really an awesome explanation. thanks 2010/9/10 Tom Evans > On Fri, Sep 10, 2010 at 1:05 AM, Bachir wrote: > > The problem is not the lack of information, the real problem is that i > don't > > know what to search for . > > > > 2010/9/9 bruno desthuilliers > >> > >> > >> On 9 s

Re: Any Django/Python Chat application ??

Best thing for chat (or any push applications) is to use something like Hookbox [1] They have an example chat application, check it out. [1] http://hookbox.org/ On Sep 10, 8:26 am, ravi krishna wrote: > Hi, > > Can somebody tell me some django Chat application which can be used to embed > insid

Re: ModelName.objects.none().update() makes changes to db

On 10 sep, 11:57, David wrote: > if I do > > nothing = ModelName.objects.none() > nothing.update(status='new_status') > > Then all of my objects in the database get updated. I would expect > nothing to happen but... is an empty QuerySet really supposed to apply > changes like that? -- You rece

Re: ModelName.objects.none().update() makes changes to db

On 10 sep, 11:57, David wrote: > if I do > > nothing = ModelName.objects.none() > nothing.update(status='new_status') > > Then all of my objects in the database get updated. I would expect > nothing to happen but... is an empty QuerySet really supposed to apply > changes like that? Don't have t

Re: ANN: PyMySQL 0.3

On Sun, Sep 5, 2010 at 12:48 AM, Andy wrote: > Thanks Pete. > > I'm definitely interested in using PyMySQL for production. > > I'm interested in running Django in an async mode using gevent (http:// > www.gevent.org/). gevent provides a money patch that turns any Python > code into non-blocking. T

Facebook Comments

hi i know that this isn't a django related question, but i'm using Facebook's comment plugin and am having a strange issue. I've got it installed and you can post comments fine but they never get uploaded to facebook. Is there something you have to do to get them to post over to facebook (other t

Re: ANN: PyMySQL 0.3

On Sep 10, 11:18 am, Andy Dustman wrote: > Uh, no. > > MySQLdb releases the GIL on any blocking call, so other threads can run. > > Django is *not* asynchronous. It's threaded. The default Django behavior is threaded. But it can be made to run in async mode, where socket communication doesn't b

Re: Django - Multiple columns primary key

On Fri, Sep 10, 2010 at 7:47 PM, naoy.teruh wrote: > Hello, > > I would like to implement multicolumns primary keys in django. ... > Did I miss something ? Yes - Multicolumn primary keys aren't currently supported in Django. It's a long-standing feature request, logged as ticket #373. Yours, Rus

facebook comments

Hi group. I know this isn't purely a django question, but it is on a django website and therefore relevant. I am using the facebook comment social plug-in. It is working fine on the site but is not posting comments over to facebook. Has anyone ever run into this before? Any ideas? -- You rec

Re: PayPAL-IPN-request doesn't call the view

When I did this I dummied up a static page on the filesystem of my desktop with a suitable post (I got the fields to expect by running the server IPN was pointed at - needs to be a routeable IP - with pdb and a break point at the start of the view). Then when we wen't live, it bombed. I had been

Re: import Error

Rav, There's an environmental variable called PYTHONPATH that often tripped me up when I was learning python and django. You need to make sure that the django-chat module is on your PYTHONPATH. To check that you've properly added the app to your PYTHONPATH start up python then type `import dojang

Change variable value after a click

I'm working in a django view and I'd like to duplicate the items_rating value of myview when I click to "see more categories" in the template. All of this without refreshing the web. I think that I have to use jquery and Ajax to perform this action but I don't know how to do it. The examples I rea

Re: ModelName.objects.none().update() makes changes to db

I haven't set a custom manager as far as I'm aware. Here is what happens to me: >>> from cube.books.models import Book >>> no_books = Book.objects.none() >>> Book.objects.all().count() 1667 >>> Book.objects.filter(status='O').count() 1 >>> no_books.update(status='O') 1667 >>> Book.objects.filter(s

Re: Change variable value after a click

I don't think you can do this with a view and NOT refresh the page. To get the functionality you want you need to use AJAX (and jquery would make it easier). do some research on how to use jquery to manipulate the dom and add HTML elments to the page live. There some jquery bits out there that'll

Re: Change variable value after a click

It's definitely a good idea to gain some AJAX experience first, but on how to integrate it with Django: You'll have to write a special view to retrieve the additional elements to be displayed on the page. That's "how to do it" in general, hope it'll help you a bit Regards, Felix On 10.09.2010 22

Admin / Login / "Permission Denied" Message Dilemma

I'm a little frustrated trying to set up logins for my site. Using @permission_required, if a user is already logged in but doesn't have sufficient permissions for a particular view, they just get redirected to the login form, with no explanation. I can set up a custom login view that will give t

django simple friends help

Hi Muhuk, I am using django-simple-friends app and I was hoping someone would give me some guidance. http://github.com/muhuk/django-simple-friends I have set up friends_list.html no problem: Friend List Friends for {{ user }} {% for friends in friends_list %} {{ friends.username }} {% e

django-simple-friends help

Hi, I am using django-simple-friends app and was hoping you would give me some guidance. http://github.com/muhuk/django-simple-friends I have set up friends_list.html no problem: Friend List Friends for {{ user }} {% for friends in friends_list %} {{ friends.username }} {% endfor %}

Filter for non-True NullBooleanField

How can I filter for instances having a NullBooleanField that is not True (i.e. is either False or a null)? -- [image: Christos Jonathan Hayward] Christos Jonathan Hayward, an Orthodox Christian author. Author Bio • Books

Re: Admin / Login / "Permission Denied" Message Dilemma

On a related note, the admin login screen doesn't seem to be willing to redirect users to a "next" destination outside the admin app, which means having two separate login screens for different purposes, which doesn't make any sense at all. On Sep 10, 5:12 pm, ringemup wrote: > I'm a little fru

tracking down a login issue (django 1.2)

I'm not completely certain what is going on here, but somewhere in the authentication stuff, a bad MySQL query is being generated: ListType TupleType args [] charset 'utf8' db exc exc_info query '\n SELECT ct.`app_label`, p.`codename`\n FROM `auth_permission` p, `auth_group_permissions` gp, `

Re: Filter for non-True NullBooleanField

P.S. Setting: .filter(is_invisible__in = [False, None]) is not working as intended; I seem to be getting no matches when I should be getting matches. On Fri, Sep 10, 2010 at 4:19 PM, Christos Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: > How can I filter for instances having

tracking down a login issue (django 1.2)

I'm not completely certain what is going on here, but somewhere in the authentication stuff, a bad MySQL query is being generated: ListType TupleType args [] charset 'utf8' db exc exc_info query '\n SELECT ct.`app_label`, p.`codename`\n FROM `auth_permission` p, `auth_group_permissions` gp, `

released source code of tipsforlinux.com

Hi! I'm think the beginners can enjoy the source code... website: http://tipsforlinux.com source: http://github.com/gustavohenrique/TipsForLinux Suggestions are welcome! -- Gustavo Henrique blog.gustavohenrique.net -- You received this message because you are subscribed to the Google Groups

Re: django-simple-freinds: template tags and Friendship request

Hi Preston thanks for your response but still having problem with this: views.py (full list below) passes: extra_context['friendship_requests'] = {'incoming': incoming_requests, 'outgoing': outgoing_requests} I have tried looping through this to ex

Color code not working on admin listing table list_display.

Following http://docs.djangoproject.com/en/dev/ref/contrib/admin/ class Person(models.Model): first_name = models.CharField(max_length=50) last_name = models.CharField(max_length=50) color_code = models.CharField(max_length=6) def colored_name(self): return '%s %s' % (self

Integrating User Profile with Auth

I am following the information in the docs to add fields to maintain, in addition to the ones Auth already maintains. I'm starting with the docs here: So far, I have a model form I've created b

Re: PayPAL-IPN-request doesn't call the view

On Sep 10, 12:01 pm, Bill Freeman wrote: > > My advice is to protect everything with try or by using get, > log your progress (we had a logging model, but you can > also append to a file, wrapping everything in a try-finally > that closes the filehandle to be sure things get flushed > out), and wh

Re: How does django convert string to modules

What if was gibing a string like this: 'math.ceil', and i had to import the function(not the module) dynamically(from the string), how can i do that? import_module is for importing... modules, not functions. 2010/9/10 Bachir > thanks, éthat's really an awesome explanation. thanks > > 2010/9/10 T

Re: Staticstic app, ask for idea.

Hi, Sebastien Follow your instruction, I was able to create a Cube object and define sample_space. However, I don't know how to retrieve the measure result. Can you tell me how to do that? What do you mean by "instantiate a cube with a base queryset, and use one of the methods provided to calculat

Re: Staticstic app, ask for idea.

Also, need I define "my_float_field__range"? Thanks On Fri, Sep 10, 2010 at 6:52 PM, Lucian Romi wrote: > Hi, Sebastien > > Follow your instruction, I was able to create a Cube object and define > sample_space. > However, I don't know how to retrieve the measure result. Can you tell > me how to d

Re: Integrating User Profile with Auth

I think you just may be missing a call to get_profile() in this view. You can just do that and do a try block with an except block for DoesNotExist. That will let you know the situation you're in, whether the profile already existed or not. Also, unless I'm misreading something you're trying to pa

AW: PayPAL-IPN-request doesn't call the view

Thank you, guys. I found out what the problem was, now. It was a stupid error in my middleware, which couldn’t handle the empty referstring from paypal... now everything is working fine again -Ursprüngliche Nachricht- Von: django-users@googlegroups.com [mailto:django-us...@googlegroups.com