Diamanda Wiki support and some django tutorials :)

2006-10-19 Thread [EMAIL PROTECTED]
My site: http://www.rkblog.rk.edu.pl is online now and you can find there support for diamanda wiki and myhtyboard forum and some django tutorials like django on nginx and cherokee. PS. A big thanks to Lawgon for all the help with configs and hosting :) --~--~-~--~~~

Re: getting max and min

2006-10-19 Thread DavidA
Russell Keith-Magee wrote: > On 10/19/06, zenx <[EMAIL PROTECTED]> wrote: > > > > I want to get the maximum and the minimum values of various numbers. Is > > the following method the best way to do it? > > The most efficient way would be to use SQL; this way, the min and max > would fall out as t

Re: Re: AbstractSearching and django.core.extensions?

2006-10-19 Thread Matthew Flanagan
Will, Can you post your model and SearchDefinition for it? On 20/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am using the django trunk (updated roughly twice a week). When I do a > test server run(i usually use apache) it says pre-.96 so I think its > the dev version. In case this

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread Malcolm Tredinnick
Hi Nick, On Thu, 2006-10-19 at 18:48 -0700, [EMAIL PROTECTED] wrote: > Malcolm , > Thanks for you for your contributions, your presence on this project > really makes a positive difference. > > > It's already "ready" and able to be used. Chris keeps his branch in sync > > with trunk regularly

unique_together

2006-10-19 Thread Seemant Kulleen
Hi All, RajeshD gave me a great pointer to the unique_together directive. So I tried it in my model: class Scripture( models.Model ): book = models.CharField (maxlength = 2, choices = constants.BIBLE_BOOKS) chapter = models.IntegerField () from_verse = models.IntegerField () to_

Re: Complex Application Security Model

2006-10-19 Thread [EMAIL PROTECTED]
Malcolm, Ian brought up the same point, and I tried to address it on the "Third Attempt" version of this thread. I was having difficulty posting threads to Google Groups, and ended up with multiple posts. Again I apologize for that. --Nick --~--~-~--~~~---~--~

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread [EMAIL PROTECTED]
Malcolm , Thanks for you for your contributions, your presence on this project really makes a positive difference. > It's already "ready" and able to be used. Chris keeps his branch in sync > with trunk regularly and is extremely responsive to fixing bugs. It will > be merged when we have had a

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread [EMAIL PROTECTED]
> here is what I hear you saying. > > you'd rather write your own code to do the same/similar thing to what > chris > has already done (and also what has a high chance of getting merged > in the > coming months). What I'm trying to say, is that I was working to implement something that wouldn't i

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 16:40 -0700, Noah wrote: > This sort of thing is asked for time and time again, is there any idea > when Chris' code will be ready? It's already "ready" and able to be used. Chris keeps his branch in sync with trunk regularly and is extremely responsive to fixing bugs. It wi

Re: django says psycopg can't find libpq.so.4

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 15:12 -0700, carlwenrich wrote: > It works if I put postgresql in /usr (instead of the default > /usr/local/pgsql). Someone might want to include some documentation > about this. This is a standard system administration issue, not a Django issue and there is a limit to how l

Re: AbstractSearching and django.core.extensions?

2006-10-19 Thread [EMAIL PROTECTED]
I am using the django trunk (updated roughly twice a week). When I do a test server run(i usually use apache) it says pre-.96 so I think its the dev version. In case this might be more helpful here is the last traceback entry. -- # \stuff\search\helpers.py in get_id_list 31. for ro

Re: Django emailing the administrators

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 09:45 -0700, Rob Hudson wrote: > I set up comments on my blog and want them to be emailed to me so I > know when I get traffic. Is there something in the comments framework > to do this easily? > > I'm looking at the code and PublicFreeCommentManipulators.save() > doesn't h

Re: Complex Application Security Model

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 19:23 +, [EMAIL PROTECTED] wrote: > All, > I'm trying to add some security features in my application that would > provide the following functionality: > > 1)Isolate each instance of an object from other users. For example, if > users A, B, & C create schedules, they s

Re: Order of request - sessions processing ?

2006-10-19 Thread Malcolm Tredinnick
On Wed, 2006-10-18 at 11:32 +, orestis wrote: > OK, I'm having a silly problem: > > In one view I set a property in the user's session. > Then, in the template returned by the same view, a custom template tag > queries the database Session objects and displays a message depending > on the pro

Re: FastCgi / PostgreSQL: FATAL: Ident authentication failed for user "user_name"

2006-10-19 Thread Malcolm Tredinnick
On Wed, 2006-10-18 at 02:29 +, binberati wrote: [...] > OperationalError at / > FATAL: Ident authentication failed for user "user_name" > -- > > Surprisingly, I can succesfully connect to the db using either: > > - psql - PostgreSQL int

Re: Problem: Python search path - module order

2006-10-19 Thread Chris Lee-Messer
I know almost nothing about setuptools, but you may be able to do: python setup.py develop from your svn directory to tell setuptools to use the trunk. Otherwise, you need to manipulate your python search path either in the shell or in code. --~--~-~--~~~---~--~

Re: Re: AbstractSearching and django.core.extensions?

2006-10-19 Thread Matthew Flanagan
Hi Will, Are you using the 0.95 release or the latest development version? If you are using 0.95 then it has a bug that was fixed in the development version only a few hours after the 0.95 release was made (0.95 was branched from changeset 3489 and the bug was fixed it changeset 3490). Using the

Re: getting max and min

2006-10-19 Thread Russell Keith-Magee
On 10/19/06, zenx <[EMAIL PROTECTED]> wrote: > > I want to get the maximum and the minimum values of various numbers. Is > the following method the best way to do it? The most efficient way would be to use SQL; this way, the min and max would fall out as the result of a single query. Unfortunate

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread Noah
This sort of thing is asked for time and time again, is there any idea when Chris' code will be ready? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: Django color picker -- ColorField?

2006-10-19 Thread Noah
I'd totaly be interested in that. If someone wanted to write the appropriet code it would also be useful to be able to filter by related colors somehow. On Oct 15, 1:03 pm, "inquis" <[EMAIL PROTECTED]> wrote: > Is there any interest in a Django field type that will accept and > validate a set of

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread Ian Holsman
On 20/10/2006, at 9:01 AM, [EMAIL PROTECTED] wrote: > > Hi Ian, > This is very similar to what Chris has done. The issue is that his > code hasn't been merged with Trunk, which puts me in an awkward > position in terms of adopting it for something that is outside the > scope of a test applica

Re: getting max and min

2006-10-19 Thread sago
zenx wrote: > hi, > > just tried this but doesn't work: > > q = ArtistaTag.objects.all() > nums=[''] > for tag in q: > num = tag.artista_set.count() > nums.append(num) > > max_art = max(nums) > min_art = min(nums) > > i get a TypeError unsupported operand type(s) for -: 's

Re: getting max and min

2006-10-19 Thread Don Arbow
On Oct 19, 2006, at 3:21 PM, zenx wrote: > > hi, > > just tried this but doesn't work: > > q = ArtistaTag.objects.all() > nums=[''] > for tag in q: > num = tag.artista_set.count() > nums.append(num) > > max_art = max(nums) > min_art = min(nums) > > i get a TypeError unsuppo

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread [EMAIL PROTECTED]
Hi Ian, This is very similar to what Chris has done. The issue is that his code hasn't been merged with Trunk, which puts me in an awkward position in terms of adopting it for something that is outside the scope of a test application. I started working on a solution to this problem a few month

Re: database querying

2006-10-19 Thread [EMAIL PROTECTED]
Thanks this was what i was searching for, richard --~--~-~--~~~---~--~~ 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 g

Re: getting max and min

2006-10-19 Thread zenx
hi, just tried this but doesn't work: q = ArtistaTag.objects.all() nums=[''] for tag in q: num = tag.artista_set.count() nums.append(num) max_art = max(nums) min_art = min(nums) i get a TypeError unsupported operand type(s) for -: 'str' and 'long' :( --~--~-~-

Re: django says psycopg can't find libpq.so.4

2006-10-19 Thread carlwenrich
It works if I put postgresql in /usr (instead of the default /usr/local/pgsql). Someone might want to include some documentation about this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread Ian Holsman
Hi Nick. can you tell me how this is different that the stuff Chris Long worked on in his branch? It seems very similar. regards Ian. On 20/10/2006, at 6:24 AM, [EMAIL PROTECTED] wrote: > > Note: I have tried to post this two other time, but the thread wasn't > added to the group. I apologi

Re: Template tags

2006-10-19 Thread Zak Johnson
Tool69 wrote: > The problem is that it's returning the first 10 blog entries, not the > 10 lasts. Make sure your blog.Post class has an inner Meta class with an ordering property. See: http://www.djangoproject.com/documentation/model_api/#ordering http://www.djangoproject.com/documentation/mode

django says psycopg can't find libpq.so.4

2006-10-19 Thread carlwenrich
I checked, and it's in /usr/local/pgsql/lib where it belongs. --~--~-~--~~~---~--~~ 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 f

Re: Django Hosting

2006-10-19 Thread Ian Holsman
I've been using webfaction for a couple of months, and haven't had any issues. their machines stay up, service is prompt and helpful, and the machines themselves appear lightly loaded too. what else can u ask for? --I On 20/10/2006, at 6:41 AM, ian wrote: > > yes, after remi posted here a

Re: database querying

2006-10-19 Thread Zak Johnson
[EMAIL PROTECTED] wrote: > Is there a way to combine objects.filter with objects.latest ? objects.filter returns a QuerySet: Info.objects.filter(lab_id=100).latest('dtm_insert') -Zak --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: getting max and min

2006-10-19 Thread Don Arbow
On Oct 19, 2006, at 5:03 AM, zenx wrote: > > I want to get the maximum and the minimum values of various > numbers. Is > the following method the best way to do it? Python already has min and max functions available. Just feed as many values in a tuple and it will return the min or max value

To be happy in the temporal world and in the eternal abode :)

2006-10-19 Thread The truth
hi everybody in this group i just want from everyone to visit these websites if he -she want to be happy in the temporal world and in the eternal abode :) discover Islam yourselves if u want there is hardly any place on earth today where Islam is totally unknown.More and more people have become

Re: Django Hosting

2006-10-19 Thread ian
yes, after remi posted here a while back i took the plunge with webfaction. I have a couple of sites up and running now and i haven't had any problems or had to talk to anyone...really excellent stuff +1 webfaction []'s -- Ian Lawrence Centre for Bioinformatics INSTITUTO NACIONAL DE PESQUISAS DA

Re: Integration of globalization data in Django/TurboGears

2006-10-19 Thread GinTon
Thanks Nick! It has been a work very hard from 2 to 3 months without stopping. But when it is full integrated in Django I'll feel better and I'll know that it has been worth the effort. If you can cantribute in something then join to the group --~--~-~--~~~---~--~--

creating generic "forms"

2006-10-19 Thread ashwoods
the admin code generates the forms dynamically based on the model. is this funcionality "standardized" somehow to use in apps? thanks, ashley --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

(Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread [EMAIL PROTECTED]
Note: I have tried to post this two other time, but the thread wasn't added to the group. I apologize if this shows up multiple times on the list. I just want to make sure that it's being sent out. --

newbie custom permission problems

2006-10-19 Thread [EMAIL PROTECTED]
Hi, I'm a newbie of django user, I follow the django document to create custom permissions: class USCitizen(models.Model): # ... class Meta: permissions = ( ("can_drive", "Can drive"), ("can_vote", "Can vote in elections"), ("can_drink", "Can dr

application specific model question

2006-10-19 Thread [EMAIL PROTECTED]
Hi, I'm developing an application that will house various statistics for country by country comparisons. Whats the best way to represent this data using django's models? For example, each country is likely to have the same variables, eg pop, avg age, birth rate, etc. but these variables might ch

Order of request - sessions processing ?

2006-10-19 Thread orestis
OK, I'm having a silly problem: In one view I set a property in the user's session. Then, in the template returned by the same view, a custom template tag queries the database Session objects and displays a message depending on the property set before. However, this doesn't work the first time.

Problem: Python search path - module order

2006-10-19 Thread aznach
Hello! I have a shared hosting account at GrokThis.net and have a problem with the module order of the Python search path. I'd like to use django's svn trunk instead of the "Django-0.95-py2.4.egg" provided in site-packages. The problem is that the "django egg" gets preference over the "django s

Picture uploads

2006-10-19 Thread Mary
Dear Django Team ; is there a way that i can make inserting a picture as a drag and drop ex:If i want to insert a picture in a certain field i have to just drag and drop it easilly to the place i want and it goes with its path easilly or at least is there a way that i can see all the pictures th

Complex Application Security Model

2006-10-19 Thread [EMAIL PROTECTED]
All, I'm trying to add some security features in my application that would provide the following functionality: 1)Isolate each instance of an object from other users. For example, if users A, B, & C create schedules, they should only be able to act on there own schedules by default. 2)Grant Spe

Re: creating generic "forms"

2006-10-19 Thread RajeshD
On Oct 19, 4:09 pm, "ashwoods" <[EMAIL PROTECTED]> wrote: > the admin code generates the forms dynamically based on the model. is > this funcionality "standardized" somehow to use in apps? > If you mean the creation of the HTML for the forms, the answer is no. Django will, however, create object

Re: AbstractSearching and django.core.extensions?

2006-10-19 Thread [EMAIL PROTECTED]
Matthew, this is the error I was talking about in the last post I made: Request Method: GET Request URL:http://myip/conception/search/ Exception Type: AttributeError Exception Value:'NoneType' object has no attribute 'objects' Exception Location: \stuff\search\hel

database querying

2006-10-19 Thread [EMAIL PROTECTED]
Hello Django users, I'm a newby in using django and in need of some help with querying the database. Is there a way to combine objects.filter with objects.latest ? I need that for the following model. In this model there is a oppurtunity to have multiple lab_id. And also a oppurtunity to have m

Django color picker -- ColorField?

2006-10-19 Thread inquis
Is there any interest in a Django field type that will accept and validate a set of RGB color values? It could be represented in the Django admin using a Javascript color picker. Has this been done before? My searches were all for naught. --~--~-~--~~~---~--~~

Template tags

2006-10-19 Thread Tool69
Hi, I followed the B-List article to write better template tags: http://www.b-list.org/weblog/2006/06/07/django-tips-write-better-template-tags So, I've made a blog_posts.py file : --- from django.template import Library, Node from django.db

getting max and min

2006-10-19 Thread zenx
I want to get the maximum and the minimum values of various numbers. Is the following method the best way to do it? for tag in q: num = tag.artista_set.count() if num_ant: if num < num_ant: min_art = num else:

FastCgi / PostgreSQL: FATAL: Ident authentication failed for user "user_name"

2006-10-19 Thread binberati
Hi, I have a strange problem running Django on a GrokThis.net shared hosting account: Environment: -- Apache/2.0.59 (Unix) mod_fastcgi/2.4.2 PostgreSQL 8.1.3 -- settings.py:

Re: Integration of globalization data in Django/TurboGears

2006-10-19 Thread [EMAIL PROTECTED]
Gin, This is a great contribution! I have been working on the globalization problem for awhile and may also contribute what I have as well. I know there are allot of people out there that need, or will need this functionality. With the global nature of the Django communtiy, I'm supprised that

Re: Signal Code Failing - Can anybody see where I've gone wrong.

2006-10-19 Thread MerMer
Zak, Many thanks - exactly what's required. In hindsight its so obvious - I don't know why I was making such heavy weather of it! Cheers MerMer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: AbstractSearching and django.core.extensions?

2006-10-19 Thread [EMAIL PROTECTED]
nice. thanks for the help. I'm still getting another error, though. notice: for anyone doing this and using the search definitions example of AbstractSearching from Georg's page remember to change the line from django.models.core import sites to from django.contrib.sites.models import Site to w

Re: Import issue using signals.py

2006-10-19 Thread Waylan Limberg
On 10/19/06, MerMer <[EMAIL PROTECTED]> wrote: > > > > The quick fix here is to replace that line with > > > > from mysite.promotions import signals > > > > The quick fix here didn't work. I would then get > "update_review_average is undefined." Right, however `signals.update_review_aver

Integration of globalization data in Django/TurboGears

2006-10-19 Thread GinTon
I have created several tables in CSV format with globalization data (G11n). There are tables for countries, areas, languages, countries & languages, time zones, phones. And they are licensed under a Creative Commons license. http://svn.webda.python-hosting.com/trunk/G11n_data/ I created a new di

Re: Django Hosting

2006-10-19 Thread ogghead
They're in Texas, not the UK, but here's another vote for webfaction.com. The limits on long-running processes Chris sites below are quite fair for webhosts I've looked at, and you can set up Rails/Mongrel in addition to Django, TurboGears, subversion + Trac over https, really anything quite easi

Re: Signal Code Failing - Can anybody see where I've gone wrong.

2006-10-19 Thread Zak Johnson
MerMer wrote: > I must be making some rookie mistake, but I can't work out why its not > working. The code fails to return anything for the line p_qs= > Promotion.objects.filter(id=promotion_id) and therefore the index on > the next line is out of bounds. > > def update_review_average(sender,ins

Re: Django Hosting

2006-10-19 Thread Hollywood Cole
Just yesterday I switched from webfaction to rimuhosting. Webfaction is really good and really easy to get django started. The control panel is good at installing applications for you if/when you don't fell like going through the install. The reason I switched to rimuhosting is because I also wante

Re: Alternate colors - when returing a list.

2006-10-19 Thread Clint Ecker
This is much less ugly, IMO: ... Obviously your version can be changed from 2 to 4 and highlight ever 4th line, but I think that cycle does the job for 99% of people. Clint On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Cycle is interesting (haven't used it), but here's how I do

Re: making the default webserver multithreaded

2006-10-19 Thread Istvan Albert
It's actually the same class as before only that it now also inherits from ThreadingMixIn as well. This overrides one method of the original class and makes it process each request in a separate thread. See the docstrings in the SocketServer.py module of your python installation. It is not a th

Re: Django emailing the administrators

2006-10-19 Thread Rob Hudson
James Bennett wrote: > A while back I wrote up how to do that, and a few other useful hacks > to the comment system: > > http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment I'll benefit from reading your other tips as well. Akismet is on my list to figure out as well. Very n

Re: Django emailing the administrators

2006-10-19 Thread James Bennett
On 10/19/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > I set up comments on my blog and want them to be emailed to me so I > know when I get traffic. Is there something in the comments framework > to do this easily? A while back I wrote up how to do that, and a few other useful hacks to the commen

Re: Alternate colors - when returing a list.

2006-10-19 Thread Don Arbow
On Oct 19, 2006, at 7:35 AM, [EMAIL PROTECTED] wrote: > > Cycle is interesting (haven't used it), but here's how I do it: Works > well, and it appears to me it may have some advantages over cycle. > > Note that cycle is not restricted to just two rows, you can have as many alternating colors

Re: Django Hosting

2006-10-19 Thread Jeremy Dunck
On 10/19/06, kwe <[EMAIL PROTECTED]> wrote: > > Hi DuncanM, > > I'm happy using http://rimuhosting.com/ with a UK based VPS setup. +1 for rimu. I have 2 VPS's with them, their support is outstanding, and the have an Ubuntu VPS image. --~--~-~--~~~---~--~~ You rec

Django emailing the administrators

2006-10-19 Thread Rob Hudson
I set up comments on my blog and want them to be emailed to me so I know when I get traffic. Is there something in the comments framework to do this easily? I'm looking at the code and PublicFreeCommentManipulators.save() doesn't have a call to mail_managers(). But I wasn't sure if there were a

Re: making the default webserver multithreaded

2006-10-19 Thread Rob Hudson
Could you explain what this is doing? It looks like you're defining a new HTTPServer class which overrides the one being used as a parent class to WSGIServer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Type Error __str__returned non-string(type long) - while using Admin

2006-10-19 Thread MerMer
I've managed to sort it... I had inadvertantly set one of the classes to def __str__(self): return self.id which obviously caused the conflict. Apologies for wasting anybody's time. MerMer --~--~-~--~~~---~--~~ You received this message because you are

Re: Django Hosting

2006-10-19 Thread sjzabel
Hi Duncan, I have been happy with the US based webfaction.com Stephen On Oct 19, 8:07 am, "DuncanM" <[EMAIL PROTECTED]> wrote: > I've looked through the hosting recommendations on the django site and > can't find any uk based django providers, could anyone suggest any? > > I'm also looking for r

mod_python configuration problem (apache 2.2.2/mod_python 3.2.10)

2006-10-19 Thread Tipan
I'm a newbie to the Django/Python environment and have been working through the tutorials on the project site using the lite server - works fine. I now want to run the same projects on an Apache server using mod_python on a Windows PC. I've followed the installation instructions and have mod_pyth

Re: Django Hosting

2006-10-19 Thread kwe
Hi DuncanM, I'm happy using http://rimuhosting.com/ with a UK based VPS setup. Kevin --~--~-~--~~~---~--~~ 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@googlegr

making the default webserver multithreaded

2006-10-19 Thread Istvan Albert
Add this to core/servers/basehttp.py import SocketServer, BaseHTTPServer class HTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): pass right before the WSGI server definintion (line 500 or so) class WSGIServer(HTTPServer): """BaseHTTPServer that implements the Pyth

Type Error __str__returned non-string(type long) - while using Admin

2006-10-19 Thread MerMer
All of a sudden I am getting the following errors (see below), when I try and select "Promotions" from the admin area. I've no idea what this means or how to fix it... can anybody provide any suggestions? It's turning into a bad day for me and Django. As a newbie to Django and Python and and

ANN: Chesspark - A django based online chess community.

2006-10-19 Thread Christopher Zorn
I would like to announce a django based online game called Chesspark. Chesspark is an online chess community. You can chat, play games, meet new friends, do puzzles, and many other things. The whole system is built upon Jabber and uses Django for its website. Django is also used extensively in

Re: Alternate colors - when returing a list.

2006-10-19 Thread coulix
cycle around css class name. --~--~-~--~~~---~--~~ 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 group, send email to [EM

ANN: New Django forum at WebFaction

2006-10-19 Thread Remi
Hello everyone, There is now a new Django forum at WebFaction. Even though it is specific to the WebFaction setup, most of the content can still be useful to the community. The forum is available here: http://forum.webfaction.com/viewforum.php?id=19 Remi WebFaction - Hosting for an agile web h

Re: Alternate colors - when returing a list.

2006-10-19 Thread [EMAIL PROTECTED]
Cycle is interesting (haven't used it), but here's how I do it: Works well, and it appears to me it may have some advantages over cycle. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Signal Code Failing - Can anybody see where I've gone wrong.

2006-10-19 Thread MerMer
I am trying to update a Promotion field through a signal sent when a Review field is updated. Review has a many-to-one relationship with Promotion. I must be making some rookie mistake, but I can't work out why its not working. The code fails to return anything for the line p_qs= Promotion.ob

Re: Import issue using signals.py

2006-10-19 Thread MerMer
> The quick fix here is to replace that line with > > from mysite.promotions import signals > The quick fix here didn't work. I would then get "update_review_average is undefined." However, many thanks for the explanation, I'll go through it and if I have further questions come back.

Full-time / Part-time work and business from home - India.

2006-10-19 Thread Anil Madhav Sanapala
Hi, Anybody looking for part-time or full time income from the range of Rs 1,000/- to Rs 50,000/-, please mail me at [EMAIL PROTECTED] Interested people can also call me at 9886218818, Bangalore. No Educational Qualifications are need in specific. Students are also allowed in the part-time oppo

Re: Re: inspect and multiple primary keys

2006-10-19 Thread Russell Keith-Magee
On 10/19/06, flynnguy <[EMAIL PROTECTED]> wrote: > > Yes, but don't I still need to specify a primary key in django? Yes you do, but you can nominate any field in your model as the primary key - you don't have to use 'id'. If you add a primary_key=True argument to the definition of any field, it

Re: Todo application -- where it is?

2006-10-19 Thread DavidA
Guillermo Fernandez Castellanos wrote: > That's it, thanks! > > G > > On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Here is a link to the Django Powered Sites: > > > > > > http://code.djangoproject.com/wiki/DjangoPoweredSites#Variousapplications > > > > Look for WorkStyle. Th

Django Hosting

2006-10-19 Thread DuncanM
I've looked through the hosting recommendations on the django site and can't find any uk based django providers, could anyone suggest any? I'm also looking for reliable cheap django hosting (based anywhere) if anyone has some suggestions. Thanks, DuncanM --~--~-~--~~~--

Re: inspect and multiple primary keys

2006-10-19 Thread flynnguy
Russell Keith-Magee wrote: > However, as suggested in the ticket, you can work around the problem > by hand writing the schema yourself (or, in your case, inheriting some > schema from elsewhere), then writing a Django model that replicates > everything in your schema _except_ the mutliple primary

Re: Import issue using signals.py

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 05:27 -0700, MerMer wrote: > Malcom, many thanks. > > I have to admit as a newbie to Python and Django and I dont' fully > understand how "import" works. I just presumed that you put a > reference to any module at the top. You can. But you aren't referring to a module, you

Re: Import issue using signals.py

2006-10-19 Thread MerMer
Apologies but "from mysite.promotions.signals import update_review_average" should read "from mysite.products.signals import update_review_average" MerMer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: mnemosyne - a django wiki

2006-10-19 Thread [EMAIL PROTECTED]
It looks nice :) does it have diffs ? I see only old versions --~--~-~--~~~---~--~~ 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 f

Re: Populating Menu from db

2006-10-19 Thread Kenneth Gonsalves
On 19-Oct-06, at 5:51 PM, DuncanM wrote: > "Under 11's", "Adults" etc. These team names would be stored in a > table say called Teams or something similar, is it possible, and easy > to accomplish so that any changes to the database also reflect in the > menu. write a custom template tag. --

Re: Populating Menu from db

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 05:21 -0700, DuncanM wrote: > Hi there, sorry if this is a repeated question I tried searching and > didn't find any direct answers to my question so any help is > appreciated. Using Django is it possible to have a menu option > populated from a database for example: > > I

Re: Import issue using signals.py

2006-10-19 Thread MerMer
Malcom, many thanks. I have to admit as a newbie to Python and Django and I dont' fully understand how "import" works. I just presumed that you put a reference to any module at the top. At the top of the product.models.py file I have the following:- "from mysite.promotions.signals import updat

Populating Menu from db

2006-10-19 Thread DuncanM
Hi there, sorry if this is a repeated question I tried searching and didn't find any direct answers to my question so any help is appreciated. Using Django is it possible to have a menu option populated from a database for example: I have a menu with the option "Teams" when clicked on it would s

Re: Re: Webservices using Django

2006-10-19 Thread Jure ÄŒuhalev
On 10/18/06, adamjspooner <[EMAIL PROTECTED]> wrote: > > > > SOAP is what I was after. If I used SOAPpy could I still import the > > > django model stuff in the SOAP service script? > > > > Take a look at this ticket: http://code.djangoproject.com/ticket/552 > > > > It works quite well if you want

Re: Import issue using signals.py

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 04:32 -0700, MerMer wrote: > I've tried to set up a signals.py file in the same directory as my app > ("products"). > > At the top of the signals.py I have the following import statement: > > from myapp.products.models import Product, Review > > The two model classes (Prod

Import issue using signals.py

2006-10-19 Thread MerMer
I've tried to set up a signals.py file in the same directory as my app ("products"). At the top of the signals.py I have the following import statement: from myapp.products.models import Product, Review The two model classes (Product and Review) both sit in the models.py in the products directo

Re: templatetags: returning more information of every object in a list of objects (not only the objects)

2006-10-19 Thread zenx
thanks! just tried that way and everythings works. Thank you, Malcolm! --~--~-~--~~~---~--~~ 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 uns

Re: Dojo vs Mochikit for Django dev?

2006-10-19 Thread Enquest
I would certainly look at jquery.com ! it's amazing Op di, 17-10-2006 te 11:53 -0700, schreef iain duncan: > I have not dug into either Dojo or Mochikit yet and am wondering if one > is more suited to Django dev than the other for adding AJAX type bells > and whistles. Pros and Cons of either? >

Re: mnemosyne - a django wiki

2006-10-19 Thread David Larlet
2006/10/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi folks, > > Over the past few months I've been building a personal wiki system in > Django (er... a bit longer than that, it started out pre-MR). It's > slightly different to the Diamanda wiki (http://www.rk.edu.pl/), in > that it's more of

Re: templatetags: returning more information of every object in a list of objects (not only the objects)

2006-10-19 Thread Malcolm Tredinnick
On Thu, 2006-10-19 at 09:18 +, zenx wrote: > Hi, > I have a templatetag that returns a lists of objects. The problem is I > want to include another information for every object: I want to include > the number of related objects for every object of a ManyToMany > relationship. The model Artist

mnemosyne - a django wiki

2006-10-19 Thread [EMAIL PROTECTED]
Hi folks, Over the past few months I've been building a personal wiki system in Django (er... a bit longer than that, it started out pre-MR). It's slightly different to the Diamanda wiki (http://www.rk.edu.pl/), in that it's more of an integrated system. I've released it under the BSD licence, c

templatetags: returning more information of every object in a list of objects (not only the objects)

2006-10-19 Thread zenx
Hi, I have a templatetag that returns a lists of objects. The problem is I want to include another information for every object: I want to include the number of related objects for every object of a ManyToMany relationship. The model ArtistaTag has a ManyToMany relationship with Artistas. So I us

  1   2   >