django/apache/mod_python

2006-05-19 Thread Lioudmila Belenkaia
Hi GoogleGroups, I am running django (version 0.91) on the locale computer. It works fine. Now our group needs to have it working with Apache and mod_python on a production server. Apache 2.2/mod_python 3.3 are installed and the file http.conf is edited according to the documentaiion "How

Re: dojo

2006-05-19 Thread patrickk
i still have to do some testing with different browsers. after that, i will add the script/manual to the wiki. patrick Am 18.05.2006 um 20:29 schrieb lcaamano: > > You should add these dojo info to the cookbook mentioned above. > > http://code.djangoproject.com/wiki/CookBookAdminTools > > --

Re: django/apache/mod_python

2006-05-19 Thread Alexandre CONRAD
> 1. the pretty django layout disappears; It's something about the medias path (templates, css) for the admin. This should help: http://www.djangoproject.com/documentation/static_files/ > 2. now it is not possible to save the date in a database > (Mysql, version 4.0.24) I can't

Re: integrating complex SQL updates with manipulators?

2006-05-19 Thread mazurin
Ivan Sagalaev wrote: > Is it necessery that moveNode is called before get_validation_errors? > If not, I think this should go into manipulator.save(). If yes, why? No it's not necessary ... I see, so I should override manipulator.save() then? Does this mean subclassing manipulator?

error in your SQL syntax near '(DATE_FORMAT... on adding date_hierarchy = 'pub_date'

2006-05-19 Thread mlm
Bug? Or something I'm doing wrong? In tutorial part 2, just after adding date_hierarchy = 'pub_date' to my Poll.Admin class, when I reload the /admin/polls/poll/ page, I get: ProgrammingError at /mysite/admin/polls/poll/ (1064, "You have an error in your SQL syntax near

Re: Problem with Django Captcha

2006-05-19 Thread Scott Anderson
Thanks for the reply, Ian. I have those libraries installed. I'm sure it's just some configuration I've done improperly. I've sent you a gmail contact (scottanderson42); since you're in Australia I'm sure I'll have to wait for the daylight terminator to come back round your way again. :-)

Re: django/apache/mod_python

2006-05-19 Thread liudmila
Hello Alexandre, thanks for the help. Now I am trying to correct. With regards Liudmila --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Locale from URL Middleware

2006-05-19 Thread David Larlet
2006/4/5, Rudolph <[EMAIL PROTECTED]>: I would like to add another good reason: Another nice effect languagecodes in the URL is that search engine crawlers can easily get all yourcontent.My customers often want something like this: www.example.com -> site in the main language of your

Re: Using existing database shema

2006-05-19 Thread Filipe
Hi again, I guess it's time to start experimmenting then :) thanks for the help Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django and WSGI

2006-05-19 Thread PythonistL
I received a reply from Dreamhost: " However, I have been on the browser and your website is working now. So it doesn't sound like there is a configuration problem on the server, but I suspect that there may be an intermittent high load issue. Normally the system admins correct high load

FileField in admin

2006-05-19 Thread Jay Parlar
So I have a model that looks like this: class FirmwareUpload(models.Model): # represents a POSTed VSSL file firmwarefile = models.FileField(upload_to="uploads/") tweaks = models.FileField(upload_to="uploads/") postreleasetweaks = models.FileField(upload_to="uploads/")

Re: FileField in admin

2006-05-19 Thread Jay Parlar
Never mind, I solved it. My problem was my MEDIA_URL. I had: localhost:8000/site_media but it looks like I needed: http://localhost:8000/site_media/ (notice that I also needed that backslash at the end) Jay P. --~--~-~--~~~---~--~~ You received this message

Re: no INSTALLED_APPS

2006-05-19 Thread Joseph Kocherhans
On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >>> import sys > >>> print sys.path > ['', > '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip', > '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', >

Re: no INSTALLED_APPS

2006-05-19 Thread [EMAIL PROTECTED]
Stirman$ echo $PYTHONPATH /Users/Stirman/Library/Frameworks/Python.framework/Versions/2.4:/Users/Stirman/Development/django_src still same issue?! On #2, I assume you were referring to the PYTHONPATH, not the PATH, right? Thanks, Stirman --~--~-~--~~~---~--~~

Re: Django and WSGI

2006-05-19 Thread Michael Radziej
PythonistL wrote: > I received a reply from Dreamhost: > > " > > However, I > have been on the browser and your website is working now. So it doesn't > sound > like there is a configuration problem on the server, but I suspect that > there may be an intermittent high load issue. Normally

Re: no INSTALLED_APPS

2006-05-19 Thread Jeremy Dunck
On 5/19/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > 2 problems. > > 1. python isn't picking up your PYTHONPATH. Try > >echo $PYTHONPATH > > at the command line. Are your sure it's set? PYTHONPATH on OS X has issues. See this, and associated thread:

Re: no INSTALLED_APPS

2006-05-19 Thread Jeremy Dunck
On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On #2, I assume you were referring to the PYTHONPATH, not the PATH, > right? Right. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: no INSTALLED_APPS

2006-05-19 Thread Joseph Kocherhans
On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Stirman$ echo $PYTHONPATH > /Users/Stirman/Library/Frameworks/Python.framework/Versions/2.4:/Users/Stirman/Development/django_src > > still same issue?! > > On #2, I assume you were referring to the PYTHONPATH, not the PATH, > right?

Re: no INSTALLED_APPS

2006-05-19 Thread [EMAIL PROTECTED]
Hmm, that thread is a little above my head... I think my system is just too messy with both versions of django installed, and two version of Python, heh. Maybe the best course of action would be to remove Python 2.4, if I can, remove both installs of django, and try to start over, just using

AttributeError on delete object with ManyToManyField('self')

2006-05-19 Thread mlm
I get an AttributeError on deleting an object with a ManyToManyField('self'). The error is below. My Django is an svn checkout from yesterday. I understand that there should be no mediaset_set attribute because the many-to-many relationship is symmetrical, as documented here:

Re: no INSTALLED_APPS

2006-05-19 Thread [EMAIL PROTECTED]
Only error on last line: electric-boogaloo:~/Development Stirman$ echo `$HOME/Development/django_src` >> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django.pth -bash: /Users/Stirman/Development/django_src: is a directory electric-boogaloo:~/Development

Re: Announcing Tabblo, a Django app

2006-05-19 Thread iGL
nice idea & nice realization. congrats! --~--~-~--~~~---~--~~ 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

Re: no INSTALLED_APPS

2006-05-19 Thread Jeremy Dunck
On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > echo > `$HOME/Development/django_src` >> > /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django.pth ... Sorry, I'm a dork. I did ` instead of " before. Try this: echo

Re: no INSTALLED_APPS

2006-05-19 Thread [EMAIL PROTECTED]
no errors this time... electric-boogaloo:~/Development Stirman$ echo "$HOME/Development/django_src" > /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django.pth electric-boogaloo:~/Development Stirman$ python Python 2.3.5 (#1, Mar 20 2005, 20:38:20) [GCC 3.3

Re: no INSTALLED_APPS

2006-05-19 Thread Jeremy Dunck
On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > no errors this time... > I assume that's a good thing? It means your django environment is now sane. You should run through the tutorial again, since some incompatible changes were made between 0.91 and trunk, but otherwise, you

Re: Many to Many challenges

2006-05-19 Thread Chris Moffitt
--SOLUTION--- > Anyway, let us know if you find something and I'll keep this turning > over in the back of my mind. I've been continuing to pull my hair out on this one & by chance was perusing the django-dev mailing list and saw this link -

Re: Post data for multi step form

2006-05-19 Thread Eric Walstad
On Friday 19 May 2006 10:07, tomass wrote: > Hi Folks, > > I'm sure there's a better solution for this, just not sure what it > is... > > I have a 4 step form and I'm currently capturing all posted data > between each step and then re-posting it through hidden input fields > and recapturing it at

Re: integrating complex SQL updates with manipulators?

2006-05-19 Thread Ivan Sagalaev
mazurin wrote: >No it's not necessary ... I see, so I should override >manipulator.save() then? Does this mean subclassing manipulator? > > Yes. I didn't quite understand from your email if you are going to write a custom manipulaor anyway or you want to mix new code into an automatic

Re: Locale from URL Middleware

2006-05-19 Thread jon1012
I've done an helper function that strips the selected language from the current url and return it... Usefull to make a language change button.. All you have to do is to make a link to the url with '/fr' for example in front of the value given by the function: from django.conf import settings def

Re: Post data for multi step form

2006-05-19 Thread Doug Van Horn
For what it's worth, I have a similar concept in storing the contents of a shopping cart. I created a 'ShoppingCart' object which can hold items and their quantities, plus it adds some convenience methods like getting the list of items, the total cost, etc. I store this object in the user's

Re: Post data for multi step form

2006-05-19 Thread Chris Moffitt
> > For what it's worth, I have a similar concept in storing the contents > of a shopping cart. I created a 'ShoppingCart' object which can hold > items and their quantities, plus it adds some convenience methods like > getting the list of items, the total cost, etc. I store this object in >

Re: Having problems with inspectdb / introspection

2006-05-19 Thread Josh Trutwin
On Wed, 17 May 2006 14:12:23 -0700 "pbx" <[EMAIL PROTECTED]> wrote: > > > ValueError: year is out of range > > > > I'm not sure why "year is out of range" is a problem - maybe > > because the table has TIMESTAMP column types? > > It's probably because you have invalid data (like -00-00) in

Re: Getting just the IDs?

2006-05-19 Thread Adrian Holovaty
On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is it possible to get a list of just the instance IDs of a specific > class, instead of the entire list of objects? Hey Daniel, Yes, indeed! You're looking for get_values(). For version 0.91 and earlier:

View Post Processing

2006-05-19 Thread Siah
Reviewing my own application, I realized there are much my view has to take care of that doesn't need to delay HttpResponse to the user. For instance, I need to - extract the newly uploaded PDF file to extract and index its text. - create PDF docs for new orders - Resize uploaded image, etc All