Re: How to sync admin interface with DB

2008-05-05 Thread Timothy Wu
On Tue, May 6, 2008 at 1:25 PM, Martin Diers <[EMAIL PROTECTED]> wrote: > > The Admin is created on the fly. There is nothing for it to restart > from scratch. Are you running the Django development server (the one > that defaults to localhost:8000) or are you running this under another > web

Re: IIS 6 PyISAPIe problems

2008-05-05 Thread involatile
I would love to try, but documentation is sketchy. Can someone provide more detailed instructions? 头太晕 wrote: > Try this http://code.google.com/p/pyisapi-scgi/ > > On Tue, May 6, 2008 at 2:11 AM, shocks <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > > I have followed the Django IIS installation

Re: How to sync admin interface with DB

2008-05-05 Thread Martin Diers
On May 5, 2008, at 11:56 PM, Timothy Wu wrote: > > I'm sorry, could someone gives me a clarification? > > Maybe I should describe it more clearly. My models.py and my > database ARE in sync and they're with the tables and the fields I > want. It's the admin interface that's out of sync,

Re: IIS 6 PyISAPIe problems

2008-05-05 Thread 头太晕
Try this http://code.google.com/p/pyisapi-scgi/ On Tue, May 6, 2008 at 2:11 AM, shocks <[EMAIL PROTECTED]> wrote: > > Hi > > I have followed the Django IIS installation guide on the Django > website but I'm getting the following error when I point to the > helloworld.py example: > > Internal

Re: How to sync admin interface with DB

2008-05-05 Thread Timothy Wu
On Tue, May 6, 2008 at 11:37 AM, Martin Diers <[EMAIL PROTECTED]> wrote: > > > On May 5, 2008, at 8:56 PM, Timothy Wu wrote: > > Sounds like you need to update your Django models. > > > > I ran manage.py reset appname. All the problems I describe still > > remain. The admin interface is still

Re: New to django and python. error following tutorial w/ the shell

2008-05-05 Thread Kenneth Gonsalves
On 06-May-08, at 10:02 AM, Norman wrote: > Kenneth Gonsalves escribió: >> >> On 06-May-08, at 9:37 AM, Jason Ourscene wrote: >> >>> def __unicode__(self): >> >> def __unicode__(self): <- space after 'def'. If you use a >> python editor it will find errors like this >> > and what

Re: Database Migration Question

2008-05-05 Thread Russell Keith-Magee
On Tue, May 6, 2008 at 11:57 AM, jack <[EMAIL PROTECTED]> wrote: > > Are there any Python/Django methods that represent generic database > commands such as creating a new table, renaming or dropping a column, > etc.? My thinking is that if these generic methods existed, so that > all I

Re: New to django and python. error following tutorial w/ the shell

2008-05-05 Thread Norman
Kenneth Gonsalves escribió: > > On 06-May-08, at 9:37 AM, Jason Ourscene wrote: > >> def __unicode__(self): > > def __unicode__(self): <- space after 'def'. If you use a > python editor it will find errors like this > and what editor do you use? some advice? -- Norman F. Sáez

Re: New to django and python. error following tutorial w/ the shell

2008-05-05 Thread Kenneth Gonsalves
On 06-May-08, at 9:37 AM, Jason Ourscene wrote: > def __unicode__(self): def __unicode__(self): <- space after 'def'. If you use a python editor it will find errors like this -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/

New to django and python. error following tutorial w/ the shell

2008-05-05 Thread Jason Ourscene
So i got it django up and running on my mac and am totally excited to get started, i got a bit into the tutorial when i got to the point where it asked me to add the __unicode__ method to my model. When i add it to my model and try to use the shell i get this error. If you anyone can help me

Database Migration Question

2008-05-05 Thread jack
Are there any Python/Django methods that represent generic database commands such as creating a new table, renaming or dropping a column, etc.? My thinking is that if these generic methods existed, so that all I needed to do was specifiy the correct info abt my DBMS in the Settings file, I could

Re: How to sync admin interface with DB

2008-05-05 Thread Martin Diers
On May 5, 2008, at 8:56 PM, Timothy Wu wrote: > Sounds like you need to update your Django models. > > I ran manage.py reset appname. All the problems I describe still > remain. The admin interface is still having problems. > No, resetting the app will not help if your models.py file still

Re: What Django version should I use?

2008-05-05 Thread Martin Diers
On May 5, 2008, at 11:18 AM, Daniel Strasser wrote: > > Is it recommended to use the development version for a project that > starts now (or in a week ;-)) To add to what others have said, use the development version, definitely, except I would strongly recommend that you use the

Re: What Django version should I use?

2008-05-05 Thread Kenneth Gonsalves
On 05-May-08, at 9:48 PM, Daniel Strasser wrote: > Is it recommended to use the development version for a project that > starts now (or in a week ;-)) yes - unless you want to miss out on a lot of goodies and are masochist enough to enjoy upgrading your project through a bunch of backward

beautiful soup

2008-05-05 Thread labtjd
I installed the basic blog app, and it works mostly fine, except that it is somehow connected to beautiful soup. I also downloaded beautifulsoup and I can't quite figure how to get it to interact properly with the admin section. When I try to add a blog entry, I get an error TemplateSyntaxError

New snippet: Tenjin integration as a decorator

2008-05-05 Thread Martin Diers
http://www.djangosnippets.org/snippets/739/ This provides basic Tenjin integration, using a decorator. Tenjin is a blazingly fast templating system, the fastest pure-python system available. You can find it here: http://www.kuwata-lab.com/tenjin/ For usage and configuration, see the example

Re: xml serialization with nested models

2008-05-05 Thread Russell Keith-Magee
On Tue, May 6, 2008 at 8:52 AM, Explore <[EMAIL PROTECTED]> wrote: > > Hi. I have been trying to get django to return my models as xml. I > have tried using the xml serializer but i cannot get it to send back > anything but the initial model. > > I would like to get nested xml like below

xml serialization with nested models

2008-05-05 Thread Explore
Hi. I have been trying to get django to return my models as xml. I have tried using the xml serializer but i cannot get it to send back anything but the initial model. I would like to get nested xml like below (where Department has a ForeignKey to Organization). My Org

Re: where can i download newformsadmin

2008-05-05 Thread lowks
Hmm seems to work now. I could not finish checking it out the other day. On May 6, 2:06 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: > $ svn cohttp://code.djangoproject.com/svn/django/branches/newforms-admin > > Works for me. What error do you get? > > - Horst > > On Mon, May 5, 2008 at 7:56

Re: What Django version should I use?

2008-05-05 Thread Jeff Anderson
Daniel Strasser wrote: This is a bit confusing for me, because for me, development versions are - yeah - for developers. And I'm not (yet?) :-) a Django core developer. The development version of django is basically the latest stable, 0.96, plus lots and lots and lots of bugfixes, feature

Re: Code works with Django's server, but not with Apache+mod_python?

2008-05-05 Thread Chatchai Neanudorn
When I installed my web at webfaction I did this to see which module python use, at settings.py import os import django, PIL logfile = open('path.log', 'w') django_path = django.__file__ pil_path = PIL.__file__ logfile.write('django - %\n pil - %s\n' % (django_path, pil_path)) logfile.close()

Re: deploying django at unix/linux homepage space without root access

2008-05-05 Thread Jeff Anderson
Bing wrote: Now if I want to deploy the website so that other people can visit it under my homepage space, http://name.of.some.site/~user/ what should I do? You should use mod_python and apache. If that is too much trouble (probably is based on how your setup sounds), use fastcgi. Don't use

Re: Few things ive been wondering

2008-05-05 Thread Scott SA
On 5/5/08, phillc ([EMAIL PROTECTED]) wrote: >fourth: > >i never understood this, why do people do > >somevar = "blah blah %s" % anothervar > >instead of "blah bla" + anothervar >? Because you can perform specific string formatting operations at the same time. Plus, the formatting and data

Re: Default Pluralize logic

2008-05-05 Thread Russell Keith-Magee
On Tue, May 6, 2008 at 6:10 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Important, related, post on the dev list: > > "Ditch pluralisation entirely" > >

Re: Get first_name from User Model in to my Model

2008-05-05 Thread blis102
Are you trying to get first and last names from the User model? That would be either self.user.first_name and self.user.last_name (within model) or student.user.first_name and student.user.last_name (outside of model). Hope that helps a bit. On May 4, 8:13 pm, Jonathan Lukens <[EMAIL PROTECTED]>

Issues with EmailMultiAlternatives and Gmail

2008-05-05 Thread Julien
Hi, I've had trouble sending multipart (plain+html) emails to Gmail users. While emails are correctly displayed in any other email client, Gmail displays the plain text version instead of the HTML, although the HTML is set as primary. After googling I think this is a known issue with Gmail, but

deploying django at unix/linux homepage space without root access

2008-05-05 Thread Bing
I have a small django application which is running on a development server. The platform is linux and I am able to view the django-powered pages at the url like http://127.0.0.1:8000/ Now if I want to deploy the website so that other people can visit it under my homepage space,

Re: Default Pluralize logic

2008-05-05 Thread [EMAIL PROTECTED]
> So you still need to allow for the developer (me) to override the generated > plural. Only now it isn't as clear when I need to do that. With the > current rule, it is straightforward: if the word isn't pluralized by adding > an 's'. The idea is that you wouldn't have to override the

Re: IIS 6 PyISAPIe problems

2008-05-05 Thread involatile
I'm getting this error. What's missing? Any idea? === Internal Server Error An error occurred processing this request. Request handler failed Traceback (most recent call last): File

Re: Few things ive been wondering

2008-05-05 Thread Richard Dahl
see comments inline... On 5/5/08, phillc <[EMAIL PROTECTED]> wrote: > > there has been a few things that i feel have been holding back from > making my code structure/process better. i was hoping someone could > help me on some of these questions. > > first: > > How does one develop tests

Few things ive been wondering

2008-05-05 Thread phillc
there has been a few things that i feel have been holding back from making my code structure/process better. i was hoping someone could help me on some of these questions. first: How does one develop tests for django web apps? im having trouble writing tests. i understand there are view

Re: DateField error mysql 5.0.45

2008-05-05 Thread Karen Tracey
On Mon, May 5, 2008 at 4:01 PM, unixdude_from_mars <[EMAIL PROTECTED]> wrote: > I noticed code that worked fine with an earlier version of mysql > accessing a datefield is now broken... Does anyone know if this is > already in bug track or is there a simple fix. > Broken how? Datefields and

Re: Subclassing a form, changing one field into required = False

2008-05-05 Thread LaundroMat
On 5 mei, 14:39, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, May 5, 2008 at 7:08 AM, LaundroMat <[EMAIL PROTECTED]> wrote: > > On 1 mei, 13:43, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > > On Thu, May 1, 2008 at 7:22 AM, LaundroMat <[EMAIL PROTECTED]> wrote: > > > > > Hi - > > > > >

DateField error mysql 5.0.45

2008-05-05 Thread unixdude_from_mars
I noticed code that worked fine with an earlier version of mysql accessing a datefield is now broken... Does anyone know if this is already in bug track or is there a simple fix. james --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: The connection was reset

2008-05-05 Thread msoulier
On May 5, 2:01 pm, msoulier <[EMAIL PROTECTED]> wrote: > Seems like an issue with the built-in web server. In fact, if I modify handlers/wsgi.py, and print the request object before it gets to get_response(), suddenly it's fine. try: request = WSGIRequest(environ)

Re: How to sync admin interface with DB

2008-05-05 Thread jonknee
> I was able to populate the table, but the admin interface was having > problem, it was still expecting the old table columns. =/ Sounds like you need to update your Django models. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

dinero y amistad

2008-05-05 Thread soledad
Hola Les escribo un breve mensaje para invitarles a que se registren gratis en Amigos y ganes al igual que yo, mas de 100 U$ por día solo por invitara amigos a registrarse gratis. Registrate gratis, desde el siguiente enlace: http://amigos.com/go/g959630 Luego de registrarte gratis, ingresa a

dinero y amistad

2008-05-05 Thread soledad
Hola Les escribo un breve mensaje para invitarles a que se registren gratis en Amigos y ganes al igual que yo, mas de 100 U$ por día solo por invitara amigos a registrarse gratis. Registrate gratis, desde el siguiente enlace: http://amigos.com/go/g959630 Luego de registrarte gratis, ingresa a

Re: redirect issue

2008-05-05 Thread woot4moo
nvm I figured this one out, now I just cant get it to actually display the data from the object that I add. On May 5, 1:51 pm, woot4moo <[EMAIL PROTECTED]> wrote: > When I add an object to my db I get this problem on the > redirect:http://127.0.0.1:8000/Final/apple/edit/mysite/apple/instead of

Re: IIS 6 PyISAPIe problems

2008-05-05 Thread Adam Fast
Ben, Where is django? Make sure it's on your pythonpath (or "module search path" as they appear to be calling it below) Adam On Mon, May 5, 2008 at 1:11 PM, shocks <[EMAIL PROTECTED]> wrote: > > Hi > > I have followed the Django IIS installation guide on the Django > website but I'm

Re: Admin : Select category -> show subcategory

2008-05-05 Thread Diego Ucha
First of all, I recommend that you read chapter 17 of Django Book (if you haven't already) http://www.djangobook.com/en/1.0/chapter17/ Moving on, you have to create a view, as we are working on Django's admin, then i recommend that you create one like project/app/ admin_views.py with something

IIS 6 PyISAPIe problems

2008-05-05 Thread shocks
Hi I have followed the Django IIS installation guide on the Django website but I'm getting the following error when I point to the helloworld.py example: Internal Server Error An error occurred processing this request. Request handler failed Traceback (most recent call last): File

The connection was reset

2008-05-05 Thread msoulier
Hi, I'm currently playing with my Django web interface on a windows XP box with Python 2.5, Django 0.96. Sometimes when I send a redirect in view code, Firefox says, "The connection was reset while the page was loading." Seems like an issue with the built-in web server. Sample code: elif

Re: where can i download newformsadmin

2008-05-05 Thread Horst Gutmann
$ svn co http://code.djangoproject.com/svn/django/branches/newforms-admin Works for me. What error do you get? - Horst On Mon, May 5, 2008 at 7:56 PM, lowks <[EMAIL PROTECTED]> wrote: > I tried checking out newformsadmin from svn but it errored out. When i > try downoading the zip, it

Re: Change render of RadioSelect

2008-05-05 Thread Michael Irani
Karen, That patch is actually kind of beautiful. Just in case someone else is looking at this as of the current codebase the custom renderer would like like this: class MyRenderer(RadioFieldRenderer): def render(self): return mark_safe(u'\n%s\n' % u'\n'.join([u'%s' % w for w in

where can i download newformsadmin

2008-05-05 Thread lowks
I tried checking out newformsadmin from svn but it errored out. When i try downoading the zip, it similarly errored out. Could someone point me somewhere where I can find newformsadmin ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

redirect issue

2008-05-05 Thread woot4moo
When I add an object to my db I get this problem on the redirect: http://127.0.0.1:8000/Final/apple/edit/mysite/apple/ instead of just Final/apple So the question is how do I strip off the excess of it going to mysite/ apple so it stops blowing up on the get page, or rather how do I re- direct

Re: Newbie

2008-05-05 Thread Rajath Stanley D'Souza
Michael, Thanks for taking the time out to answer all my questions. Much appreciated. I think I'm quite sold on Django/Python now. Will start digging into it right away. Thanks, Rajath On 5/5/08, Michael Newman <[EMAIL PROTECTED]> wrote: > > > > > - Is it possible to create WML files (or for

Re: Newbie

2008-05-05 Thread Michael Newman
> - Is it possible to create WML files (or for that matter any customised > output that is not out there) easily? Especially by way of XML/XSLT. Django is really flexible with it's template and HttpResponse system. You can specify headers, types and serializations on the fly. Granted these

Re: Upgraded to Trunk - redirrect urls now tweaked

2008-05-05 Thread Karen Tracey
On Mon, May 5, 2008 at 12:17 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > I upgraded to trunk for my project. All of a sudden, redirect URLs are > not working right. I have to add a following slash to get them to > work. > > Example: http://www.stpaulswired.org/liquid > Working:

Re: using multiple AdminSites

2008-05-05 Thread derek.hoy
there's a ticket for this: http://code.djangoproject.com/ticket/5392 thanks to brosner on #django Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Upgraded to Trunk - redirrect urls now tweaked

2008-05-05 Thread [EMAIL PROTECTED]
I upgraded to trunk for my project. All of a sudden, redirect URLs are not working right. I have to add a following slash to get them to work. Example: http://www.stpaulswired.org/liquid Working: http://www.stpaulswired.org/liquid/ Any tips on what I might have missed? Lemme know. Dave

Re: What Django version should I use?

2008-05-05 Thread Greg Fuller
Django keeps the subversion trunk stable, and changes the documentation to reflect the trunk. So I would use the subversion trunk. On Mon, May 5, 2008 at 11:18 AM, Daniel Strasser <[EMAIL PROTECTED]> wrote: > > Hi there > > I'm new to both Django and Python, but I'm so fascinated about Django

What Django version should I use?

2008-05-05 Thread Daniel Strasser
Hi there I'm new to both Django and Python, but I'm so fascinated about Django that I don't want to use PHP for a new project that is coming up soon. Now I'm playing around with the latest "stable" release of Django (0.96), but both the tutorials and the documentation expects that you are using

djangopeople down

2008-05-05 Thread bcurtu
I can not access to djangopeople.net... Have you noticed it? Anyone knows the reason? Technical problems? Traffic, bugs??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

How to sync admin interface with DB

2008-05-05 Thread Timothy Wu
Hi, I am having a big trouble. For some reason I've messed things up and admin interface is showing a table that I already dropped by accessing mysql client directly (oh no...should I not do that?). I don't know exactly how I got to that state. I first created the table, then I decided to change

IOError with Apache/mod_python

2008-05-05 Thread Joel
A symptom has just developed on our production server (Apache/mod_python/Python 2.3). Sporadically, a 'print' statement (used for logging during development) will fail with the following error: exceptions.IOError [Errno 9] Bad file descriptor In Django development, 'print' statements go to the

Re: Code works with Django's server, but not with Apache+mod_python?

2008-05-05 Thread TP
Could you have different PYTHONPATH settings for mod_python vs command line where you're running the admin server? Different versions of PIL or something between those two versions? libjpeg and friends installed in non-standard locations where they're found by the command line python but not the

Introducing djangohosting.ch

2008-05-05 Thread Thomas Steinacher (djangohosting.ch)
Hello Djangonauts! I would like to announce djangohosting.ch, a webhosting service for your Django sites. We provide a web interface (written in Django, of course) which includes a one-click Django installer, making it easy to get started with your Django site. The reason for building an own

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi Mike, Thanks for your attention on this. Kg solved this a few moments back. As suspected, a bit of basic muppetry on my part. Solution was only to change: Upload_to = '/tmp' TO: Upload_to = 'tmp' Nice. -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]

reverse: TypeError: dict objects are unhashable

2008-05-05 Thread sector119
I get this error when I try to resolve some url pattern name. It seems that mem_args is dict object, but why? % python2.5 manage.py shell >>> from django.core.urlresolvers import reverse >>> reverse('staticpages-staticpage_delete', {'object_id': 4}) Traceback (most recent call last): File "",

Re: using frames in django

2008-05-05 Thread Gboro54
That is what I figured on doing...I was just seeing if there was an easier way of doing it... Thanks On May 5, 7:10 am, LaundroMat <[EMAIL PROTECTED]> wrote: > On 5 mei, 05:26, Gboro54 <[EMAIL PROTECTED]> wrote: > > > > > > > Hi everyone...I want to use frames in a web app i am building..I have

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi Kg, You're beautiful, you know that don't you? It worked a treat. And just in time moments before the Chelsea game starts too. When I said all slash permutations tried, I did of course mean, all but that one Thanks a million. Ben -Original Message- From:

Re: Filefield upload_tol

2008-05-05 Thread Mike H
I can replicate this by putting in a file path that does not exist in the HIP form. The validation fails for the file field but the error is not rendered. edit_inline is known to be buggy - some validation faliures on models that are being edited inline aren't rendered, but the user is

Re: Filefield upload_tol

2008-05-05 Thread Kenneth Gonsalves
On 05-May-08, at 7:22 PM, Ben Eliott wrote: > hip = models.FileField(upload_to='/tmp',core=True) try upload_to='tmp' <--- no '/' -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~-~--~~~---~--~~ You received this

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi kg, Class HIP has a 1-to-many with Property (many HIPs / 1 Property) . The offending field is HIP.hip #CODE class Property(models.Model): """Model of a property""" reference = models.CharField(max_length=20) Archive = models.BooleanField() SSTC = models.BooleanField()

Re: child edit causes duplication with model inheritance

2008-05-05 Thread Alan Boyce
Thanks! On May 4, 2008, at 4:37 AM, James Bennett wrote: > > On Sun, May 4, 2008 at 3:29 AM, bobhaugen <[EMAIL PROTECTED]> > wrote: >> Does that mean newforms-admin includes qs-ref? That is, newforms- >> admin includes all of the most current svn trunk? > > The ideal way to find out this

Re: Filefield upload_tol

2008-05-05 Thread Kenneth Gonsalves
On 05-May-08, at 6:46 PM, Ben Eliott wrote: > Thanks for for your swift attention. > It reloads the same form with the message at the top: 'Please correct > the error below.' (although it doesn't actually show any error below). please paste your model here -- regards kg

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi kg, Thanks for for your swift attention. It reloads the same form with the message at the top: 'Please correct the error below.' (although it doesn't actually show any error below). Best, Ben -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf

Re: djangoAMF: django and flash

2008-05-05 Thread Lorenzo
Thanks so much!! It did the trick! Lorenzo sserrano ha scritto: > Hi > If you are using a 64bit arch, there is a bug with a write function. > You can find the reported bug and a patch here: > http://sourceforge.jp/tracker/?atid=9591_id=2585=browse > > Kind Regards, Sebastian.- > > > On 3

Re: Default Pluralize logic

2008-05-05 Thread Karen Tracey
On Mon, May 5, 2008 at 8:20 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thank you for your replies. > > Just to confirm, I am not referring to a perfect automatic pluralize > solution. I am very well aware that a silver bullet solution would be > very difficult, if even possible. > > I

Re: Another installation problem

2008-05-05 Thread George Vilches
Or run Debian testing. Why switch distros or even distro flavors if you don't have to? :) Python 2.5 and most of the packages that are needed for Django are fine straight from apt on testing/unstable. gav Tom Novelli wrote: > Debian Etch is meant to be stable, not up to date (except for

Re: GeoDjangoFriendly?

2008-05-05 Thread Alex Ezell
On Mon, May 5, 2008 at 4:07 AM, tupixo <[EMAIL PROTECTED]> wrote: > > > You may recognize my name from that forum topic. > > > > I've been working for over a week to get PostGIS installed correctly > > for my hosting at WebFaction. The support team is very responsive and > > helpful and we

Re: Django Template for_loop by user

2008-05-05 Thread Karen Tracey
On Mon, May 5, 2008 at 7:50 AM, chiefmoamba <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to get a for loop to display data by user. So for example I > have the following that will display all 'courses' running in my > project: > > {% if course %} >There are Courses >The current

Re: Subclassing a form, changing one field into required = False

2008-05-05 Thread Karen Tracey
On Mon, May 5, 2008 at 7:08 AM, LaundroMat <[EMAIL PROTECTED]> wrote: > On 1 mei, 13:43, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Thu, May 1, 2008 at 7:22 AM, LaundroMat <[EMAIL PROTECTED]> wrote: > > > > > Hi - > > > > > Would it be possible to subclass a form class, and in that subclass

Re: Filefield upload_tol

2008-05-05 Thread Kenneth Gonsalves
On 05-May-08, at 5:33 PM, Ben Eliott wrote: > Hi, I'm getting started in the (highly enjoyable!) admin models - > FileField upload works when I give upload_to the full absolute > filepath. > However, as soon as I try and use MEDIA_ROOT in settings.py it baulks. what do you mean by 'baulks' -

Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi, I'm getting started in the (highly enjoyable!) admin models - FileField upload works when I give upload_to the full absolute filepath. However, as soon as I try and use MEDIA_ROOT in settings.py it baulks. Permissions are wide open, I've tried every combination of slashes & paths -- but it

Re: Default Pluralize logic

2008-05-05 Thread [EMAIL PROTECTED]
Thank you for your replies. Just to confirm, I am not referring to a perfect automatic pluralize solution. I am very well aware that a silver bullet solution would be very difficult, if even possible. I will try make myself more clear now. What I am specifically referring to is the

Re: Change render of RadioSelect

2008-05-05 Thread Karen Tracey
On Mon, May 5, 2008 at 2:46 AM, Michael Irani <[EMAIL PROTECTED]> wrote: > > Hello, > I'm trying to manipulate the rendering for RadioSelect so that the > form element shows up within my form differently than a . So far > I've come across two options... Use straight form tags in my view, or > to

Django Template for_loop by user

2008-05-05 Thread chiefmoamba
Hi, I'm trying to get a for loop to display data by user. So for example I have the following that will display all 'courses' running in my project: {% if course %} There are Courses The current courses we are running are: {{course|join:", "}} {% else %} There are currently no

Re: child edit causes duplication with model inheritance

2008-05-05 Thread bobhaugen
On May 4, 3:37 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sun, May 4, 2008 at 3:29 AM, bobhaugen <[EMAIL PROTECTED]> wrote: > > Does that mean newforms-admin includes qs-ref? That is, newforms- > > admin includes all of the most current svn trunk? > > The ideal way to find out this

Re: Another installation problem

2008-05-05 Thread Tom Novelli
Debian Etch is meant to be stable, not up to date (except for security fixes), so it defaults to Python 2.4. You can install 2.5 but most of the python-* packages are not available for 2.5 because they were not deemed stable or didn't build at all. I needed support for Postgres, LDAP, Oracle

Re: Django-contact-form, Akismet and UnicodeEncodeError

2008-05-05 Thread Emil
Forgot to mention, I'm using python2.5. Help me, Obi-Wan GoogleGroup, you're my only hope. //emil On 5 Maj, 02:15, Emil <[EMAIL PROTECTED]> wrote: > Hi folks. > > I'm having this annoying problem that I don't have the skill to solve. > I'm using James Bennetts django-contact-form (r46 from

Re: GeoDjangoFriendly?

2008-05-05 Thread rich
You can install anything you want on Slicehost or any other VPS; provided that you have enough linux skills to do everything yourself. There's plenty of help out there on the web, slicehost have some great tutorials for setting up your slice, and mod_wsgi is very easy to setup as a low memory

fixtures loading post qs-rf

2008-05-05 Thread francesco
Hi, before the qs-rf branch was merged into trunk I was loading some data regarding users (of which I had two kinds, buyers and sellers) by using four different models: user, user extension, buyer and seller (the last two with a OneToOne relation with user extension). Since the qs-rf branch has

Re: using frames in django

2008-05-05 Thread LaundroMat
On 5 mei, 05:26, Gboro54 <[EMAIL PROTECTED]> wrote: > Hi everyone...I want to use frames in a web app i am building..I have > a display.html that has the frames sets and takes 2 other html > files...the one problem is the other 2 pages have variables binded to > them...I am not sure how to get

Re: Subclassing a form, changing one field into required = False

2008-05-05 Thread LaundroMat
On 1 mei, 13:43, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 7:22 AM, LaundroMat <[EMAIL PROTECTED]> wrote: > > > Hi - > > > Would it be possible to subclass a form class, and in that subclass > > define that one of the fields that were required in the parent class > >

Re: manually rendered templates not recognized for translation?

2008-05-05 Thread omat
This was because all the templates should have the "html" extension to get translated. On Apr 1, 11:32 am, omat <[EMAIL PROTECTED]> wrote: > Hi, > > I am sending notification e-mails to members on some actions. The > message body comes from a template: > > {% load i18n %} > {% blocktrans %} >

Newbie

2008-05-05 Thread Rajath Stanley D'Souza
Hi all, I'm new to this whole area of web development. New to Django, Python, et al. I've only done some C,C++ coding for mobile phones before, but have a need to get into it now. Specifically planning on a creating a website that caters to PC and different devices like mobile phones, PDAs, etc. I

Re: GeoDjangoFriendly?

2008-05-05 Thread tupixo
> You may recognize my name from that forum topic. > > I've been working for over a week to get PostGIS installed correctly > for my hosting at WebFaction. The support team is very responsive and > helpful and we have worked through a lot of issues. That said, it > still doesn't work correctly. >

Re: Admin : Select category -> show subcategory

2008-05-05 Thread martyn
Thank you, it's just what I wanted, but do I have to write a new template (admin/model_name/etc...) ? Or can I define this directly in my model (onchange actions...) ? I have the django Book (definitive guide to django) but I can't find this. On 4 mai, 02:26, Diego Ucha <[EMAIL PROTECTED]>

Change render of RadioSelect

2008-05-05 Thread Michael Irani
Hello, I'm trying to manipulate the rendering for RadioSelect so that the form element shows up within my form differently than a . So far I've come across two options... Use straight form tags in my view, or to rework RadioFieldRenderer and RadioInput from widgets.py locally so that I can have a