Re: Display a view of a single record?
Well, the link to view a record would appear on each and every record line in the nomal tabular list. On Nov 8, 3:27 pm, jokerwrote: > do u want to see last or first record? > > On 8 Kasım, 08:44, derek wrote: > > > > > I am not sure what you mean by "on change list"? > > > The usual way that records get displayed is in a tabular list format. > > This is suitable when a record only has a few fields; some tables > > however > > have many fields in them and so would need to be displayed "in full" > > just > > by themselves. > > > I am looking for a way to have a link to this "detail view" embedded > > in each > > line entry of the normal tabular list display - a type of "click here > > for more > > details" link. This would not form part of a search or query. > > > On Nov 7, 1:24 am, Tomasz Zieliński > > wrote: > > > > On 6 Lis, 07:55, derek wrote: > > > > > One of the needs I have (and, I imagine, others too) is to be able to > > > > display a view of a single record in a table. This is the case when > > > > the record has many fields, not all of which are appropriate for (or > > > > need to be) display in the normal list view. > > > > > What I need to know is: is this a "standard" feature in the admin > > > > interface? If so, how do I go about activating it? If not, could > > > > someone please explain how to extend the admin interface for this to > > > > work? > > > > Do you mean displaying single record on change list? > > > You can try using search or filtering features for this. > > > > -- > > > Tomasz Zielińskihttp://pyconsultant.eu- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Template Syntax Error: url config module not found
Hi all, I have a strange error on a website I developed (quite some time ago...). The main url works: http://www.christina-kratzenberg.de So do all the links at the bottom except for the "portfolio" one. It's of course the interesting part where a photo portfolio is shown. When I click on that link, Django issues a Template Syntax Error saying that the module "tina.urls" cannot be importet. That's kind of strange, because it must have been imported this exact module for rendering the home page and the other pages that do work. As this happens during template rendering, I'm a bit at a loss here. Can anyone provide me with ideas? I don't really understand where to look for a solution. I'm on Django 1.0.2 with mod_python. Upgrading Django to a newer version and/or migrating to mod_wsgi is possible, but I don't want to start changing everything without understanding what's happening here. Thanks! Eric --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
wsgi config
Hi. I have a problem with configuring my django site with mod_wsgi. My httpd.conf is: LoadModule wsgi_module modules/mod-wsgi.so WSGIScriptAlias /peergw C:/mxhw/mx30/django.wsgi Order deny,allow allow from all Alias /media/ "C:\Program Files\Apache Software Foundation \Apache2.2\htdocs\media" Alias /peergw/site_media/ "C:\Program Files\Apache Software Foundation \Apache2.2\htdocs\site_media" Order deny,allow Allow from all I want my site to run on /peergw since I have many instances on the server and each one running with the different prefix. Everything works fine except all the images - I can't see static media files both in admin and my site. When I go to "/site_media//image" and not "/peergw/site_media// image", I do see the image. What am I doing wrong? By the way, I'm running on Vista, but I have the same problem on XP. Thanks, Arshavski Alexander. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Extending django.contrib.auth.models.User
1. write a new User Model, it like django.contrib.auth.models.User 2. write a new backend , like django.contrib.auth.backends.ModelBackend 3. modify settings.py , add AUTHENTICATION_BACKENDS=('myproject.myapp.backends.MyBackend' ,) http://docs.djangoproject.com/en/dev/topics/auth/#authentication-backends On Mon, Nov 9, 2009 at 2:46 PM, Sriwrote: > > Folks, > > Thought I might put it out there. I mean technically this is not > limited to django. I need to extend the > django.contrib.auth.models.User class (adding an extra field, making > the email field unique and increasing the length of the username > field). > > Now what are your thoughts on doing this? Changes are clearly very > small and extending what is there so they will not break the existing > classes and apps (or other django apps out there) so I dont mind > putting these changes to each version of django I use. > > I am not happy with doing this but I cant see a way around it. Adding > another model class with these extensions just means that existing > apps wont take advantage of this. Ideally I would like to see all > apps and methods out there take the class variable that refers to the > User model to be used so one could simply pass that in (say in > settings.py) and it could even default to User model in > django.contrib.auth. > > What are your thoughts? > > cheers > Sri > > > > --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Extending django.contrib.auth.models.User
Folks, Thought I might put it out there. I mean technically this is not limited to django. I need to extend the django.contrib.auth.models.User class (adding an extra field, making the email field unique and increasing the length of the username field). Now what are your thoughts on doing this? Changes are clearly very small and extending what is there so they will not break the existing classes and apps (or other django apps out there) so I dont mind putting these changes to each version of django I use. I am not happy with doing this but I cant see a way around it. Adding another model class with these extensions just means that existing apps wont take advantage of this. Ideally I would like to see all apps and methods out there take the class variable that refers to the User model to be used so one could simply pass that in (say in settings.py) and it could even default to User model in django.contrib.auth. What are your thoughts? cheers Sri --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Optimizing queries
On 8 Lis, 18:06, Victorwrote: > Hi, > > > user_item_rel_set is a m2m relationship between the User and Item > class. For every item, I look back at its m2m relationship model and > retrieve payment_amount. The only problem is, select_related() > doesn't grab the user_item_rel_set.all() when I query for the items > (where items=Item.objects.select_related().all() ). Is there anything > I can do to speed this up? It's *very* slow. I'm not sure what you're trying to do, but what about: items_user = Item.objects.filter(user=u) items_buyer = Item.objects.filter(buyer=u) - and then do something with those lists? -- Tomasz Zieliński http://pyconsultant.eu --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: How to remove "" from text for email
On 8 Lis, 21:41, zwebwrote: > I have > > description|safe|striptags > > but description has some "" in addition to html tags. How do I > strip that off? There is 'cut' built-in filter. In never used it but looking at its source code it looks to me that it does what you want. -- Tomasz Zieliński http://pyconsultant.eu --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
free latest full movie download, free ads, free web search, unlimited earning
free latest full movie download, free ads, free web search, unlimited earning http://www.southview.in/ * * http://www.southview.in/ * * --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
how to create a faceted browser with Django
Many web sites offer faceted browsing such that a series of categories can be selected to narrow a large set of records down to a few (or one). Such interfaces often show how many records match the various category values, which sometimes helps direct the search. Likewise, since only valid combinations of categories values are shown and selectable, the problem problem of constraints with zero results are mitigated. You can see this in action on lots of shopping sites: Amazon's page on diamond wedding rings (http://www.amazon.com/gp/ search/ref=sr_nr_n_2?rh=n%3A3367581%2Ck%3Adiamonds%2Cn%3A!3880591%2Cn %3A3887251=3880591=diamonds=UTF8=1257740168=3880591) is a good example. I'm an intermediate-level Django user, and i'm trying to conceive how to architect a faceted browsing application in Django. I can see conceptually how a combination of constraints specified in the interface could translate into a series of filter statements on a model, and i can see how, with some constraints in place, the remaining values and the number of records matching them could be computed and presented. But I'm less sure how to provide a RESTful interface (since any of several constraints can be selected independently) in an efficient manner, or how to work out the template details. So i'm looking for some direction. Are there any Django sites out there already that use an approach like this? Or suggestions as to how to architect one? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: django test client doesn't handle non-multipart data in PUT
On Nov 9, 11:45 am, Russell Keith-Mageewrote: > On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckel > wrote: > > > I am developing a django site that has a RESTful API, and allows for > > json representations of the resources. > > > I have hit a bit of a hitch with respect to the data that I need to > > PUT, to do with the inbuilt test client. > > > If I use client.post(url, data, content_type='application/json', > > **AUTH), then it works fine: I can create an object no worries. If I > > use client.put(url, data, content_type='application/json', **AUTH), > > then it fails, when it tries to encode the multipart data, which it > > shouldn't be doing. > > > Anyone else come across this? > > Yes :-) > > http://code.djangoproject.com/ticket/11371 > > This bug was fixed in trunk about 2 weeks ago. It's available in the > latest SVN revisions of trunk and the 1.1.X branch. When the stable > 1.2 and 1.1.2 versions are released, they will include the fix. > Super. I was tracking trunk, with some local modifications. Pulled and merged the current revision. All good now. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Help about models
What you need is to keep your Education model as is (with no Lawyer Foreignkey) and add a ManyToManyField on your Lawyer class pointing to Education. Then you can go Lawyer.objects.filter(education__school='...') I think that will solve your problem Greg 2009/11/9 Zeynel: > > Hello, > > I decided to start my own project with what I learned from part 1 of > the tutorial. > > I have the project in C:\sw\sw\wkw > > The app sw.wkw is a prototype for a "who-knows-who" database for legal > profession. I wanted to start with a really simple model: > > class Lawyer(models.Model): > first = models.CharField(max_length=20) > initial = models.CharField(max_length=2) > last = models.CharField(max_length=20) > year_graduated = models.DateTimeField('Year graduated') > > class Education(models.Model): > # lawyer = models.ForeignKey(lawyer) > school = models.CharField(max_length=200) > > I commented out the ForeignKey because it caused an error. > > I will only make one search in the database. I want to enter Lawyer's > name and find all other lawyers in the database who graduated from the > same school the same year. It's like sorting by school in a > spreadsheet and pulling the lawyer's names. Here's the sample > spreadsheet: > > https://spreadsheets.google.com/ccc?key=0Al923jWh4O4ydG1vSmx4bDVqTUFUXzVqSXhzVkcydmc=en > > Do you think this is the right model for what I am trying to do? Thank > you for your comments. > > So far I created the tables and tomorrow I'll set up the admin and > populate the database with some names. > > I am really enjoying Django. I am learning both Django and Python. > Thanks again for your help. > > > -- http://gregbrown.co.nz/ --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Help about models
Hello, I decided to start my own project with what I learned from part 1 of the tutorial. I have the project in C:\sw\sw\wkw The app sw.wkw is a prototype for a "who-knows-who" database for legal profession. I wanted to start with a really simple model: class Lawyer(models.Model): first = models.CharField(max_length=20) initial = models.CharField(max_length=2) last = models.CharField(max_length=20) year_graduated = models.DateTimeField('Year graduated') class Education(models.Model): #lawyer = models.ForeignKey(lawyer) school = models.CharField(max_length=200) I commented out the ForeignKey because it caused an error. I will only make one search in the database. I want to enter Lawyer's name and find all other lawyers in the database who graduated from the same school the same year. It's like sorting by school in a spreadsheet and pulling the lawyer's names. Here's the sample spreadsheet: https://spreadsheets.google.com/ccc?key=0Al923jWh4O4ydG1vSmx4bDVqTUFUXzVqSXhzVkcydmc=en Do you think this is the right model for what I am trying to do? Thank you for your comments. So far I created the tables and tomorrow I'll set up the admin and populate the database with some names. I am really enjoying Django. I am learning both Django and Python. Thanks again for your help. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: language switching in admin
On Sunday 08 Nov 2009 9:51:23 am Kenneth Gonsalves wrote: > > well I added the change language form to the main base.html form in admin > > (by overriding it), but the call to "/i18n/setlang/" is not working. > > Maybe a path problem. Any clues? > > > > now it is working - neat ;-) > it was not a path problem, the browser needed to be refreshed to show the language change -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: No module named django
Selam, evet izleyecem. Guzel bir site. On Nov 8, 8:25 am, jokerwrote: > Merhaba;www.djangoturkiye.comadresinden videolu eğitimlerle ders hazırladım > inceleyebilirsin > > On 8 Kasım, 00:49, Zeynel wrote: > > > > > Great! Thank you very much. I downloaded django-1.1.1 again and > > untarred again. > > > django directory is in C:\Django-1.1.1\Django-1.1.1\django > > > I don't know why I got 2 Django-1.1.1 folders but installation worked > > this time. > > > There are many __init.py__ files, they are in build directory. > > > I did the installation as "setup.py install" instead of "python > > setup.py install" so the tutorial says that django-admin.py may not be > > in the system path. > > > Now I am going to create a project. Should I create it in the second > > Django-1.1.1 folder? > > > Thanks again! > > > On Nov 7, 4:55 pm, Karen Tracey wrote: > > > > On Sat, Nov 7, 2009 at 4:15 PM, Zeynel wrote: > > > > > Hello, > > > > > I know this has been asked here a million times before, but I couldn't > > > > find the right answer. It seems something to do with PYTHONPATH. Can > > > > anyone help me figure this out. This is the error message on the > > > > windows shell: > > > > > C:\Django-1.1.1>setup.py install > > > > Traceback (most recent call last): > > > > File "C:\Django-1.1.1\setup.py", line 69, in > > > > version = __import__('django').get_version() > > > > ImportError: No module named django > > > > Is there a django directory under c:\Django-1.1.1? There should be. > > > There > > > should also be an __init__.py in that directory. If either of these are > > > missing then likely the problem is whatever tool was used to unpack the > > > tar.gz file. A tool that correctly unzips 0-byte files is required -- I've > > > seen reports before of some Windows tools not handling these properly. > > > > Karen --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
django generic views w multiple models
'm new to Django and programming in general. I'm trying to make a simple site that allows players of a sport sign up for leagues that have been created by the admin. In my models.py, I created two models: `from django.db import models from django.forms import ModelForm class League(models.Model): league_name = models.CharField (max_length=100) pub_date = models.DateTimeField('date published') class Info(models.Model): league = models.ManyToManyField(League) name = models.CharField(max_length=50) phone = models.IntegerField() email = models.EmailField() def unicode(self): return self.info class InfoForm (ModelForm): class Meta: model = Info exclude = ('league')` >From what I've read, I can probably use the Create/Update/Delete generic views to display a form for the user to sign up for the league. So with my app, I want the user to come to a simple homepage that lists the leagues, be able to click on the league and enter their info to sign up. Here's what my urlconf looks like:`from django.conf.urls.defaults import * from mysite.player_info.models import League, Info, InfoForm info_dict = { 'queryset': League.objects.all(), } InfoForm = {'form_class' : InfoForm} urlpatterns = patterns('', (r'^$', 'django.views.generic.list_detail.object_list', info_dict), (r'^(?P\d +)/$', 'django.views.generic.list_detail.object_detail', info_dict), url(r'^(?P\d+)/results/$', 'django.views.generic.list_detail.object_detail', dict(info_dict, template_name='player_info/results.html'), 'league_results'), (r'^(?P\d +)/info/create/$', 'django.views.generic.create_update.create_object', InfoForm), )` Here's my problem: When I click on a league to sign up for on the homepage with my current setup, I get this error: TypeError at /league/ 1/info/create create_object() got an unexpected keyword argument 'object_id'. What am I doing wrong? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: django test client doesn't handle non-multipart data in PUT
On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckelwrote: > > I am developing a django site that has a RESTful API, and allows for > json representations of the resources. > > I have hit a bit of a hitch with respect to the data that I need to > PUT, to do with the inbuilt test client. > > If I use client.post(url, data, content_type='application/json', > **AUTH), then it works fine: I can create an object no worries. If I > use client.put(url, data, content_type='application/json', **AUTH), > then it fails, when it tries to encode the multipart data, which it > shouldn't be doing. > > Anyone else come across this? Yes :-) http://code.djangoproject.com/ticket/11371 This bug was fixed in trunk about 2 weeks ago. It's available in the latest SVN revisions of trunk and the 1.1.X branch. When the stable 1.2 and 1.1.2 versions are released, they will include the fix. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
django test client doesn't handle non-multipart data in PUT
I am developing a django site that has a RESTful API, and allows for json representations of the resources. I have hit a bit of a hitch with respect to the data that I need to PUT, to do with the inbuilt test client. If I use client.post(url, data, content_type='application/json', **AUTH), then it works fine: I can create an object no worries. If I use client.put(url, data, content_type='application/json', **AUTH), then it fails, when it tries to encode the multipart data, which it shouldn't be doing. Anyone else come across this? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django web flow
2009/11/9 Lana: > > Hi! > > Does Django have some sort of web flow similar to the Spring web flow > in Java? If it doesn't, what is the best strategy to implement web > flow in your opinion - by using only Django session framework or by > implementing database backened flow using only sessionId? There is goflow (http://code.djangoproject.com/wiki/GoFlow) although it doesn't seem to be very active. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: querysets: if x in y
On Mon, Nov 9, 2009 at 01:11, Edward McCaughanwrote: > where you're getting results where a property matches a value, could > you have it try anything in a list of values, eg: > ObjectOne.objects.filter(name=["toast","bread","shoes"]) > http://docs.djangoproject.com/en/dev/ref/models/querysets/#in ? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: querysets: if x in y
if you use custom user model, you could select user with related sets and filter out record having at least one FK empty. I think you could try a) run own, custom query b) use extra() function on queryset - but again, it should be used agains User model c) use database view --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: querysets: if x in y
one more thing: another way to look at it (hence the original title) would be instead of a normal queryset, eg: ObjectOne.objects.filter(name="toast") where you're getting results where a property matches a value, could you have it try anything in a list of values, eg: ObjectOne.objects.filter(name=["toast","bread","shoes"]) since in this case, the lookup to get the list wouldn't be too expensive and could be cached edward On Nov 8, 11:56 pm, Edward McCaughanwrote: > I have a complicated query set to do, does anyone have any suggestions > on the least insane way to do it? > > I need to merge two querysets and only get out ones with a common > field: > > ModelOne.objects.filter(x=whatever) > ModelTwo.objects.filter(y=foo) > > both of these objects have a property which is a django user (eg: > ModelOne.owner and ModelTwo.winner) > > I want to get a queryset where only both querysets share the same user > property > eg: (ModelOne filter + ModelTwo filter) where ModelOne.owner eq > ModelTwo.winner) > > I'm pretty new to django and ORM layers in general, so I have no idea > how to do this without getting all the results into a regular python > list and filtering it using normal python methods or writing custom > SQL. For bonus points this query will be run 10 times a page, so it > needs to be at least vaguely quick :-/ > > Even if you don't have a full answer, clues on what to go look up or > try and do would be appreciated! > > Edward --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
querysets: if x in y
I have a complicated query set to do, does anyone have any suggestions on the least insane way to do it? I need to merge two querysets and only get out ones with a common field: ModelOne.objects.filter(x=whatever) ModelTwo.objects.filter(y=foo) both of these objects have a property which is a django user (eg: ModelOne.owner and ModelTwo.winner) I want to get a queryset where only both querysets share the same user property eg: (ModelOne filter + ModelTwo filter) where ModelOne.owner eq ModelTwo.winner) I'm pretty new to django and ORM layers in general, so I have no idea how to do this without getting all the results into a regular python list and filtering it using normal python methods or writing custom SQL. For bonus points this query will be run 10 times a page, so it needs to be at least vaguely quick :-/ Even if you don't have a full answer, clues on what to go look up or try and do would be appreciated! Edward --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Full time Python/Django contractor needed for cloud development position (3-6 months)
Hi Djangoists, I am looking to hire contractor for the following position. Please forward to anyone you think might be a good fit. Company Virtualization is the technology that is poised to change the way we think about computing. VMware (NYSE: VMW) is the global leader in virtualization solutions from the desktop to the datacenter. Customers of all sizes rely on VMware to reduce capital and operating expenses, ensure business continuity, strengthen security and go green. With 2008 revenues of $1.9 billion, more than 130,000 customers and more than 22,000 partners, VMware is one of the fastest-growing public software companies. VMware’s award-winning technology, market-leading position and culture of excellence provide the more than 6,600 passionate people we employ in 40 locations worldwide with a platform for professional growth and the excitement of being an early-stage innovator. vCloud Express is an Infrastructure as a Service (IaaS) offering delivered by leading VMware service provider partners. It provides reliable, on-demand, pay-as-you-go infrastructure that ensures compatibility with internal VMware environments and with VMware Virtualized™ services. This class of service allows IT to reduce both the capex and resource challenges associated with the fluctuating infrastructure requirements of development teams. Developers are able to use the vCloud Express service at their convenience to address various infrastructure and programming needs such as experimentation, prototyping and testing. The vCloud Express service retains the robustness, interoperability and reliability that VMware is known for. Job Description VMware is looking to hire a full time Python/Django contractor for 3-6 months. The contractor will be responsible for the support, development, implementation, and integration of various Python/Django based cloud applications related to vCloud Express. An ideal candidate would be A self-starter with strong analytical and problem solving skills Team oriented and easy to work with Ability to manage and interact with remote teams Excellent oral and written communication skills Excellent documentation & writing skills Preferred Skills: Python, Django, Postgres, HTML, CSS, JavaScript, JQuery, Linux, Apache, SOAP, REST, VI3/vSphere, LabManager Location: Palo Alto, California Contact: Please apply here http://bit.ly/gRgw7 and please include a rating (10 - I invented it, 1 - never heard of it) of the preferred skills in your email/resume. Thanks! Jian --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Helsinki area djangonauts: Let's meet up
Snap, looks like i will totally miss this. Just got back from Helsinki last week, Would have been totally awesome meeting other djangonauts and if the meetup was like 2 weeks earlier ;) Did meet the guys behind scred(who are djangonauts), and a few geeks at Barcamp Helsinki, which was awesome. Looking forward to hearing what happens Regards, Ismail http://twitter.com/ismail On Sun, Nov 8, 2009 at 9:12 PM, Lynourewrote: > > On Nov 6, 12:18 pm, Jukka Välimaa wrote: > >> The meeting place is Kaisla, and time is two weeks from now, Thu >> 19.11, starting at 18:00. >> >> How does this sound? > > Count me in, too. > > -- > Lynoure > > > > --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Helsinki area djangonauts: Let's meet up
On Nov 6, 12:18 pm, Jukka Välimaawrote: > The meeting place is Kaisla, and time is two weeks from now, Thu > 19.11, starting at 18:00. > > How does this sound? Count me in, too. -- Lynoure --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
How to remove "" from text for email
I have description|safe|striptags but description has some "" in addition to html tags. How do I strip that off? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Strange session behaviour
Hello, I'm working for the first time on sessions with django and I'm facing a strange behaviour. on my main view, I do a del request.session['entity'] On my subviews, I set request.session['entity'] = 1 (for example) After that, for any view, I do: if request.session['entity']: context['entity'] = request.session['entity'] and finally, I render the template through: return render_to_response('page.html', context, context_instance=RequestContext(request)) So, when I first come to the page, the template does not find and entity defined. When I switch to my 'subviews' the entity is correctly set. However, when I switch back to the main view, it is correctly removed from the request.session (dump within the view confirms it) but the template would still see the latest entity that has been set, regardless of how time I refresh the main view. Could someone point me the right way to remove a session variable ? Thanks, Xavier. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Optimizing queries
Hi, I'm trying to optimize some queries I'm making, but I'm not sure how to do it. 61 for t in items: 62 try: 63 t.price = t.user_item_rel_set.get (user=u).payment_amount 64 except: 65 t.price = -1 * t.buyer_item_rel_set.get (buyer=u).payment_amount 66 return items 67 user_item_rel_set is a m2m relationship between the User and Item class. For every item, I look back at its m2m relationship model and retrieve payment_amount. The only problem is, select_related() doesn't grab the user_item_rel_set.all() when I query for the items (where items=Item.objects.select_related().all() ). Is there anything I can do to speed this up? It's *very* slow. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Error: No module named pollsdjango.contrib.admin
Thank you!! On Nov 8, 12:01 pm, Karen Traceywrote: > On Sun, Nov 8, 2009 at 11:58 AM, Zeynel wrote: > > > Hi again, > > > Thanks for the help so far. > > > I am now working on the part 2 of the tutorial. > > > I updated the INSTALLED_APPS with 'django.contrib.admin': > > > INSTALLED_APPS = ( > > 'django.contrib.auth', > > 'django.contrib.contenttypes', > > 'django.contrib.sessions', > > 'django.contrib.sites', > > 'mysite.polls' > > 'django.contrib.admin' > > ) > > > You are missing a comma after 'mysite.polls' > > Karen --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Error: No module named pollsdjango.contrib.admin
On Sun, Nov 8, 2009 at 11:58 AM, Zeynelwrote: > > Hi again, > > Thanks for the help so far. > > I am now working on the part 2 of the tutorial. > > I updated the INSTALLED_APPS with 'django.contrib.admin': > > INSTALLED_APPS = ( >'django.contrib.auth', >'django.contrib.contenttypes', >'django.contrib.sessions', >'django.contrib.sites', >'mysite.polls' >'django.contrib.admin' > ) > > You are missing a comma after 'mysite.polls' Karen --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Error: No module named pollsdjango.contrib.admin
Hi again, Thanks for the help so far. I am now working on the part 2 of the tutorial. I updated the INSTALLED_APPS with 'django.contrib.admin': INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'mysite.polls' 'django.contrib.admin' ) and tried to run manage.py syncdb but I get the error Error: No module named pollsdjango.contrib.admin I am guessing this is another PATH error. Can anyone help. Thanks. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Django web flow
Hi! Does Django have some sort of web flow similar to the Spring web flow in Java? If it doesn't, what is the best strategy to implement web flow in your opinion - by using only Django session framework or by implementing database backened flow using only sessionId? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Class definition in the tutorial
El Sun, 8 Nov 2009 08:00:56 -0800 (PST) Zeynelescribió: > I am just learning Object Oriented terminology as I go along. Not the best idea if you ask me. You should try "wetting your feet" with simpler stuff first, and reading OOP theory. That being said, I *guess* you can start out and do a lot of stuff with Django without giving much thought of object oriented stuff. Anyway, I'll give you some pointers for your questions: > Please help me to understand what each word means in the class definition in > the tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/ . > Thank you. > > class => defines a class http://docs.python.org/tutorial/classes.html > Poll => name of the class? [my guess: this is just a name; it is not > used in the database?] Name of the class the example is defining. Django creates a table in the database wich includes the name "poll" prefixed by the app's name. > (models.Model): => what is this? [my guess: there is a django class > called model and that has a subclass called Model and this statement > says that Poll is a subcalls of Model which is subclass of model?] Your guess is close, but not quite correct. 'model' is the name of a module (a .py file containing code), read about that here: http://docs.python.org/tutorial/modules.html The rest of your guess is correct :) > question => the name of the class variable? [my guess: This is a > column in the database?] Your guess is somewhat correct, there will be a column in a database named "question" as a result from that line of code. A class variable is something Django uses to make this happen. > models. => what is this? A Python module. > .CharField(max_length=200) => [my guess: this defines the type of the > data in the column "question"] Yup, more on that here: http://docs.djangoproject.com/en/dev/ref/models/fields/#ref-models-fields Good luck! -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpddNIlYJXZt.pgp Description: PGP signature
Re: Class definition in the tutorial
On Sun, Nov 8, 2009 at 10:00 AM, Zeynelwrote: > I am just learning Object Oriented terminology as I go along. Please > help me to understand what each word means in the class definition in > the tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/ . You may experience better results from doing a Python tutorial first, to teach you the basic information about programming that you'll need to work with Django. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Class definition in the tutorial
I am just learning Object Oriented terminology as I go along. Please help me to understand what each word means in the class definition in the tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/ . Thank you. class => defines a class Poll => name of the class? [my guess: this is just a name; it is not used in the database?] (models.Model): => what is this? [my guess: there is a django class called model and that has a subclass called Model and this statement says that Poll is a subcalls of Model which is subclass of model?] question => the name of the class variable? [my guess: This is a column in the database?] models. => what is this? .CharField(max_length=200) => [my guess: this defines the type of the data in the column "question"] --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: need foreign key help quick
On Sat, Nov 7, 2009 at 8:39 PM, Bobby Robertswrote: > > Hi. I have never used foreign keys I need to start and I need > help. I'm running python2.5 and django1.1. I have an installation > of Satchmo running fine; however, I need to modify the Product table. > I need to tie fields from the Product module to fields in another > module outside of satchmo. > > here's the setup: > > [snip] > As Rishabh said, a complete traceback instead of just the error message would help people help you. You may be hitting: http://code.djangoproject.com/ticket/10405 but it's hard to be sure without the traceback. As an aside, what you are doing sounds a bit dodgy. If I understand what you are saying, you are adding a field to the Satchmo-provided Product model? After doing that you mention restarting Apache but don't say anything about getting the change you have made to the model reflected in the database. If you have not done anything to get the new field added to the database table as well, then even if you get past this error you are going to run into trouble when any code tries to access that model, since in the database it won't have the field you have added. Have you tried asking on the Satchmo user's group for guidance on accomplishing whatever you are looking to do without modifying their provided models? In general changing the models provided by an external project seems like a bad idea. Karen --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: need foreign key help quick
On Sun, Nov 8, 2009 at 9:41 PM, Bobby Robertswrote: > > anyone out there that can help me? > > On Nov 7, 8:39 pm, Bobby Roberts wrote: > > Hi. I have never used foreign keys I need to start and I need > > help. I'm running python2.5 and django1.1. I have an installation > > of Satchmo running fine; however, I need to modify the Product table. > > I need to tie fields from the Product module to fields in another > > module outside of satchmo. > > > > here's the setup: > > > > I have Satchmo products installed here: > > > > /django_apps/live/satchmo/products > > > > I have another module installed here > > > > /django_apps/live/elmago > > > > I'm trying to add a dropbox field in products that is related to the > > PK field in one of my elmago classes as follows: > > > > BinderCountry = models.ForeignKey('elmago.CountryOfOrigin', > > verbose_name=_('Binder Country'), blank=False, null=False, help_text=_ > > ("Please choose the country of origin for the binder.")) > > > > The elmago.CountryOfOrigin class looks like this: > > > > class CountryOfOrigin (models.Model): > > Id = models.AutoField(primary_key=True) > > CountryName = models.CharField (max_length=250, blank=True, > > db_index=True) > > DateAdded = models.DateTimeField (auto_now_add=True, > > blank=False, db_index=True) > > > > What am i doing wrong? After restarting apache... i get the following > > error: > > > > AttributeError at /admin/product/product/add/ > > > > 'str' object has no attribute '_default_manager' > > > > Please help quickly! > > > You'll need to give us a more complete Traceback, but perhaps define a __unicode__ function in CountryOfOrigin... -- Best, R --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Thinking of making the switch from PHP to Django/Python
On Nov 8, 2009, at 8:47 AM, Quenten Griffith wrote: > > All, > > I have developed a 1.0 version of a recipe management tool. I wrote > it in PHP using the symfony framework. For the 2.0 version I want to > switch to python. The reason for the 1.0 version was I wanted to use > it to learn PHP. Now I really want to learn Python/Django. The > question I have though, is once an application is built, how hard is > it for a normal end-user to install a Django web application? From > what I have seen thus far on django sites, you have to install the > extra python lib's yourself, and edit a bunch of config files to make > most applications work. This may be to much for your normal end user > who would download my software to use. Has anyone made an "all in > one" installer for their application that contains all the libs one > would need or would that involve packaging python with your > application too? You can package the whole thing, Python interpreter and all libraries included, with http://pypi.python.org/pypi/zc.buildout. Here's a great tutorial http://jacobian.org/writing/django-apps-with-buildout/ , specific to Django, even! S --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Thinking of making the switch from PHP to Django/Python
All, I have developed a 1.0 version of a recipe management tool. I wrote it in PHP using the symfony framework. For the 2.0 version I want to switch to python. The reason for the 1.0 version was I wanted to use it to learn PHP. Now I really want to learn Python/Django. The question I have though, is once an application is built, how hard is it for a normal end-user to install a Django web application? From what I have seen thus far on django sites, you have to install the extra python lib's yourself, and edit a bunch of config files to make most applications work. This may be to much for your normal end user who would download my software to use. Has anyone made an "all in one" installer for their application that contains all the libs one would need or would that involve packaging python with your application too? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: need foreign key help quick
anyone out there that can help me? On Nov 7, 8:39 pm, Bobby Robertswrote: > Hi. I have never used foreign keys I need to start and I need > help. I'm running python2.5 and django1.1. I have an installation > of Satchmo running fine; however, I need to modify the Product table. > I need to tie fields from the Product module to fields in another > module outside of satchmo. > > here's the setup: > > I have Satchmo products installed here: > > /django_apps/live/satchmo/products > > I have another module installed here > > /django_apps/live/elmago > > I'm trying to add a dropbox field in products that is related to the > PK field in one of my elmago classes as follows: > > BinderCountry = models.ForeignKey('elmago.CountryOfOrigin', > verbose_name=_('Binder Country'), blank=False, null=False, help_text=_ > ("Please choose the country of origin for the binder.")) > > The elmago.CountryOfOrigin class looks like this: > > class CountryOfOrigin (models.Model): > Id = models.AutoField(primary_key=True) > CountryName = models.CharField (max_length=250, blank=True, > db_index=True) > DateAdded = models.DateTimeField (auto_now_add=True, > blank=False, db_index=True) > > What am i doing wrong? After restarting apache... i get the following > error: > > AttributeError at /admin/product/product/add/ > > 'str' object has no attribute '_default_manager' > > Please help quickly! --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Display a view of a single record?
do u want to see last or first record? On 8 Kasım, 08:44, derekwrote: > I am not sure what you mean by "on change list"? > > The usual way that records get displayed is in a tabular list format. > This is suitable when a record only has a few fields; some tables > however > have many fields in them and so would need to be displayed "in full" > just > by themselves. > > I am looking for a way to have a link to this "detail view" embedded > in each > line entry of the normal tabular list display - a type of "click here > for more > details" link. This would not form part of a search or query. > > On Nov 7, 1:24 am, Tomasz Zieliński > wrote: > > > On 6 Lis, 07:55, derek wrote: > > > > One of the needs I have (and, I imagine, others too) is to be able to > > > display a view of a single record in a table. This is the case when > > > the record has many fields, not all of which are appropriate for (or > > > need to be) display in the normal list view. > > > > What I need to know is: is this a "standard" feature in the admin > > > interface? If so, how do I go about activating it? If not, could > > > someone please explain how to extend the admin interface for this to > > > work? > > > Do you mean displaying single record on change list? > > You can try using search or filtering features for this. > > > -- > > Tomasz Zielińskihttp://pyconsultant.eu --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: No module named django
Merhaba; www.djangoturkiye.com adresinden videolu eğitimlerle ders hazırladım inceleyebilirsin On 8 Kasım, 00:49, Zeynelwrote: > Great! Thank you very much. I downloaded django-1.1.1 again and > untarred again. > > django directory is in C:\Django-1.1.1\Django-1.1.1\django > > I don't know why I got 2 Django-1.1.1 folders but installation worked > this time. > > There are many __init.py__ files, they are in build directory. > > I did the installation as "setup.py install" instead of "python > setup.py install" so the tutorial says that django-admin.py may not be > in the system path. > > Now I am going to create a project. Should I create it in the second > Django-1.1.1 folder? > > Thanks again! > > On Nov 7, 4:55 pm, Karen Tracey wrote: > > > On Sat, Nov 7, 2009 at 4:15 PM, Zeynel wrote: > > > > Hello, > > > > I know this has been asked here a million times before, but I couldn't > > > find the right answer. It seems something to do with PYTHONPATH. Can > > > anyone help me figure this out. This is the error message on the > > > windows shell: > > > > C:\Django-1.1.1>setup.py install > > > Traceback (most recent call last): > > > File "C:\Django-1.1.1\setup.py", line 69, in > > > version = __import__('django').get_version() > > > ImportError: No module named django > > > Is there a django directory under c:\Django-1.1.1? There should be. There > > should also be an __init__.py in that directory. If either of these are > > missing then likely the problem is whatever tool was used to unpack the > > tar.gz file. A tool that correctly unzips 0-byte files is required -- I've > > seen reports before of some Windows tools not handling these properly. > > > Karen --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---