Re: where is the code for the date widget in admin

2007-02-23 Thread Kenneth Gonsalves
On 24-Feb-07, at 12:22 PM, oggie rob wrote: > You need to include django/contrib/admin/media/js/calendar.js & admin/ > DateTimeShortcut.js, and put 'class="vDateField"' or "vTimeField" for > each widget. The html is dynamically generated by javascript when you > load the page (based on class

Re: where is the code for the date widget in admin

2007-02-23 Thread oggie rob
You need to include django/contrib/admin/media/js/calendar.js & admin/ DateTimeShortcut.js, and put 'class="vDateField"' or "vTimeField" for each widget. The html is dynamically generated by javascript when you load the page (based on class name), which is why you can't find the js code from the

where is the code for the date widget in admin

2007-02-23 Thread Kenneth Gonsalves
hi, i was looking for the code for the date widget in admin, been searching for two days and cannot find it. Could some kind soul point me to it? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received

Re: Django/CAS/login_url and @permission_required

2007-02-23 Thread Brian Beck
On Feb 23, 5:31 pm, "Chris Green" <[EMAIL PROTECTED]> wrote: > What is happening in the CAS case, is it redirects to the CAS login > url, which says the user is authorized and redirects to this > particular login page and it repeats forever if the user does not have > authorized permissions. > >

Re: Pycon Djangonauts

2007-02-23 Thread Eric Walstad
Hey David and any other PyCon Djangonauts... David Cramer wrote: > Anyone else around who's interested in meeting up before Monday? We > are staying in the event hotel and I'm very interested in talking with > other Django or even Python developers who manage high load, or even > smaller

Pycon Djangonauts

2007-02-23 Thread David Cramer
Anyone else around who's interested in meeting up before Monday? We are staying in the event hotel and I'm very interested in talking with other Django or even Python developers who manage high load, or even smaller websites, to see what they have come up with for solutions as well as standards

FREE WINDOWS XP DOWNLOAD

2007-02-23 Thread Julia Martin
*Hi friends* ** *Get your Own Windows XP.* ** *Download Windows XP - Free* ** *[image: Windwos XP - Free Download] * ** ** *FREE WINDOWS XP DOWNLOAD *

Re: Aggregate class: a first-attempt

2007-02-23 Thread Tim Chase
>> items.aggregate((,), sum=( >> 'field1', >> 'field2', >> ... >> 'field20', >> 'field21', >> ), average=( >> 'field1', >> 'field2', >> ... >> 'field20', >> 'field21', >> )) > > well, in this extreme example, I would

Windows Media Player 11 - Freeware Download -- Latest

2007-02-23 Thread Sheela Thaper
*Microsoft Windows Media Player 11 - Freeware Download* [image: Media Player 11 Free Download] *Downlaod the Latest Windows Media Player 11 - Freeware* *Author: *Microsoft Corp. *Size: *25.1 Mb *License:

Idea of Genius Sara !

2007-02-23 Thread Luckyabdel
Hello , I m a fresh graduated ... I want to meet some new friends ... I really like Canada and hope to have some friends over there ... who have the same occupation i will be happy to meet you ... My philosophy is simple :) " Be the best or die trying " Never accept less than perfect ... if

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Joseph Heck
Having "/opt/local/bin" in PATH environment variable before anything else will accomplish #1. #2 makes me think we don't have everything resolved for you yet. If you invoke /usr/local/bin/python -V, I'm going to guess you're getting Python 2.3 - which is not what you want when you run setup.py

Re: Really, really bad performance

2007-02-23 Thread Jeremy Dunck
On 2/23/07, Peter Aarestad <[EMAIL PROTECTED]> wrote: ... > info_dict = { > 'queryset': TestResult.objects.all(), # about 50,000 entries > 'date_field': 'run_date', > } For instant gratification, you probably need this: TestResult.objects.all(select_related=True) If that doesn't

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Benjamin Chait
That did it, it's working great! Two final questions: 1. How do I create a symbolic link so that typing "python" into the Terminal will pull "/usr/local/bin/python"? 2. I was forced to do a /usr/local/bin/python setup.py install of Django rather than install via SVN--should I bother setting up

Free Greeting cards!

2007-02-23 Thread himu
Free Greeting cards! - http://surl.in/HLFCI238206SVRAKSX-google --~--~-~--~~~---~--~~ 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

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Joseph Heck
The django that's currently installed is installed with the python 2.3, so you'll need to redo that installation process (download, run sudo python.setup install) again. After that, as long as the /opt... set is earlier on the path, you won't have any trouble. Do check to make sure that

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Benjamin Chait
Okay, so here's my most recent Terminal output: benjamin-chaits-powerbook-g4-15:~ benjaminchait$ /usr/local/bin/python -V Python 2.4.3 That's what we were looking for earlier ... the question now is how do I either (a) move my Python install into the proper location or (b) adjust settings

Really, really bad performance

2007-02-23 Thread Peter Aarestad
OK, so I'm running a small internal web site that serves up reporting information on some tests we're running. The main table of our database has about 50,000 rows right now – not a gigantic number, but non-trivial. Thing is, even with simple views (i.e. the built-in

.htaccess & security

2007-02-23 Thread Veloz
Hi My question first: If you use an .htaccess file to hold the reqiured mod_python directives for a given Django project, is it really that unsafe to store the project inside the web server's directory structure? I.e., doesn't the "SetHandler mod_python" tell apache to direct all requests for

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Benjamin Chait
And the mystery becomes more intriguing ... a missing Python 2.4 install? benjamin-chaits-powerbook-g4-15:~ benjaminchait$ ls -l /opt/local/bin total 256 -r-xr-xr-x 1 root admin 48092 Feb 22 17:48 daemondo -r-xr-xr-x 1 root admin 65403 Feb 22 17:48 port lrwxr-xr-x 1 root admin 19

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Joseph Heck
That's generally where I'd expected Python to land. If you invoke "ls -l /opt/local/bin", what's the result? On 2/23/07, Benjamin Chait <[EMAIL PROTECTED]> wrote: > > > Hmm, that gave an error: > > benjamin-chaits-powerbook-g4-15:~ benjaminchait$ /opt/local/bin/python > -V > -bash:

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Benjamin Chait
Hmm, that gave an error: benjamin-chaits-powerbook-g4-15:~ benjaminchait$ /opt/local/bin/python -V -bash: /opt/local/bin/python: No such file or directory On Feb 23, 2:03 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > If you enter the command "/opt/loca/bin/python -V" do you get Python >

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Joseph Heck
If you enter the command "/opt/loca/bin/python -V" do you get Python 2.4.something? What's the result of "echo $PATH"? (it may be a path ordering issue) On 2/23/07, Benjamin Chait <[EMAIL PROTECTED]> wrote: > > > >From Terminal: > > benjamin-chaits-powerbook-g4-15:~ benjaminchait$ port

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Benjamin Chait
>From Terminal: benjamin-chaits-powerbook-g4-15:~ benjaminchait$ port installed The following ports are currently installed: apr @1.2.8_0 (active) apr-util @1.2.8_1 (active) db44 @4.4.20_1+darwin_8 (active) expat @2.0.0_1 (active) gettext @0.16.1_0 (active) libiconv @1.11_4+darwin_8

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Joseph Heck
Let's find out what happened with the python install. Obviously, it's time to redo those instructions a bit to make it easier to work out what went wrong. :-) What's the result of the command "port installed"? I'm hoping to see python24 listed there, but I'm suspicious that it didn't get

Re: staff_member_required

2007-02-23 Thread sansmojo
Thanks, James. That worked. Now, I'm stuck on something else. Yay for me! On Feb 23, 11:45 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 2/23/07, sansmojo <[EMAIL PROTECTED]> wrote: > > > Here's my views/admin.py (note that everything works, until I added > > line 10 -

Re: UnicodeDecodeError with labels of choices (for newforms.ChoiceField with RadioSelect widget)

2007-02-23 Thread xgdlm
Hello All, It seems I'm facing the same problem or an equivalent problem. I'll try to use newforms , running python 2.4.3 >>> from django.newforms import * >>> from listing.models import Industry >>> w = SelectMultiple() >>> print w.render('xxx',None,((industrie.id,industrie.fr) for industrie

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Benjamin Chait
I did add those lines, but it does look like that's what's causing a problem. >From your instructions ### You'll want to add the following environment variables. Open or create the file .bash_profile in your home directory and add the following lines at the end of that file:

Re: staff_member_required

2007-02-23 Thread James Bennett
On 2/23/07, sansmojo <[EMAIL PROTECTED]> wrote: > Here's my views/admin.py (note that everything works, until I added > line 10 - "@staff_member_required"): You're probably using Python 2.3, which doesn't support the @ syntax for decorators. Instead of using that, below the view function add

Re: Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Joseph Heck
Well, I wrote those instructions... :-) >From the traceback, you don't seem to be using the Python 2.4 from DarwinPorts/MacPorts (assuming you installed that). That is generally because your PATH hasn't been updated on the command line. You want to make sure you get the lines:

Re: session variable

2007-02-23 Thread Seth Buntin
WowI just needed to read a little bit further. Thanks. Seth --~--~-~--~~~---~--~~ 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

2 QA Consultants available immediately with us

2007-02-23 Thread mandar
Contact : Raj Direct : 402 218 2179 Email : [EMAIL PROTECTED] Hi , We have the following list of consultants currently available immediately. Name / Job Title Summary Bandi/QA Tester · Over Eight Years of Experience in Quality Assurance Testing and Documentation of Web Based and Client

staff_member_required

2007-02-23 Thread sansmojo
I'm following along with Chapter 18 of the book as well as a tutorial on newforms, but I'm getting hung up on one thing the book says to use. I import the staff_member_required decorator, and I put "@staff_member_required" just before my view method definition (see code below), but I get the

Running Django locally on Mac OS X, error with database connection

2007-02-23 Thread Benjamin Chait
I followed the instructions at http://www.rhonabwy.com/wp/2006/07/20/installing-django-on-macos-x-development-version/ on installing locally, and that all worked out. However, when I get to the syncdb command in the first tutorial, it gives an error. Additionally, running the "python manage.py

EmailField with widget TextInput and attrs takes max_length from another field.

2007-02-23 Thread Georgi Stanojevski
Hello, I'm trying the code bellow and I'm getting unexpected results with newforms widgets. I'm doing something wrong or is this for a ticket? f2 and it's field should have max_length=10 not max_length=30 or maybe not? ### from django import newforms as forms from django.newforms.widgets

Re: session variable

2007-02-23 Thread Honza Král
On 2/23/07, Seth Buntin <[EMAIL PROTECTED]> wrote: > > So I can have for instance: > > request.session["order_items"] = [] > > and then in different view I can have: > > request.session["order_items"].append(1) > > and that append to the session variable? yes, but the session

Re: Admin page: is it possible?

2007-02-23 Thread Honza Král
Hi enrico, for most of the things you want to do, it would be better to write your own app, using generic_views, it shouldn't require much coding and it would give you the desired functionality without horribly abusing the admin app. ;) On 2/23/07, morellik <[EMAIL PROTECTED]> wrote: > > Dear

Re: Aggregate class: a first-attempt

2007-02-23 Thread Honza Král
On 2/23/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > >> quseryset = Model.objects.all() > >> queryset.aggregate( ( 'name', 'city' ), sum=( 'pay', > >>> 'some_other_field' ), avg=( 'pay', 'age' ), count=True ) > >> I like this calling interface as an alternate method for its > >> fine-tuned

Re: session variable

2007-02-23 Thread Seth Buntin
So I can have for instance: request.session["order_items"] = [] and then in different view I can have: request.session["order_items"].append(1) and that append to the session variable? --~--~-~--~~~---~--~~ You received this message because

How could/should I save subsequent objects when I save an object?

2007-02-23 Thread Patrick J. Anderson
I'm trying to come up with the best working solution to allow my application to save subsequent objects when I save an object. Here's my model: class Milestone(models.Model): """Catalogue of project milestones""" ... deadline = models.DateField() ... def save(self):

Re: Master Details

2007-02-23 Thread Ramdas S
in detail class add this user = models.ForeignKey(master, edit_inline=models.TABULAR, num_in_admin=5) Ramdas On 2/23/07, VirusRaja <[EMAIL PROTECTED]> wrote: > > > Dear All, > > I have a user table (master) and address(detail). i need to update > both the table from 1 page. > can you guys tell

Re: Master Details

2007-02-23 Thread Ramdas S
in detail class add this user = models.ForeignKey(master, edit_inline=models.TABULAR, num_in_admin=5) Ramdas On 2/23/07, VirusRaja <[EMAIL PROTECTED]> wrote: > > > Dear All, > > I have a user table (master) and address(detail). i need to update > both the table from 1 page. > can you guys

Re: Admin customisation

2007-02-23 Thread Django
Ok got it silly mistake it should have been 'mysite.project.threadlocals.ThreadLocals' not 'mysite.project.threadlocals' On Feb 23, 11:29 am, "Django" <[EMAIL PROTECTED]> wrote: > I've just attempted the first part using lukeplant's middleware. > However I am not getting the following error... >

Re: Aggregate class: a first-attempt

2007-02-23 Thread Tim Chase
>> quseryset = Model.objects.all() >> queryset.aggregate( ( 'name', 'city' ), sum=( 'pay', >>> 'some_other_field' ), avg=( 'pay', 'age' ), count=True ) >> I like this calling interface as an alternate method for its >> fine-tuned control, but there are times it would be nice to not >>

Re: Search feature

2007-02-23 Thread Aidas Bendoraitis
Just filter searchable models according the searchable fields by the user-input. You'll need a form with a field for search string. And a view for results with something like: flatpages = FlatPage.objects.filter(Q(title__contains=search_str) | Q(content__contains=search_str)) products =

Re: Admin page: is it possible?

2007-02-23 Thread morellik
> In the admin page where I add a new People: > 1) set some checkbox (unbounds to the model) Ok. I'm able to do the first step creating a change_form.html in my template directory /admin/people/people and override a block. Enrico --~--~-~--~~~---~--~~ You

Re: Admin customisation

2007-02-23 Thread Django
I've just attempted the first part using lukeplant's middleware. However I am not getting the following error... Traceback (most recent call last): File "c:\documents and settings\me\django_src\django\core\servers \basehttp.py", line 272, in run self.result = application(self.environ,

Admin page: is it possible?

2007-02-23 Thread morellik
Dear all, I'm a newbie to Django. I'm starting to try it to manage the users in my lab. I have some 'models': Room (room number and its internal phone number), Status (prof, technician, student, etc), People (name, surname, country, etc.), Special (sysadm, bioadm, etc.). Is it possible: In the

Re: Seeking best-practices: modular site hosting multiple URLs

2007-02-23 Thread Aidas Bendoraitis
What you need in my opinion is just one django project with multiple settings files (for each domain). Regards, Aidas Bendoraitis [aka Archatas] On 2/21/07, Sundial Services <[EMAIL PROTECTED]> wrote: > > I would like to find references to "best practices" regarding the > design of a major