Re: proper use of admin screens

2006-01-23 Thread Max Battcher
char wrote: I have a question about the proper use of Django's built-in admin functionality. I realize that Django evolved in a newsroom environment where there is a small number of content publishers/admins and many readers. But what about web apps where users normally enter, update, and delete

formfields not remembering ForeignKey field's selection

2006-01-23 Thread Gary
I'm trying to use formfields.FormWrapper(users.AddManipulator(), new_data, errors) as described in http://www.djangoproject.com/documentation/forms/ If I submit a form which has a dropdown (for a onetomany relation) that doesn't validate, the reloaded page/form remembers all values but not the dr

Re: FormField.prepare

2006-01-23 Thread foot
> I think I figured it out, you're supposed to call the manipulator's > prepare() method explicitly which in turn calls the fields' prepare > methods. This works great, just add a manipulator.prepare(new_data) call into your boilerplate add / change views. However Admin doesn't seem to do this, a

proper use of admin screens

2006-01-23 Thread char
I have a question about the proper use of Django's built-in admin functionality. I realize that Django evolved in a newsroom environment where there is a small number of content publishers/admins and many readers. But what about web apps where users normally enter, update, and delete the bulk of t

Re: sys path

2006-01-23 Thread akaihola
If you're running Django behind Apache and mod_python, you should define the PYTHONPATH (sys.path) in your Apache virtual host configuration. See the documentation[1] for more information. Just include the PythonPath directive inside the block. When using the internal webserver (which doesn't se

Re: admin interface

2006-01-23 Thread akaihola
You can get started here: http://code.djangoproject.com/wiki/CookBookAdminTools

do_html2python returns type "str" for ForiegnKey form fields

2006-01-23 Thread cpburmester
I've noticed that a foriegn key value in data posted to a view method is still a string after a call to do_html2python. However, it's returned as an int (what I would expect) from flatten_data(). Is this a bug or is this intended behavior? It's causing a bug in my template code where I compare t

Re: Extending admin privileges

2006-01-23 Thread Jacob Kaplan-Moss
On Jan 23, 2006, at 11:53 AM, Andy Shaw wrote: Quick query: is there an easy way to limit staff users so that they can only alter records that belong to them? Specifically, so that only their own records show up in the admin interface. All the relevant models have an owner field that point

Extending admin privileges

2006-01-23 Thread Andy Shaw
Hi all, Quick query: is there an easy way to limit staff users so that they can only alter records that belong to them? Specifically, so that only their own records show up in the admin interface. All the relevant models have an owner field that points to the correct user (via an intermediary mod

Re: Django and MS SQL

2006-01-23 Thread Rich Bakos
Cheng Zhang wrote: Hi Cheng, > Actually my previous statement isn't correct, I just realized that > pymssql also claimed to work on Windows, except it will use M$'s > native libraries instead of FreeTDS. You worked this out quicker than I ever could have. Thanks.

sys path

2006-01-23 Thread mary . adel
how to set my sys.path to the place that i am putting in it the Django projects as they are not in the sys path of Djnagoo i mean how i could set this PythonPath Mary Adel Software Developper ITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolis email: [EMAIL PROTECTED] Office: +202 - 62

Re: field lookups: isnull

2006-01-23 Thread patrick kranzlmüller
ok, i have to use writeboard_list = project.get_writeboard_list(parent__isnull=True) not sure if this is continous. patrick Am 23.01.2006 um 16:24 schrieb patrick kranzlmüller: writeboard_list = project.get_writeboard_list(parent__id__isnull=True) doesn´t give any results (although there a

admin interface

2006-01-23 Thread mary . adel
could anyone help me how to make the text feild to be have more options an to be good for the user like having fonts and urls without having to write html Mary Adel Software Developper ITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolis email: [EMAIL PROTECTED] Office: +202 - 6236612 EXT.

field lookups: isnull

2006-01-23 Thread patrick kranzlmüller
writeboard_list = project.get_writeboard_list(parent__id__isnull=True) doesn´t give any results (although there are some records with parent_id NULL in the database) the other way round, writeboard_list = project.get_writeboard_list(parent__id__isnull=False) works fine. any suggestions? patr

Re: meta.Admin 'fleids' option

2006-01-23 Thread Joseph Kocherhans
On 1/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi! > > I'm trying to use class 'collapse' in 'fields' option, like this: > class META: > ordering = ['title'] > admin = meta.Admin( > list_display = ('title',), > fields = ( > (Non

Re: recovering from interpreter db errors

2006-01-23 Thread Luke Skibinski Holt
excellent - exactly what I was looking for. Thanks heaps, Andreas. Luke Skibinski Holt

Re: recovering from interpreter db errors

2006-01-23 Thread Andreas Stuhlmüller
On 1/23/06, Luke Skibinski Holt <[EMAIL PROTECTED]> wrote: > > Is there a way within the interpreter of recovering from these sorts of > errors: > > psycopg.ProgrammingError: ERROR: current transaction is aborted, > commands ignored until end of transaction block Execute these commands after the

Re: recovering from interpreter db errors

2006-01-23 Thread Kenneth Gonsalves
On Monday 23 Jan 2006 5:50 pm, Luke Skibinski Holt wrote: > psycopg.ProgrammingError: ERROR:  current transaction is aborted, > commands ignored until end of transaction block programming error means something wrong in the sql query -- regards kg http://www.livejournal.com/users/lawgon tally h

recovering from interpreter db errors

2006-01-23 Thread Luke Skibinski Holt
Is there a way within the interpreter of recovering from these sorts of errors: psycopg.ProgrammingError: ERROR: current transaction is aborted, commands ignored until end of transaction block I get them when debugging queries and something goes awry wherein I have to restart the interpreter an

Re: running django

2006-01-23 Thread Jeroen Ruigrok van der Werven
On 1/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i really don't know how to use them instead of django server as i am > already using Apache for the picture but how to make access to all the > project without using Django server Start from http://www.djangoproject.com/documentation/modpy

RE: running django

2006-01-23 Thread mary . adel
i really don't know how to use them instead of django server as i am already using Apache for the picture but how to make access to all the project without using Django server Mary Adel Software Developper ITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolis email: [EMAIL PROTECTED] Office:

Re: running django

2006-01-23 Thread Jeroen Ruigrok van der Werven
Mary, On 1/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > django-admin.py doesn't have a daemon mode to run in. > how do i run it as a service? > i need this cause i don't need when the server restart for any reason i > had to start django server django-admin.py/manage.py's webserver is on

running django

2006-01-23 Thread mary . adel
django-admin.py doesn't have a daemon mode to run in. how do i run it as a service? i need this cause i don't need when the server restart for any reason i had to start django server Mary Adel Software Developper ITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolis email: [EMAIL PROTECTED] O

Re: FormField.prepare

2006-01-23 Thread foot
A, I think I figured it out, you're supposed to call the manipulator's prepare() method explicitly which in turn calls the fields' prepare methods. Will test this as soon as I get home... foot foot wrote: > > django.core.formfields.FormField has a method 'prepare' which is > > described as