Re: Re: problems turning debug off

2006-12-05 Thread luxagraf
Adrian Thanks for your help. I check the logs and the error generated was "TemplateNotFound" for 404.html. So I created a 404 template and now it works fine (even though the page doesn't generate a 404 error), Curiously it only did that on pages that are served by the flatpages app, must be some

Re: problems turning debug off

2006-12-05 Thread Adrian Holovaty
On 12/6/06, luxagraf <[EMAIL PROTECTED]> wrote: > I'm trying to launch a site and every time I turn off django's > debugging or python debugging I start getting 500 error pages, but > when the debugging is on none of those pages throw any errors? > > Anyone seen this before? > > Am I missing somet

problems turning debug off

2006-12-05 Thread luxagraf
I'm trying to launch a site and every time I turn off django's debugging or python debugging I start getting 500 error pages, but when the debugging is on none of those pages throw any errors? Anyone seen this before? Am I missing something. sng --~--~-~--~~--

Re: Admin 404s on users

2006-12-05 Thread [EMAIL PROTECTED]
Grasping at straws here, but I've been running lots of comparison sql statements looking for any disparities or oddities, things like: Select user_id from auth_user_groups where user_id not in (select id from auth_user) and I notice that user 1 (admin, superuser, me) isn't in auth_user_groups. Tha

Re: Converting a Django site to flat HTML

2006-12-05 Thread goon
Hi James, I was pondering the same thing just the other day - trying to get flat pages from django site. Now at first I thought using *wget* would suffice, but I also needed to do other things with the files (archiving, uploading to ftp). So I needed some way of interacting with the static pages

Re: Re: Django + FastCGI Problems

2006-12-05 Thread Uros Trebec
I am sorry to report that this method does NOT work on my machine/account. I've tried different users (on the same machine) and it does not work. Symptoms are the same. I guess it's just my machine the one that is F00! And they refuse to move my account to another one. :( Anyone knows about any c

creating alerts

2006-12-05 Thread [EMAIL PROTECTED]
i am trying to build an alert system where i want to send out e-mail alerts periodically (every 5 mins, 15 mins etc..) until a specified time. this alert has to be created dynamically and i dont know this at the beginning of launching the python program. the alerts created is stored in a postgres

Anonymous Sessions

2006-12-05 Thread [EMAIL PROTECTED]
I'd like a simple option to disable this, any plans to implement something of the sorts? The problem is our servers are dieing around 1mil sessions due to every single unique getting a session.. this becomes a seroius problem when those 1 mil sessions happen in less than a day. --~--~-~

Re: OpenID

2006-12-05 Thread Sandro
Ian Holsman deserves to be noted. http://feh.holsman.net/articles/2006/07/14/zyons-openid-what-a-match --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: High Load

2006-12-05 Thread Jeremy Dunck
On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > We tried Apache and it seemed slower. We're doing probably 1-2 million > uniques today and the sessions are now killing the website :) > > This is on like 12 web servers now too. It sounds like you must be I/O bound. What's your CPU ut

Re: High Load

2006-12-05 Thread [EMAIL PROTECTED]
Let me add, that this could simply be SQL overloaded right now. We had managed to get all the servers down to 2-4 load, sometimes a little more. Problem was something related to python creating zombie processes, and the other guy I worked with managed to find a solution. We may test postgreSQL to

Re: High Load

2006-12-05 Thread [EMAIL PROTECTED]
We tried Apache and it seemed slower. We're doing probably 1-2 million uniques today and the sessions are now killing the website :) This is on like 12 web servers now too. On Dec 4, 11:42 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > We are running lighttpd with fa

Re: Syndication for objects

2006-12-05 Thread [EMAIL PROTECTED]
Sorry about that - just realized that it was a problem with the browser (Safari), not Django! --~--~-~--~~~---~--~~ 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@

OpenID

2006-12-05 Thread Caz
Has anyone used OpenID on any of their Django powered websites? I discovered it just now and it looks to be a really elegant cross website user authentication solution. See http://www.lifewiki.net/openid/OpenIDLibraries It even has python libraries available: http://www.openidenabled.com/openid/

Syndication for objects

2006-12-05 Thread [EMAIL PROTECTED]
Hey Again, I am using the syndication framework to generate feeds for my site. With this, I want to have feeds which will list the posts in a category. To do this, I am currently using the following code: --- urls --- feeds = { 'post': latest_entries, 'category': posts_by_catego

Re: graceful shopping cart questions

2006-12-05 Thread Noah
No 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 [EMAIL PROTECTED] For m

Editing multiple objects in a single page

2006-12-05 Thread [EMAIL PROTECTED]
Hello everyone, I have a project for work that I can do in django and I have a little problem. Basically, my create and edit forms must edit three different kind of objects: they both ask information about a company (ForeignKey to a contact), a contact and a project (ForeignKey to a company.) M

Re: Specifying a pub date with syndication

2006-12-05 Thread [EMAIL PROTECTED]
Suriya wrote: > [EMAIL PROTECTED] wrote: > > > def items(self): > > return Post.objects.order_by('-pub_date')[:5] > > > > The pub date is in Post > pub_date > > def items(self): > return [ i.pub_date for i in Post.objects.order_by('-pub_date')[:5] ] Thanks for posting this. Howe

Re: Specifying a pub date with syndication

2006-12-05 Thread Suriya
[EMAIL PROTECTED] wrote: > def items(self): > return Post.objects.order_by('-pub_date')[:5] > > The pub date is in Post > pub_date def items(self): return [ i.pub_date for i in Post.objects.order_by('-pub_date')[:5] ] --~--~-~--~~~---~--~~

Specifying a pub date with syndication

2006-12-05 Thread [EMAIL PROTECTED]
Hey, Just a quick question - what would I need to add to the following feed class to get pub dates for each item? class latest_entries(Feed): title = "oBeattie - Latest Posts" link = "/blog/" description = "Latest posts on oBeattie" def items(self):

Re: Django and mod_python issues

2006-12-05 Thread Tipan
Thanks for the advice. Adding the line: PythonPath "['d:/program files/xampp/htdocs'] + sys.path" to my httpd.conf overcame the issue with loading myproject module. Simple when you know how. Thanks again, Tim --~--~-~--~~~---~--~~ You received this message

Re: No module name py. Newby

2006-12-05 Thread Snirp
I was doing just that in the original post. I fixed that and got the error in the second post. I am going to give it another try now Waylan Limberg wrote: > On 12/5/06, Snirp <[EMAIL PROTECTED]> wrote: > > > > Hi there, > > > > I am starting off with django and decided to stick with the "django

Re: No module name py. Newby

2006-12-05 Thread Snirp
Great Tone! This works. Just one thing... you are supposed to show me the general direction, not to solve my problems with complete code included. How will i ever learn? ;-) If you were a pretty girl, i'd kiss you. Come to speak of it, I would do just that with any pretty girl. Well you get t

Re: Auto-login with REMOTE_USER

2006-12-05 Thread dchandek
Thanks, Brian and Ivan! The CAS example was helpful in figuring things out. Turns out the solution was simple, but the Django documentation was not as much help as I would have liked -- I guess because, again, the general assumption is that Django is going to handle the authentication credentials

Re: Singleton model instance

2006-12-05 Thread Jeff Forcier
As James and Fredrik have implied, I believe the proper solution here is to abstract things enough so that you *can* map the concept to a relational database; in this case, assuming that every 'Page' has an identifier, a 'Title' and, perhaps, multiple 'Sections' (each with an identifier and text),

Re: Django and mod_python issues

2006-12-05 Thread Waylan Limberg
On 12/5/06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > > Tipan a écrit : > > > PythonPath "['d:/program files/xampp/htdocs/myproject'] + sys.path" > > Try : PythonPath "['d:/program files/xampp/htdocs/'] + sys.path" Actually, you may want to include both lines. That way, `myproject.settin

Re: No module name py. Newby

2006-12-05 Thread tonetheman
I think unless you are using the stuff from the bleeding edge the second object in the tuple should be a string. Check out this doc (http://www.djangoproject.com/documentation/url_dispatch/) and see how they did the urls.py and see if that works better. Something like this... urlpatterns = patte

Re: [importError] No module name py. Newby

2006-12-05 Thread Waylan Limberg
On 12/5/06, Snirp <[EMAIL PROTECTED]> wrote: > > Hi there, > > I am starting off with django and decided to stick with the "django > book" > > The webserver initiates just fine, and i made the first example: return > current time when requested the URL: /now/ > > It returns the following error whe

Re: Admin 404s on users

2006-12-05 Thread [EMAIL PROTECTED]
Syncdb didn't appear to do anything. Adrian, I think you're right about ObjectDoesNotExist, and I think something in my database is off... any Ideas how to track it down? Adrian Holovaty wrote: > On 12/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It doesn't give me anything to go on:

Re: No module name py. Newby

2006-12-05 Thread Snirp
ok, made a typo, but i am still not out of the woods... I now have a AttributeError at /now/ error Exception Value:'function' object has no attribute 'rindex' Traceback (most recent call last): File "d:\webdev\python\django\core\handlers\base.py" in get_response 65. callback, callback

Re: Support Ticket System

2006-12-05 Thread [EMAIL PROTECTED]
On Dec 1, 9:51 pm, "Bret Walker" <[EMAIL PROTECTED]> wrote: > On 12/1/06, James Bennett <[EMAIL PROTECTED]> wrote: > > > > > > > On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > 1. Mark fields as optional. > > > I don't like this because there will be lots of null values > >

Re: Admin: recursive edit_inline possible?

2006-12-05 Thread Adrian Holovaty
On 12/5/06, Darin Lee <[EMAIL PROTECTED]> wrote: > I am trying to get an admin form (change/detail) that contains A's, > B's and C's fields inline when I visit A's change/update pages. In > short, is it possible to recurse "edit_inline" arguments across three > tables (where C is indirectly relate

Re: SQLAlchemy Progress

2006-12-05 Thread Adrian Holovaty
On 12/5/06, Burhan <[EMAIL PROTECTED]> wrote: > Is there any update on the SQLAlchemy integration project? The last > thread is too old for me to reply to. It looks like no work has been checked in for that branch, aside from the occasional merges from trunk changes. You can follow the progress

[importError] No module name py. Newby

2006-12-05 Thread Snirp
Hi there, I am starting off with django and decided to stick with the "django book" The webserver initiates just fine, and i made the first example: return current time when requested the URL: /now/ It returns the following error when requesting the url: Traceback (most recent call last): Fi

Re: Django and mod_python issues

2006-12-05 Thread Nicolas Steinmetz
Tipan a écrit : > PythonPath "['d:/program files/xampp/htdocs/myproject'] + sys.path" Try : PythonPath "['d:/program files/xampp/htdocs/'] + sys.path" Nicolas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Django and mod_python issues

2006-12-05 Thread Jeremy Dunck
On 12/5/06, Tipan <[EMAIL PROTECTED]> wrote: ... > EnvironmentError: Could not import settings 'myproject.settings' (Is it > on sys.path? Does it have syntax errors?): No module named > myproject.settings ... > PythonPath "['d:/program files/xampp/htdocs/myproject'] + sys.path" > Can anyone g

Django and mod_python issues

2006-12-05 Thread Tipan
I've seen various posts with similar problems, but not managed to find consistent advice on trouble shooting this issue. I've got an installation of xampp Apache 2.2 and mod_python 3.2.10 and Python 2.5. Running on Windows 2003 server. I have mod_python working fine in apache - I can view the co

Saving relation information

2006-12-05 Thread [EMAIL PROTECTED]
Hi. I'm wondering is there any way to determine changes made in relations for particular object from the model save method? Let's say that we have a model class with name and some many-to-many field. Now for example through admin interface we change realtions for our object. Btw objects history in

Admin: recursive edit_inline possible?

2006-12-05 Thread Darin Lee
Hi all, I have three tables, A,B, abd C which have admin classes. B has a ForeignKey field to A, and C has a ForeignKey field to B. I am trying to get an admin form (change/detail) that contains A's, B's and C's fields inline when I visit A's change/update pages. In short, is it possible to

SQLAlchemy Progress

2006-12-05 Thread Burhan
Hello: Is there any update on the SQLAlchemy integration project? The last thread is too old for me to reply to. Regards, Burhan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: using a global login form

2006-12-05 Thread Guillermo Fernandez Castellanos
Hi, For every page login form, check: http://brehaut.net/blog/2006/08/21/django-user-logins/ No need to use the login view. Use the authenticate function instead. Hope it helps, G On 12/4/06, Milan Andric <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm having the same problem as this thread: >

Re: Admin 404s on users

2006-12-05 Thread MerMer
Yes, I broke the model that was being edited by the USER model. From memory mine also validated OK, because the problem lay with some of the data in the DB - not the actual structure of the model. That's why I was able to see a complete USER list and only got the error when I clicked on the i

Programatic defaults

2006-12-05 Thread Ross Burton
Hi, Is it possible to have programmatic defaults in a model? If I have a many to one relationship between A and B, I'd like A.flob to default to B.flob. Also A.foo should default to B.foo if it isn't specified. Would the best way of doing this be in a custom save() method in the model? Thanks

Read only fields once created

2006-12-05 Thread Ross Burton
Hi, Is it possible to have fields in the model that can be set at object creation, but are immutable after that? I have an "original estimate" field that should only be set when creating the object, and never edited after that. Thanks, Ross --~--~-~--~~~---~--~