Customs Manipulator

2006-03-15 Thread PythonistL
Hi, I implemented my customs manipulator like this: class ProductManipulator(formfields.Manipulator): def __init__(self): Po=categorys.get_list() self.fields=(formfields.SelectField(field_name="CategoryF", choices=Po),

Re: Customs Manipulator

2006-03-15 Thread bruno desthuilliers
PythonistL wrote: > Hi, > I implemented my customs manipulator like this: > > class ProductManipulator(formfields.Manipulator): > def __init__(self): > Po=categorys.get_list() > > self.fields=(formfields.SelectField(field_name="Catego

Re: Customs Manipulator

2006-03-15 Thread limodou
On 3/15/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Hi, > I implemented my customs manipulator like this: > > class ProductManipulator(formfields.Manipulator): > def __init__(self): > Po=categorys.get_list() > > self.fields=(f

Date format in admin interface

2006-03-15 Thread yuri
Hello, is it possible to change the date format in the admin interface to the european version, i.e. dd-mm-, or any other format, for that matter? I have no problem formatting it whichever way in the views, but haven't figured out an easy way to do this in the admin. Is there some setting I c

magic-removal: from django.parts.media.photos import get_thumbnail_url

2006-03-15 Thread Jeremy Jones
Sorry for cross-posting, but I thought this would be relevant for both groups. I'm reworking a simple store with the magic removal branch and running into a bit of a snag. When I create a record in the admin interface for a model which has an ImageField, I get an import error in admin_list.py on

Re: magic-removal: 'module' object has no attribute ''

2006-03-15 Thread Arthur
> > > > AttributeError: 'module' object has no attribute 'someapp' > > And is there a directory named "myapp" under the directory > "myproject"? Argh, I've got the old directory structure with "apps", but didn't look at the right place. Everythings working now. Thanks again, Arthur --~--~-

Re: magic-removal: from django.parts.media.photos import get_thumbnail_url

2006-03-15 Thread tonemcd
Jeremy, You might want to raise a ticket on this so the development team will know about it. Cheers, Tone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: Customs Manipulator

2006-03-15 Thread PythonistL
Thanks a lot.That solved my problem L. --~--~-~--~~~---~--~~ 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 em

Re: Confusion about templates directory location

2006-03-15 Thread DavidA
Thanks. After thinking about it some more, now the idea of having app directories beneath the templates directory makes sense: I will have a project-level banner and nav bar that will be used by multiple apps. So I moved my templates directory back to where it was, right under the project director

many-to-many field object creation syntax...

2006-03-15 Thread Domiel
all, what is the correct syntax to create a new object that contains a many2many field? ive tried obj = module.model(field1=value1, m2m=[v2]) and it chokes...couldn't find anything in the documentationpls help. --~--~-~--~~~---~--~~ You received this message

Re: Apache vs. Django ?

2006-03-15 Thread layik
Hi Ian, I have what you say there, and I get the error message of: EnvironmentError: Could not import DJANGO_SETTINGS_MODULE 'myproject.settings' (is it on sys.path?): No module named myproject.settings please help! --~--~-~--~~~---~--~~ You received this mess

Re: Apache vs. Django ?

2006-03-15 Thread Frank Miles
Thanks, Ian, for trying. Following your recommendation to SetEnv DJANGO_SETTINGS_MODULE myproject.settings then on the first try the error message becomes: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/

sessions doc

2006-03-15 Thread layik
someone points out "users confusion" in the topic linked below, which took me days to sort out, this might be easier to spot for those who are closer to Adrian in their abilities but NOT ME! http://groups.google.com/group/django-users/browse_thread/thread/f13b3d5e33b9b059/00b090f8fb716ec1?q=login

Mysql Issue

2006-03-15 Thread Javier Nievas
Hi, I'm having problems with django and mysql over apache2 on windows 2000 server. I'm getting errors about connecting to mysql database, I figured out it is about threading problems. I've searched this problem over the network and I've found a fix in the tickets intended to solve this. I have ap

Re: Date format in admin interface

2006-03-15 Thread Waylan Limberg
There are some date format variables in the setting file. Although I haven't played with them personally, I understand them to be the defaults when no format is provided in the views/templates. I'm guessing that the admin uses them so try changing to your preferred format there. On 3/15/06, yuri

Re: Quick thanks to django team - I deployed my first app

2006-03-15 Thread Aaron
I could handle it better, but by catching the exception I get a list of all of the reservations that are 'in the way' In the view code: try: new_reservation = server.add_reservation(trainer=trainer,start=start,end=end) except AlreadyReserved, e: error = 'Please choose another server,

Re: many-to-many field object creation syntax...

2006-03-15 Thread Russell Keith-Magee
On 3/15/06, Domiel <[EMAIL PROTECTED]> wrote:  what is the correct syntax to create a new object that contains amany2manyfield?There is no 'single statement' syntax for creating an object with m2m fields - you have to create the object, then add the m2m relationships to it. Examples are here:http:

Re: Date format in admin interface

2006-03-15 Thread Adrian Holovaty
On 3/15/06, yuri <[EMAIL PROTECTED]> wrote: > is it possible to change the date format in the admin interface to the > european version, i.e. dd-mm-, or any other format, for that > matter? I have no problem formatting it whichever way in the views, but > haven't figured out an easy way to do

Eclipse based Django IDE???

2006-03-15 Thread Doug Van Horn
Has anyone heard of something along the lines of a 'RadRails' for Django? I google'd around and didn't see anything, other than PyDev. But I was thinking that a similar product would be a pretty nice feather in Django's hat. I'm a n00b with Python, but I'm trying it and Django out for some side

Re: Django Website Running well, MySQL Connectivity Keeps going away

2006-03-15 Thread [EMAIL PROTECTED]
Will do. Thing is, this site 'live under development' and I'm the sole developer and I'm pressed for time! When I apply this, I'll tell you what the deal is ( really hope it works!), In the mean time I'm just restarting the server. --~--~-~--~~~---~--~~ You rece

Re: Eclipse based Django IDE???

2006-03-15 Thread limodou
On 3/16/06, Doug Van Horn <[EMAIL PROTECTED]> wrote: > > Has anyone heard of something along the lines of a 'RadRails' for > Django? > > I google'd around and didn't see anything, other than PyDev. But I was > thinking that a similar product would be a pretty nice feather in > Django's hat. > > I

Re: Eclipse based Django IDE???

2006-03-15 Thread Jeremy Dunck
On 3/15/06, Doug Van Horn <[EMAIL PROTECTED]> wrote: > Anyway, this might not be the best place for this thread, but I thought > I'd throw it out there. On a tangent, if anyone would care to > elaborate on their own IDE setup for working with Django, I'd > appreciate it! On windows, I use UltraE

Re: Eclipse based Django IDE???

2006-03-15 Thread Kenneth Gonsalves
On Thursday 16 Mar 2006 9:36 am, Doug Van Horn wrote: > Anyway, this might not be the best place for this thread, but I > thought I'd throw it out there.  On a tangent, if anyone would > care to elaborate on their own IDE setup for working with Django, > I'd appreciate it! i dont believe in IDE's

Re: Eclipse based Django IDE???

2006-03-15 Thread Aaron
I use scite (http://www.scintilla.org/) for quick edits. It loads fast, has syntax colors, and regex based search and replace. For serious Python work I have started using SPE - Stani's Python Editor, and like is so far http://stani.be/python/spe/blog/ If I have eclipse booted anyway I also use

Re: Eclipse based Django IDE???

2006-03-15 Thread James Bennett
On 3/15/06, Doug Van Horn <[EMAIL PROTECTED]> wrote: > Has anyone heard of something along the lines of a 'RadRails' for > Django? There's a Django bundle for TextMate, but TextMate's not an IDE. > Anyway, this might not be the best place for this thread, but I thought > I'd throw it out there.

Re: Eclipse based Django IDE???

2006-03-15 Thread SmileyChris
I've been using Eclipse for a Django project and have found it very usable with PyDev and an eclipse html editor plugin I forget the name of. I don't really get the whole argument about it being more "removed from code". I can still run and debug code, but I get the added benefit of a single works

Re: Eclipse based Django IDE???

2006-03-15 Thread Kenneth Gonsalves
On Thursday 16 Mar 2006 11:50 am, SmileyChris wrote: > I don't really get the whole argument about it being more > "removed from code". I can still run and debug code, but I get > the added benefit of a single workspace (and among other things > nice graphical diff support) i am not religious abo

Re: Date format in admin interface

2006-03-15 Thread Nebojša Đorđević
yuri wrote: > Hello, > > is it possible to change the date format in the admin interface to the > european version, i.e. dd-mm-, or any other format, for that > matter? I have no problem formatting it whichever way in the views, but > haven't figured out an easy way to do this in the admin. I

django for sysadmin

2006-03-15 Thread Kenneth Gonsalves
hi, i had set up email for virtual domains, virtual mailboxes etc etc on a box - backend postgresql. Then need to write a webbased front end to manage it - suddenly struck me that it could be done in django. Took about 10 minutes as admin interface was all that is needed. Now am extending it t