Re: Google SoC 2006 selected projects list

2006-07-20 Thread Kenneth Gonsalves
On 21-Jul-06, at 11:12 AM, Harish Mallipeddi wrote: > I found this page : http://code.djangoproject.com/wiki/ > SummerOfCode2006, but it seems to have not been updated after the > results were announced. I'm interested in playing with a couple of > ideas on this page, but it will be better

Google SoC 2006 selected projects list

2006-07-20 Thread Harish Mallipeddi
Hi,I'm wondering if there's a page somewhere containing the list of django projects being funded as part of the Google SoC 2006. I found this page : http://code.djangoproject.com/wiki/SummerOfCode2006, but it seems to have not been updated after the results were announced. I'm interested in

Re: CGI Setup

2006-07-20 Thread Martin
Adrian, thanks for the response... I have already implemented a CGI interface for Django... I'm still in a test phase but so dar it does look prety good. And the performance it not really bad. I don't have any comparison with a FCGI or mod_python installation, but it fast enough for my needs.

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Elver Loho
On 7/21/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > > Thanks for presenting a different angle. I imagine you're one of > these long-bearded guys who uses NetBSD and Fluxbox as his main > desktop OS and edits code in VI through a tsch shell ;-) Ubuntu Dapper and Gnome. (I need Unix on

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Sean Schertell
Thanks so much for your reply Adrian! Can you also please comment a bit on how well Django works in a shared environment? > How about memory footprint? Can I run 100+ > Django sites on a shared server and expect smooth sailing? Thanks! Sean

Django 0.91 and SVN (magic removal) on Dreamhost

2006-07-20 Thread Julio Nobrega
Hi all! After some time I've managed to be able to run Django 0.91 and and the SVN version together on Dreamhost. I had a few projects done in 0.91 and I couldn't simply "svn update" the django_src directory. I don't know if this is useful to anyone else (perhaps to people on similar

Re: CGI Setup

2006-07-20 Thread Adrian Holovaty
On 7/14/06, Martin Glück <[EMAIL PROTECTED]> wrote: > Can anybody give me tip where I should start looking? My assumption is > that I need to create a kind of "Request" object and then call the > current Django "entry" function to get the response back. > > Or do you think I it's not worth the

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Deryck Hodge
On 7/20/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 7/20/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > > (1) Portable apps across projects architecture. From what I've read, > > it sounds like a perfect fit for what I want to do. Is it really that > > great? > > Yes. It is that great.

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Kenneth Gonsalves
On 21-Jul-06, at 6:56 AM, Ian Holsman wrote: >> It's exactly what you're looking for, in that respect. And thanks for >> indirectly encouraging us to advertise this feature more... > > It's the main reason I chose to develop my first app in Django, > instead of Rails, and from then I've been

Re: implementing a user login

2006-07-20 Thread Kenneth Gonsalves
On 21-Jul-06, at 12:28 AM, Jacob Kaplan-Moss wrote: > @login_required > def report_list(request): > context = {"reports" : > Report.objects.filter(owner=request.user)} > return render_to_response("report_list.html", context) > > (assuming, of course, a

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Elver Loho
Allow me to offer a dissenting view. I recently faced the task of finding a Python-based framework to use at work and tried several, including Django. I finally settled on using CherryPy with Kid. (Which is what TurboGears is doing, but with a lot of extra cruft thrown in. And btw, the TurboGears

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Paulo
+1 on the portability of apps. We're doing something very similar for our client projects. Since moving to Django we have: - increased our cash flow by being able to hammer out more "small-ish" projects in a shorter amount time - decreased our dev time -- we're finding ourselves waiting on

Re: ContentTypes usage

2006-07-20 Thread Uros Trebec
Jacob Kaplan-Moss wrote: > On Jul 19, 2006, at 7:49 AM, Uros Trebec wrote: > > Does anyone know how to use this thing? > > I do :) That's good to hear! :) > But you're really going to need to give me more information about > what you're trying to do in order for me to help. Remember:

Re: ContentTypes usage

2006-07-20 Thread Ian Holsman
What are you trying to figure out exactly?Content Types are basically meta data describing your application's models.It gives you a database wide method of uniquely identifying a object.this allows you to do stuff like:have a global redirect mechanism  /r//allow you to add tags or comments to any

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Ian Holsman
On 21/07/2006, at 11:22 AM, Adrian Holovaty wrote:(1) Portable apps across projects architecture. From what I've read, it sounds like a perfect fit for what I want to do. Is it really that great? Yes. It is that great. :) It's really interesting that you see that as one of Django's main

Re: ContentTypes usage

2006-07-20 Thread Uros Trebec
Aidas Bendoraitis wrote: > You can learn about ContentTypes from > http://www.djangoproject.com/documentation/models/generic_relations/ > and also from the code of django.contrib.comments Thank you very much for this one! I'll try to figure it out. regards, Uros

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Adrian Holovaty
On 7/20/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > (1) Portable apps across projects architecture. From what I've read, > it sounds like a perfect fit for what I want to do. Is it really that > great? Yes. It is that great. :) It's really interesting that you see that as one of Django's

Is Django the framework I've been looking for?

2006-07-20 Thread Sean Schertell
Greetings Djangoers, I'm thinking of defecting from the Ruby on Rails camp because I think Django may be more in line with what I want to do. If you have a couple minutes, could you please tell me if I'm on the right track? What I want to do === Basically, I want to

Re: M2M intermediary tables, looking up objects

2006-07-20 Thread Malcolm Tredinnick
On Thu, 2006-07-20 at 10:41 -0700, markguy wrote: > Derek, > > I appreciate the followup. That works, but I have to say, I don't > understand *why* it works! It's as if Django automagically follows > ForeignKeys, without having to call select_related(). It is exactly like this. The

step by step install of Django for MacOS X 10.4

2006-07-20 Thread [EMAIL PROTECTED]
After I read Jeff Croft's blog entry, I realized that I'd written a step by step "how to install" for Django on MacOS X, and that it might be nice to publish it somewhere... So I have tacked it up on my blog http://www.rhonabwy.com/wp/2006/07/20/installing-django-on-macos-x-development-version/

Re: django-admin.py

2006-07-20 Thread Malcolm Tredinnick
On Thu, 2006-07-20 at 15:10 -0700, Carl Holm wrote: > More specifically, it does print the help message, but does not create > the mysite directory. This has been reported before, although it's not a universal problem (and it is Windows specific). Ticket #1507. The problem is that for some

Re: And-ing together searches on a ManyToMany field.

2006-07-20 Thread Malcolm Tredinnick
On Thu, 2006-07-20 at 22:31 +0200, Neilen Marais wrote: > Malcolm, > > On Thu, 20 Jul 2006 16:56:22 +1000, Malcolm Tredinnick wrote: [...] > > > > Here's a solution that I prepared earlier (it talks about finding all > > groups containing a subset of people, but it's the same problem): > > > >

Re: shared apps accross multiple sites/projects

2006-07-20 Thread Jacob Kaplan-Moss
On Jul 20, 2006, at 4:49 PM, Brian Hamman wrote: > I'd really appreciate suggestions or advice others have from solving > similar problems. What are some ways that others have organized > multiple apps/projects/sites? You're on the right track to think about putting the apps outside the

Re: django-admin.py

2006-07-20 Thread Carl Holm
More specifically, it does print the help message, but does not create the mysite directory. CL Jacob Kaplan-Moss wrote: >On Jul 20, 2006, at 4:36 PM, [EMAIL PROTECTED] wrote: > > >>Running 'django-admin.py startproject mysite' does nothing in new >>installation >>of o.95-py2.4 on WinXP.

shared apps accross multiple sites/projects

2006-07-20 Thread Brian Hamman
Hey there, I'm working on a project that will run several related news sites from a single Django installation. I'll be treating each site as a separate project, complete with its own settings.py file and corresponding use of the sites framework. Where I run into trouble is with apps that are

Re: django-admin.py

2006-07-20 Thread Jacob Kaplan-Moss
On Jul 20, 2006, at 4:36 PM, [EMAIL PROTECTED] wrote: > Running 'django-admin.py startproject mysite' does nothing in new > installation > of o.95-py2.4 on WinXP. Anyone run into this before? Do you mean it prints nothing (it's supposed to succeed silently like good tools should) or it doesn't

django-admin.py

2006-07-20 Thread vpulse
Hello, Running 'django-admin.py startproject mysite' does nothing in new installation of o.95-py2.4 on WinXP. Anyone run into this before? Thanks, Cl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Caching in Django admin

2006-07-20 Thread Rock
Well I switched to per view caching and it went off quite easily. Thanks for the encouragement. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: And-ing together searches on a ManyToMany field.

2006-07-20 Thread Neilen Marais
Malcolm, On Thu, 20 Jul 2006 16:56:22 +1000, Malcolm Tredinnick wrote: >> > I think you want to use: >> > >> > Image.objects.filter(tags__id__in=[1,2]).distinct() >> >> Alas, this returns all the images with tag1 OR tag2. I'm looking for >> images with tag1 AND tag2. > > Here's a solution

Re: implementing a user login

2006-07-20 Thread Josh Trutwin
On Thu, 20 Jul 2006 13:58:10 -0500 Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > The auth docs are probably the best place to start: http:// > www.djangoproject.com/documentation/authentication/. > > Here's a quick example of a way you might do a page that > requires login and only shows the

Re: implementing a user login

2006-07-20 Thread Jacob Kaplan-Moss
On Jul 20, 2006, at 1:49 PM, Josh Trutwin wrote: > I was browsing through the docs and tutorials but I'm not sure what > is the best place to look for how to implement the login portion. > I imagine this would require some use of sessions. > > Any tips/pointers? The auth docs are probably the

Re: implementing a user login

2006-07-20 Thread Julio Nobrega
Hello, Did you read http://www.djangoproject.com/documentation/authentication/ ? On 7/20/06, Josh Trutwin <[EMAIL PROTECTED]> wrote: > > Hi, > > I was browsing through the docs and tutorials but I'm not sure what > is the best place to look for how to implement the login portion. > I

implementing a user login

2006-07-20 Thread Josh Trutwin
Hi, Fairly new to Django, I'm looking to use it to implement a quick and dirty status report system. I want people in our team to go to a page where they will have to login, after that they can view and add their status reports. I don't want them able to view other members reports, just their

Re: M2M intermediary tables, looking up objects

2006-07-20 Thread markguy
So, label_ingredient.ingredient.get_absolute_url will work. That's astonishing, both in it's coolness factor and in the fact I never picked up on it while reading docs, tutorials and forums. I'm still not sure I understand how Django manages to know to go get the Ingredient object, but I'm

Re: M2M intermediary tables, looking up objects

2006-07-20 Thread Derek Hoy
On 7/20/06, markguy <[EMAIL PROTECTED]> wrote: > > Derek, > > I appreciate the followup. That works, but I have to say, I don't > understand *why* it works! that's good :) The thing that's hard to pick up is that the ORM (db) stuff isn't quite object-oriented, in the sense that you can't just

Re: M2M intermediary tables, looking up objects

2006-07-20 Thread markguy
Derek, I appreciate the followup. That works, but I have to say, I don't understand *why* it works! It's as if Django automagically follows ForeignKeys, without having to call select_related(). It's also highly confusing that you call 'labelingredient.ingredient.name' and not

Full Time Job Opportunity in Montreal, Canada

2006-07-20 Thread [EMAIL PROTECTED]
Hi Folks, We're looking to hire a Web Developer with Django experience for a new funded startup in Montreal, Canada. Please see the job description below. Appologies in advance if this is not the right group for this type of posting. Regards, Alex Project: www.project-ojibwe.org Job

Re: list of all months where objects are

2006-07-20 Thread Grigory Fateyev
Hello Grigory Fateyev! On Thu, 20 Jul 2006 15:50:22 +0400 you wrote: > > Hello James Bennett! > On Wed, 19 Jul 2006 11:32:00 -0500 you wrote: > > > > > On 7/19/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > > > Now I do like so: [...] Maybe I cann't find any mistake? -- ÷ÓÅÇÏ ÎÁÉÌÕÞÛÅÇÏ!

Re: Caching in Django admin

2006-07-20 Thread Phil Powell
That's excellent - strange I came across the problem right at the same time you were fixing it ;) -P On 20/07/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Jul 20, 2006, at 4:45 AM, Phil Powell wrote: > > It seems odd that this doesn't seem to have popped up as a common > > issue, if

Re: Caching in Django admin

2006-07-20 Thread Jacob Kaplan-Moss
On Jul 20, 2006, at 4:45 AM, Phil Powell wrote: > It seems odd that this doesn't seem to have popped up as a common > issue, if it is indeed something related to site-wide caching - it's > definitely a bit of a show-stopper when it comes to having a client > using an admin interface which doesn't

Re: Caching in Django admin

2006-07-20 Thread James Bennett
On 7/19/06, Phil Powell <[EMAIL PROTECTED]> wrote: > Is there a simple way to disable caching for admin? Or should it > happen automatically? Probably the best way to handle this is to cache only pages that *aren't* being served to a logged-in user; this has several advantages: * The admin

Re: Django WORKS at Servage.net!

2006-07-20 Thread cephire
Carlos, I would definitely like to hear from you. I dont have shell access but have FTP. If you can share your experience, may be I will try and setup mine too. Thanks a lot Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Displaying thumbnails in the admin interface

2006-07-20 Thread Kenneth Gonsalves
On 20-Jul-06, at 8:03 PM, Nebojsa Djordjevic wrote: >> my one crib is that he has dropped python2.3.5 compatibility, but >> this is only in the decorator part and easily changed - 3-4 changes >> in one file >> > > And it's done ;) No more 2.4 requirements. cool -- regards kg

Re: Django v code generators (codecharge)

2006-07-20 Thread Jacob Kaplan-Moss
On Jul 20, 2006, at 9:56 AM, Simon Willison wrote: > > On 20 Jul 2006, at 15:47, walterbyrd wrote: > >> If I were "up to speed" with python and django, could I develop as >> quickly as I could with a code generator? > > Yes. As a general rule, code generators are unnecessary if you are > using a

Re: Django v code generators (codecharge)

2006-07-20 Thread Simon Willison
On 20 Jul 2006, at 15:47, walterbyrd wrote: > If I were "up to speed" with python and django, could I develop as > quickly as I could with a code generator? Yes. As a general rule, code generators are unnecessary if you are using a sufficiently dynamic language (such as Python). Historical

Django v code generators (codecharge)

2006-07-20 Thread walterbyrd
I am looking to make some basic office productivity apps. Stuff like: timesheets, asset management, inventory management, contact management, helpdesk. I know there is stuff that's already out there, but it's not what I really want. I know thre is a learning curve, either way. I think django

Re: Displaying thumbnails in the admin interface

2006-07-20 Thread Nebojsa Djordjevic
Kenneth Gonsalves wrote: > > On 19-Jul-06, at 9:27 PM, arthur debert wrote: > >> You should also take a look at nesh's excellent >> ImageWIthThumbnailField: >> >> http://djangoutils.python-hosting.com/wiki/Thumbnails > > my one crib is that he has dropped python2.3.5 compatibility, but >

Re: Caching in Django admin

2006-07-20 Thread Axel Steiner
Hi, > 1) Am I right in thinking that decorators were only introduced in Python 2.4? yes, decorators were introduced in Python 2.4. But you don't have to use them. A non decorator syntax would be: myview = cache_page(myview, 900) > 2) This would mean overriding the admin views for every

Re: Image auto resizing

2006-07-20 Thread Enrico
That's right! I found out that myself and posted on "Nesh django utils" a few hours ago. Regards. Enrico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Image auto resizing

2006-07-20 Thread Nebojsa Djordjevic
Enrico wrote: > Hi, > > I got it working in the model by using: > from nesh.thumbnail.field import ImageWithThumbnailField > > But I couldn't apply the filter in the template. What is needed to use > the filters? > > Nesh apps are in the "site-packages/nesh" Python Lib folder. > > The closer

Re: M2M intermediary tables, looking up objects

2006-07-20 Thread Derek Hoy
On 7/20/06, markguy <[EMAIL PROTECTED]> wrote: > > I'm not sure I understand. Would the template have it's ingredient info > when it gets to the template? I'm off to mess about with this now, but > I don't see... If your LabelIngredient model has an attribute 'ingredient' (which is a

Django WORKS at Servage.net!

2006-07-20 Thread Carlos Yoder
Awake, Fear Fire Foes! I finally made it! After hitting many walls with customer support at Servage.net, I got Django runnning on their servers! Following on the steps of Jeff Croft's excellent DreamHost tutorial, I first installed Django on BlueHost (with a couple of modifications that I'll

Re: M2M intermediary tables, looking up objects

2006-07-20 Thread markguy
I'm not sure I understand. Would the template have it's ingredient info when it gets to the template? I'm off to mess about with this now, but I don't see... Err, wait. Are you suggesting grabbing all the Ingredients in a hash... err, dict, whatever Python calls it, then pulling

Re: list of all months where objects are

2006-07-20 Thread Grigory Fateyev
Hello James Bennett! On Wed, 19 Jul 2006 11:32:00 -0500 you wrote: > > On 7/19/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > > Now I do like so: [...] > > Unless I'm missing something, what you want is: > > date_list = [] > year_list =

Re: Django with sqlite3

2006-07-20 Thread Deryck Hodge
On 7/20/06, Rajeshwar Singh Jenwar <[EMAIL PROTECTED]> wrote: > django.core.exceptions.ImproperlyConfigured: Could not load > database backend: No > module named pysqlite2. Is your DATABASE_ENGINE setting (currently, > 'sqlite3') > spelled correctly? Available options are: 'ado_mssql', 'mysql',

Django with sqlite3

2006-07-20 Thread Rajeshwar Singh Jenwar
Hi All, I m new to Django. I have intalled django. Using RH FC4. I m practising "Writing your first Django app, part 1". But  when i m running "python manage.py runserver" i m getting error.  

Re: INCREDIBLE free Busty pornstar Video

2006-07-20 Thread stab
reported to the abuse service of google groups --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this

Re: Caching in Django admin

2006-07-20 Thread Phil Powell
Thanks for the feedback guys - good to know that I'm not alone in seeing this behaviour. It seems odd that this doesn't seem to have popped up as a common issue, if it is indeed something related to site-wide caching - it's definitely a bit of a show-stopper when it comes to having a client

Re: M2M intermediary tables, looking up objects

2006-07-20 Thread Derek Hoy
On 7/20/06, markguy <[EMAIL PROTECTED]> wrote: > > Actually, that leaves out the order information from LabelIngredients. > I had tried to do this with select_related(), but I couldn't get it to > follow the ForeignKey into Ingredients. > > Further wizardy (and explanation) would be greatly

Re: Specifying DB table names for intermediate table in an M2M relation?

2006-07-20 Thread Marc de Graauw
Geta wrote: > What's the easiest way to have Django use an existing table for the > intermediate table for a ManyToManyField? In PostgreSQL you could try to: - let Django create its m2m table - drop it - recreate it as a view on your original m2m table - create an rule 'AS ON INSERT ... DO

Re: Caching in Django admin

2006-07-20 Thread Ian Holsman
is there a similar decorator to cache the output of a tag?regardsIanOn 20/07/2006, at 6:28 PM, Axel Steiner wrote:Hi, It looks like the right way to deal with this is to implement per pagecaching, but that doesn't look too simple to me. I hope that someonewill prove me wrong by posting some simple

Re: Caching in Django admin

2006-07-20 Thread Axel Steiner
Hi, > It looks like the right way to deal with this is to implement per page > caching, but that doesn't look too simple to me. I hope that someone > will prove me wrong by posting some simple instructions for implemeting > per page caching. Alternatively please post a mechanism for disabling >

Re: bulk delete question

2006-07-20 Thread Le Roux Bodenstein
That's what I want (and basically what I'm doing now), but I just feel like it is quite dangerous having that there and not easy to override. If someone else works on my code I have to know tell them not to call the bulk delete or "bad things might happen". There's no way of "making it idiot

Re: And-ing together searches on a ManyToMany field.

2006-07-20 Thread Malcolm Tredinnick
On Thu, 2006-07-20 at 08:35 +0200, Neilen Marais wrote: > Matthew, > > Thanks for the info. > > On Thu, 20 Jul 2006 10:05:43 +1000, Matthew Flanagan wrote: > > >> In [73]:Image.objects.filter(tags__id=1).filter(tags__id=2) > >> Out[73]:[] > >> > > > > I think you want to use: > > > >

Re: And-ing together searches on a ManyToMany field.

2006-07-20 Thread Neilen Marais
Matthew, Thanks for the info. On Thu, 20 Jul 2006 10:05:43 +1000, Matthew Flanagan wrote: >> In [73]:Image.objects.filter(tags__id=1).filter(tags__id=2) >> Out[73]:[] >> > > I think you want to use: > > Image.objects.filter(tags__id__in=[1,2]).distinct() Alas, this returns all the images