Re: django-Postgre bug?

2007-04-14 Thread [EMAIL PROTECTED]
On Apr 15, 1:46 am, "Grupo Django" <[EMAIL PROTECTED]> wrote: > Hello! > I was building a gallery image, and everithing went fine with mysql, > but lately, I changed my mind and I changed the database to postgres, > it's the django recommendation. > Well, sudenly I got this message: > ProgrammingE

seaside and django

2007-04-14 Thread Vikrant
Recently stumbled across seaside and rails. This is very interesting 2 different paradigms of web programming. Although I like django more then rails, I couldn't stop appreciating the work done on seaside. So in my view django is very good for content kind of web application and seaside is good fo

Re: Application Url Reuse

2007-04-14 Thread mtrier
On Apr 14, 11:04 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 4/15/07, mtrier <[EMAIL PROTECTED]> wrote: > > > > > I'm new to Django and working my way through the tutorials. At the > > end of Tutorial 3 there is an explanation about how to copy the > > urls.py file to the polls di

Re: Application Url Reuse

2007-04-14 Thread Russell Keith-Magee
On 4/15/07, mtrier <[EMAIL PROTECTED]> wrote: > > I'm new to Django and working my way through the tutorials. At the > end of Tutorial 3 there is an explanation about how to copy the > urls.py file to the polls directory and replace the urls in the site > directory with an include. What confuses

Application Url Reuse

2007-04-14 Thread mtrier
I'm new to Django and working my way through the tutorials. At the end of Tutorial 3 there is an explanation about how to copy the urls.py file to the polls directory and replace the urls in the site directory with an include. What confuses me about this is that I still must reference my applica

Re: django-Postgre bug?

2007-04-14 Thread Russell Keith-Magee
On 4/15/07, Grupo Django <[EMAIL PROTECTED]> wrote: > > Hello! > I was building a gallery image, and everithing went fine with mysql, > but lately, I changed my mind and I changed the database to postgres, > it's the django recommendation. > Well, sudenly I got this message: > ProgrammingError?: E

Re: getting _meta of a related field from a ForeignKey

2007-04-14 Thread Russell Keith-Magee
On 4/15/07, sandro.dentella <[EMAIL PROTECTED]> wrote: > > class Address: > city = ForeignKey(City,...) > ... > > f = Address._meta.get_field('city') > now I have f, how can I get to City._meta? You're looking for: f.rel.to._meta Every relation field class has a 'rel' member,

django-Postgre bug?

2007-04-14 Thread Grupo Django
Hello! I was building a gallery image, and everithing went fine with mysql, but lately, I changed my mind and I changed the database to postgres, it's the django recommendation. Well, sudenly I got this message: ProgrammingError?: ERROR: current transaction is aborted, commands ignored until end o

Re: request for generic views functionality...

2007-04-14 Thread watusee
Mike, Thanks for the replay. I realize I was probably too general in my request. Allow me to get down and dirty. So I did some more research and tried this approach in my model: class NewsManager(models.Manager): def all_news(self): qs = Event.objects.extra(tables=['news_art

getting _meta of a related field from a ForeignKey

2007-04-14 Thread sandro.dentella
Hi all, I have a loop over fields (f = self._meta.get_field(name)) of a model. If a field is a ForeignKey, I need to follow the ForeignKey and get the model and application referenced by the fk. Eg: class Address: city = ForeignKey(City,...) ... f = Address._meta.get_field

models in separate files - relation help

2007-04-14 Thread Jesse Lovelace
Hi all, Would anyone be able to give some "best practice" information on how to use django with multiple models files? My current setup is (SVN Django): /myproject/ app1/ models/ __init__.py - has all of the "from tag import Tag" lines so syncdb works (when validation

Re: request for generic views functionality...

2007-04-14 Thread Mike Axiak
Hey Raymond, A couple ideas that wouldn't require a different type of generic view: 1) If they are related to each other, why not use the relations to get the objects you want? {% for event in article.event_set.all %}... 2) If all your pages are using the events etc. Why not create a context p

Re: Dumb URL question

2007-04-14 Thread Mike Axiak
Mike, You probably don't have APPEND_SLASH=True in your settings configuration. (Or you don't have commonmiddleware enabled.) This means that the common middleware won't take http://foo/bar and automatically redirect it to http://foo/bar/ to match your regex. Just a thought, though. Cheers, Mik

Dynamic International Fields Available

2007-04-14 Thread Mike Axiak
Hello, I have just managed to put a project on google code for a type of Django field that handles translations fairly well. I don't expect this to go into Django (since it uses AJAX...), but it's nice for anyone who wants it. You can read about it at http://code.google.com/p/i18ndynamic/. Cheer

Free animation Baby

2007-04-14 Thread helen hl
 MORE http://hadisetar.googlepages.com/bebes     http://hadisetar.googlepages.com/bebes    İletişimin evrimine hemen katılın! burayı tıklayın! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Lemmings Going...going...gone!

2007-04-14 Thread helen hl
    Going...going...gone! At least if you don't stop them, they will be. Those mindless blue- and green-haired rodents, the Lemmings, are off and running through 125 levels of potential mass suicide. It's your job to guide the little critters to safety, preventing them from plunging to their d

Re: Newforms: adding a date picker

2007-04-14 Thread Brian Rosner
You will want to check out how to create widgets. Here might be an example you are looking for as well as a an example in general. http://code.djangoproject.com/browser/django/branches/newforms-admin/django/contrib/admin/widgets.py On 2007-04-14 11:32:53 -0600, Ray Cote <[EMAIL PROTECTED]> s

Newforms: adding a date picker

2007-04-14 Thread Ray Cote
Hello: I'm trying to figure out the approved Django way to add a Javascript date picker (pop-up calendar) to a field while using newforms. One way I see people adding date pickers is to give the field a specific class which the Javascript then attaches to during onload of the page. However,

Re: Dumb URL question

2007-04-14 Thread Doug Van Horn
On Apr 14, 11:15 am, "Mike Hostetler" <[EMAIL PROTECTED]> wrote: > > Does anyone need more info? Because I'm stuck. > I'm not seeing the same problem. I set up a little example app with the following urls.py: urlpatterns = patterns('', (r'^admin/myapp/mymodel/', 'webcode.myapp.views.mymode

Re: Dumb URL question

2007-04-14 Thread Mike Hostetler
Thought about that, but that's why I put it just after the empty pattern. My full pattern list is this: urlpatterns = patterns('', (r'^admin/myapp/mymodel/', 'myapp.views.viewmodels'), (r'^admin/print/(?P[-\w]+)/(?P\d+)', 'satchmo.shipping.views.displayDoc'), (r'^admin/$', 'satchm

Re: Dumb URL question

2007-04-14 Thread Todd O'Bryan
Just a guess, but if the admin is enabled, that pattern is probably checked first. It's never getting to your pattern because it's matching the admin pattern. Todd On Sat, 2007-04-14 at 09:34 -0500, Mike Hostetler wrote: > I've been looking at this for a couple of hours and I have no idea > what

Dumb URL question

2007-04-14 Thread Mike Hostetler
I've been looking at this for a couple of hours and I have no idea what is happening. In my urls.py I have this: urlpatterns = patterns('', (r'^admin/myapp/mymodel/', ',myapp.views.viewmodels'), When I go to http://localhost:8000/admin/myapp/mymodel it has ignored my pattern and

Programming Job

2007-04-14 Thread Cindy
Find Many Programmer Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMAI

KIM KARDASHIAN SEX VIDEO ,a close friend of Parish Hilton

2007-04-14 Thread sex
DOWNLOAD Kim Kardashian sex video, a close friend of Paris Hilton at http://worldsexvideo.blogspot.com/2007/03/kim-kardashian-sex-video-hollywood.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: new forms - processing the form without rebuilding the entire view

2007-04-14 Thread xgdlm
> However, I'm not sure of the best way to process the form for error > messages without rebuilding the complete view, which seems to be a lot > of overhead when you consider all the relevant queries that have to be > re-done. Multiple way to process this in my opinion : 1- cache the elements o

Re: DJANGO and modpy reloading hell...

2007-04-14 Thread Graham Dumpleton
On Apr 13, 10:59 pm, "Luciano Adamiak" <[EMAIL PROTECTED]> wrote: > It's for the whole thing... I guess > > But it will prevent your restarting every change.. But it still happens automatically and as a result everything runs very slowly. At that point you may as well use CGI which may even be a

Fwd: Islands and Nature Wonders ! ( 24 / 972)

2007-04-14 Thread Kooooool forwords
[image: 21158 * Mushroom Rock, Timna National Park, Israel * 1152 x 864 * (160KB)] [image: 21166 * Azure Waters, The Great Barrier Reef, Australia * 1152 x 864 * (193KB)] [i