Re: Django error

2009-09-20 Thread Daniel Roseman
On Sep 20, 7:47 am, zweb wrote: > When I try to download a file through django in IE , I get > > [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]     response = > func(request, response), referer:http://www.com > [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]   File "/home/ > pmc/

Re: Order_by on greatgrandparent.name

2009-09-20 Thread Daniel Roseman
On Sep 20, 4:24 am, adelaide_mike wrote: > I have a multi-table model, each table related to the next by a one to > many foreign key. > > I wish to do: > > q = Child.objects.filter(date__gte=startdate).order_by > ('parent.grandparent.greatgrandparent__name') > > This raises an exception no such c

Re: Admin dashboard : hide and merge modules

2009-09-20 Thread patrickk
you can now use GrappelliSite instead of AdminSite which gives you some options for the admin index page. take a look at http://code.google.com/p/django-grappelli/wiki/customizingindex for more information. you can hide and merge modules. renaming is a bit more complicated since it affects subsit

Re: passenger_wsgi import error

2009-09-20 Thread Daniel Roseman
On Sep 20, 2:33 am, "neri...@gmail.com" wrote: > I'm trying to use passenger_wsgi on Dreamhost and keeep getting 'An > error occurred importing your passenger_wsgi.py'. I think I've located > the syntax that is causing the problem but I don't know how to resolve > it and Dreamhost doesn't offer a

Re: ImageField anti-duplication

2009-09-20 Thread A. Rossi
Yup, that did it! Thanks for pointing that out! That article was hard to find in the documentation. On Sep 12, 7:58 pm, "A. Rossi" wrote: > I had not considered writing a custom Storage class. I may try that if > there are no other alternatives. > > Any other ideas/solutions? > > On Sep 12, 5:

Re: Django error

2009-09-20 Thread Matthias Kestenholz
On Sun, Sep 20, 2009 at 8:47 AM, zweb wrote: > > When I try to download a file through django in IE , I get > > [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]     response = > func(request, response), referer: http://www.com > [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]   Fil

sqlite3+fastcgi setup problem [mac 10.6]

2009-09-20 Thread kelley....@gmail.com
*Background* I am working with python 2.6 and django 1.2 on an OSX 10.6 ("snow leopard") box. I am using fastcgi, not the development server. The machine does not have the python/mysql linkage, and I have had troubles installing it, so I am trying to use sqlite3. I have an existing project, whi

django forum

2009-09-20 Thread dijxtra
Is there a free robust django forum app? Or more precisely, a free and robust forum app which uses django.contrib.auth for authentication? Or should I just try out those several projects enabling django to access phpBB's user info and use phpBB3? --~--~-~--~~~---~--~--

Re: django forum

2009-09-20 Thread Jonas Obrist
dijxtra wrote: > Is there a free robust django forum app? Or more precisely, a free and > robust forum app which uses django.contrib.auth for authentication? > > Or should I just try out those several projects enabling django to > access phpBB's user info and use phpBB3? > > > There's django-fo

Re: django forum

2009-09-20 Thread dijxtra
On Sep 20, 6:27 pm, Jonas Obrist wrote: > There's django-forum and a couple of others (google them). I'm also > working on a forum system in django which I plan to release one day. But > at the moment I fear it's too unstable and coupled to other parts of my app. I really did google before askin

formfield_overrides for Auth.User?

2009-09-20 Thread Brandon Taylor
Hello everyone, I've implemented a custom backend to use an email address instead of a username. Unfortunately, this prevents me from using the built-in User change form within admin. I'm looking for a way to override the username form field with my own field, or at least change the validation o

Re: sqlite3+fastcgi setup problem [mac 10.6]

2009-09-20 Thread kelley....@gmail.com
This question is superceded by one I just posted. Rather than waste bandwidth, I'll post an overall solution when I figure one out. -- dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: date inside url

2009-09-20 Thread dijxtra
Huh, thank you both for in-depth answers. I implemented Gonzalo's idea with context processors and it worked like a charm... and then I realised that I could achieve the same thing with: url(r'^today$', 'today', name='today'), + {% url today %} + def today(request): t = datetime.date.today()

sqlite3 permissions (osx deployment setup)

2009-09-20 Thread kelley....@gmail.com
I am having troubles with sqlite3 on my OSX 10.6 box, using fastcgi for deployment. On this box, the webserver is called user _www, and that explains some of the tricks I'm doing at the commandline, in the tests I show below. I've given the user _www both read and write permissions for the datab

Saving ModelForm with commit=False seems to be generating an INSERT in the database

2009-09-20 Thread Parag Shah
Hello, I have a UserProfile Model object which has the django.contrib.auth.models.User as it's ForeignKey. There is a register function in the view module, which goes like this: def register(request): if request.method == 'POST': user_form = UserCreationForm(request.POST) user_pro

Re: django forum

2009-09-20 Thread Brian Neal
On Sep 20, 11:10 am, dijxtra wrote: > Is there a free robust django forum app? Or more precisely, a free and > robust forum app which uses django.contrib.auth for authentication? > > Or should I just try out those several projects enabling django to > access phpBB's user info and use phpBB3? The

mod_python to mod_wsgi

2009-09-20 Thread When ideas fail
Hello, I've recently updated my setup to use mod_wsgi instead of mod_python. I'm having some problems with my urls. The home page loads fine but none of my other urls seems to work (404 errors). They worked before with mod_python. Do i need to include something else in my .wsgi file? import os im

Translating App Names

2009-09-20 Thread SaiaGo
I'm trying to make an Israeli site (which means it should be written in Hebrew) using the latest SVN and so far Django made it so easy I can't believe it's free. I got a simple magazine app with up and running in less then a day, and I barely know Python! My only problem so far is application name

Re: mod_python to mod_wsgi

2009-09-20 Thread Daniel Roseman
On Sep 20, 7:57 pm, When ideas fail wrote: > Hello, I've recently updated my setup to use mod_wsgi instead of > mod_python. I'm having some problems with my urls. The home page loads > fine but none of my other urls seems to work (404 errors). They worked > before with mod_python. Do i need to in

Re: Saving ModelForm with commit=False seems to be generating an INSERT in the database

2009-09-20 Thread Daniel Roseman
On Sep 20, 6:54 pm, Parag Shah wrote: > Hello, > > I have a UserProfile Model object which has the > django.contrib.auth.models.User as it's ForeignKey. > > There is a register function in the view module, which goes like this: > > def register(request): >   if request.method == 'POST': >       u

Deploying to UserDir

2009-09-20 Thread dijxtra
I'm trying to deploy my first django app (oh no! :-D). I have a user account on a server with Apache2. That is: I don't have root access and I don't have access to apache2 config files. Our server has UserDir enabled, so http://my.server.url/~my_home/ maps to $HOME/ public_html. According to this:

Re: Translating App Names

2009-09-20 Thread Joshua Russo
On Sun, Sep 20, 2009 at 6:22 PM, SaiaGo wrote: > > I'm trying to make an Israeli site (which means it should be written > in Hebrew) using the latest SVN and so far Django made it so easy I > can't believe it's free. I got a simple magazine app with up and > running in less then a day, and I bare

Re: Translating App Names

2009-09-20 Thread SaiaGo
I have already read it in the docs. My problem isn't model names, it's the app's name I can't figure how to translate. Thanks for trying to help. On Sep 20, 10:41 pm, Joshua Russo wrote: > On Sun, Sep 20, 2009 at 6:22 PM, SaiaGo wrote: > > > I'm trying to make an Israeli site (which means it sh

ImportError: Could not import settings 'WWlove.settings'

2009-09-20 Thread Jose Sibande
Hi, I get this error in /var/log/apache2/error.log: [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError: Could not import settings 'WWlove.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings And my /home/jose/WWlove/apache/django.wsgi Looks like t

Re: Saving ModelForm with commit=False seems to be generating an INSERT in the database

2009-09-20 Thread Andrew Mckay
> Why is an INSERT statement being generated even though I have > commit=False? The two inserts are causing an Exception which prevent > the actual user data from being saved (a row in the > courses_userprofile table does get created, but with all columns > except the id being blank) Its odd that

Re: Translating App Names

2009-09-20 Thread Ramiro Morales
On Sun, Sep 20, 2009 at 4:22 PM, SaiaGo wrote: > > I'm trying to make an Israeli site (which means it should be written > in Hebrew) using the latest SVN and so far Django made it so easy I > can't believe it's free. I got a simple magazine app with up and > running in less then a day, and I bare

Naming and scoping guidelines to make apps that are actually 'pluggable'?

2009-09-20 Thread Hostile Fork
Hello all, Page one of the tutorial features a large picture of a lightbulb, next to a statement of Philosophy: "Django apps are 'pluggable': You can use an app in multiple projects, and you can distribute apps, because they don't have to be tied to a given Django installation." The tutori

limiting the scope of a ForeignKey relation to within a model?

2009-09-20 Thread Doug
Lets say for instance that I have the following model, Project, which is related to an Image model in the following ways: class Project(models.Model): ... images = models.ManyToManyField(Image, related_name='image') lead_image = models.ForeignKey(Image, related_name='lead_image')

Adding Django-Attachments to JaikuEngine

2009-09-20 Thread MateComp
Hi Everyone, We need to know is there any way to add the "attach" option to a project as JaikuEngine that uses Django. If it is possible, we need to know how to do that, where to place de django-attachments folders, files, etc... Thank you for your attention. --~--~-~--~~---

Editable sitemap priority

2009-09-20 Thread Chris Moffitt
I'm curious if anyone has done any work in making certain aspects of the sitemap framework editable via the admin. For instance, someone might want their marketing folks to tweak the various priorities or changrefreq's of specific urls. I know it can be done by editing code and subclassing Sitemap

www.myyshop.com NIKE AIR JORDAN FORCE FUSION SHOES AJF 5 V JORDANs 5 FUSION NIKE

2009-09-20 Thread dong maomao
http://www.myyshop.com Quality is our Dignity; Service is our Lift. you can securely buy the goods that you like in my myyshop.I will serve you all day. ..._|\__ _,__ ../ `(MyShopsBetterThanHisShop=) ) ]___ . -

Re: Using Psycopg2 on Windows

2009-09-20 Thread walty
hi, you may also try to install the visual C++ 2005 redistributable package: http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en have a nice day walty On Aug 14, 10:08 pm, James Walmsley wrote: > Just in case anyone happens to be still

Form Select Selected Choice

2009-09-20 Thread Leonel Nunez
Hello: I'm using form.base_fields['MYFIELD'].widget=widgets.Select(choices=CA) to fill a tag, all works fine but I can't find how to add a SELECTED value, been with this issue all day .. Thank you leonel --~--~-~--~~~---~--~~ You received this message

About using django-tinymce

2009-09-20 Thread taijirobot
Hi, guys, I'm learning django recently and I am trying to add a rich text editor to the places where long formated text like blog post are needed (the site is running on local machine with the default django server). I tried to use django-tinymce : http://code.google.com/p/django-tinymce/ and al

admin app date format: locale dependent

2009-09-20 Thread Tim Bowden
I'm getting started with django (& python), and having a bit of a play with the admin app while doing the tutorial. So far all good, but how do I set the date field to be locale dependent, ie, display & accept dates using a format that makes sense for my locality, ie, DD/MM/? Thanks, Tim Bow

Records doesn't sometimes get upated

2009-09-20 Thread Szymon
Hello, I have strange problem. I will give example. I have model: class foo(models.Model) bar = models.IntegerField() and method in it def add_bar(c): from something.models import bar_log b = bar_log(foo=self, cnt=c) b.save() self.bar += c self.save() ... and now the problem. Some

Re: Translating App Names

2009-09-20 Thread patrickk
in the meantime, you can translate app names like this: http://groups.google.com/group/django-users/msg/ef5a723983e56e96 the whole discussion is here: http://groups.google.com/group/django-users/browse_thread/thread/f8fcbe25e3327c5d/ef5a723983e56e96?#ef5a723983e56e96 it´s over-complicated to tra