@@@@@ONLINE INCOME OPPORTUNITY@@@@@

2008-05-04 Thread rubinim1
HAI FRIENDS!!! http://www.freedompeoples.blogspot.com --~--~-~--~~~---~--~~ 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

Using alternate pluralize suffix when you don't know the word

2008-05-04 Thread Mojave
I display a list of types with a number for each type. {% for type in types %} {{ type.count }} {{ type.type }}{{ type.count|pluralize }} {% endfor %} I can't use the alternate pluralize suffix because I don't know the actual word to be pluralized. Will I have to test each word and apply the

Re: Template tags spanning multiple lines

2008-05-04 Thread gregf
Thank you very very much - DOTALL worked. I should be happy, and I am very happy, but just one more little thing Is there an elegant way to somehow subclass something, or override something , or sprinkle some magic dust somewhere to get the code in my directory, so that svn refreshes of

Re: djangoAMF: django and flash

2008-05-04 Thread sserrano
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 mayo, 08:30, Lorenzo <[EMAIL PROTECTED]> wrote: > Hi, > I need to link a flash movie

Re: Template tags spanning multiple lines

2008-05-04 Thread [EMAIL PROTECTED]
You *might* be able to make it work by adding the re.DOT_ALL flag to this re: http://code.djangoproject.com/browser/django/trunk/django/template/__init__.py#L90 I haven't tested it, I don't know if it works, I don't even know if it makes sense. On May 4, 10:51 pm, gregf <[EMAIL PROTECTED]>

Re: Template tags spanning multiple lines

2008-05-04 Thread gregf
Thanks for the reply. I'm working on a system that, for lack of a better term, is "pull based', where the designer can mix content however he/she sees fit. In this type of a system, the developer does not assume what will be on a page. The designer can decide to, on a single page, pull out a

Re: Need some slightly advanced routing help

2008-05-04 Thread Chris Hartjes
On Sun, May 4, 2008 at 9:21 PM, Steven Armstrong <[EMAIL PROTECTED]> wrote: > > Hi Chris > > or, if you want it more specific: > > (r'^(?P\w+)/(?P\d{4}-\d{2}-\d{2})/$', 'myview'), > > > Personally I'd go with the last example in this case. > That one worked perfectly. I had a brain cramp about

Re: Get first_name from User Model in to my Model

2008-05-04 Thread Jonathan Lukens
Maybe are wanting to populate that field automatically and you are looking for a custom save() method? This would do the trick: ... def save(self): self.first_name = self.user.first_name super(Student, self).save() You will also want to add blank=True or editable=False to the CharField

Re: Template tags spanning multiple lines

2008-05-04 Thread Russell Keith-Magee
On Mon, May 5, 2008 at 9:38 AM, gregf <[EMAIL PROTECTED]> wrote: > > Hi, > > I would like to be able to have custom template tags span across > multiple lines. The following example shows why this would be > desirable for tags with lots of options: ... > I've googled and searched the forum,

Re: Default Pluralize logic

2008-05-04 Thread Russell Keith-Magee
On Mon, May 5, 2008 at 1:16 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Is it? Maybe. I don't know if anyone has proposed smartening-up Django's > > pluralization rules in the past > > I had a look through the mailing-list archive and couldn't spot > anything directly related.

ifnotequal strange behavior--

2008-05-04 Thread Ryan Vanasse
I am creating an event calendar, and would like to display the date of the event. Some events take place on only one day, while some take place over multiple days. I would like only one date to display for single day events, and for multiday events, I would like to display both the start date of

Re: urls() and request.user

2008-05-04 Thread Nathaniel Whiteinge
On May 4, 5:42 am, "Guillaume Lederrey" <[EMAIL PROTECTED]> wrote: > I havent done any functional programming in a long time , but ... isnt > there a way to use an anonymous function (if that's what it is called) > and do the wrapper "inline" ? Something like : Yeah, something like that would

Template tags spanning multiple lines

2008-05-04 Thread gregf
Hi, I would like to be able to have custom template tags span across multiple lines. The following example shows why this would be desirable for tags with lots of options: {% get_entries as entries days_old ="30" limit="15" categories="4,5,9,5" author='djones'

Re: Need some slightly advanced routing help

2008-05-04 Thread @@
\w don't match '-', so use [\w-]+ instead. but this regx is not accurate. have a look at this http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/blog/urls.py On 5/5/08, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > I've been trying to do something that I *think* should

Re: Need some slightly advanced routing help

2008-05-04 Thread Steven Armstrong
Chris Hartjes wrote on 05/05/08 02:53: > I've been trying to do something that I *think* should be simple, > but apparently is not. Or, the more likely answer is that I am missing > something pretty obvious. I spent some time googling around for the answer > but didn't find what I was looking

Re: Default Pluralize logic

2008-05-04 Thread Michael Newman
I think you are assuming too much here. The verbose name and verbose name plurals are default pulled from a class name that might not necessarily make sense to my editors in the admin. I need to have some control to how it is actually displayed to the end user; no program is going to be

Need some slightly advanced routing help

2008-05-04 Thread Chris Hartjes
I've been trying to do something that I *think* should be simple, but apparently is not. Or, the more likely answer is that I am missing something pretty obvious. I spent some time googling around for the answer but didn't find what I was looking for. So here goes. I'm building a web service to

Django-contact-form, Akismet and UnicodeEncodeError

2008-05-04 Thread Emil
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 svn) and I'm subclassing the AkismetContactForm class that's included. I have the latest revision of akismet.py too. My django version is trunk, r6626, which is

Re: Get first_name from User Model in to my Model

2008-05-04 Thread Mike Chambers
user.firstname user.lastname ?? Is that what you are looking for? mike chiefmoamba wrote: > Hi, > > I am having a problem getting data from the user model in to my model > (below). I can get the usernames easy enough using "user = > models.ForeignKey(User)", but how then do I get the

Re: Sorry to butt in. I'm just trying to get my message out.

2008-05-04 Thread James Matthews
Google has to do something about these spam issues! Or we should band together to write a mailing list App in Django that filters out spam! On Sat, May 3, 2008 at 8:20 AM, Etienne Robillard < [EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, 2 May 2008

Get first_name from User Model in to my Model

2008-05-04 Thread chiefmoamba
Hi, I am having a problem getting data from the user model in to my model (below). I can get the usernames easy enough using "user = models.ForeignKey(User)", but how then do I get the first_name & last_name in to my model from the user model? Any ideas appreciated, Thanks, Ed class

Re: Getting error when using ModelForm

2008-05-04 Thread Karen Tracey
On Sun, May 4, 2008 at 2:47 PM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I'm trying to use ModelForm to create a form based on one of my > models. However, I'm getting the following error: > > /// > AttributeError at /plush/theone/ > 'ModelFormOptions' object has no attribute 'many_to_many'

Re: Suggestions on building a "Grouped" RadioSelect

2008-05-04 Thread soviut
I thought I'd mention that my temporary brute force solution is to simulate the Form rendering behaviour. I pass filtered querysets containing tapeFormats and dataFormats (Tape and Data being the two Mediums) form the view into the render_to_response. I then just use {% for %} loops to iterate

OneToOne relations generates many UNIQUE indexes on MySQL

2008-05-04 Thread Sephi
Creating the following very simple model : class Interactable(models.Model): pass class News(Interactable): title = models.CharField(max_length = 50) excerpt = models.CharField(max_length = 100) text = models.TextField() And then synchronizing the database reveals that 2 unique indexes

Getting error when using ModelForm

2008-05-04 Thread Greg
Hello, I'm trying to use ModelForm to create a form based on one of my models. However, I'm getting the following error: /// AttributeError at /plush/theone/ 'ModelFormOptions' object has no attribute 'many_to_many' /// Below is my code: /// Views.py File def theone(request): a =

cursor.cursor.fetchall() dict version?

2008-05-04 Thread Thierry
is there a dict returning version of cursor.cursor.fetchall() ? --~--~-~--~~~---~--~~ 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

Re: Default Pluralize logic

2008-05-04 Thread [EMAIL PROTECTED]
> Is it? Maybe. I don't know if anyone has proposed smartening-up Django's > pluralization rules in the past I had a look through the mailing-list archive and couldn't spot anything directly related. > (I'm not even sure if you are proposing it > here?). I pretty much am proposing it here. I

Lock-In

2008-05-04 Thread Kamal
Question, I work in a company that is adopting the agile method, scrum. They are doing implementing it using c#, which I think is funny. How does a company decide to switch its development language? We have very long development cycle's, and I would have thought they would have looked at the

Re: GeoDjangoFriendly?

2008-05-04 Thread Alex Ezell
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. This is

Re: GeoDjangoFriendly?

2008-05-04 Thread Justin Bronn
> Anyone have experience/opinions on hosting GeoDjango with PostGIS on > WebFaction or Slicehost (or any other of the DjangoFriendly hosts)? > I'm wondering if WebFaction shared account allows you enough freedom > to install all the geodjango dependencies... While I don't personally use

Re: Can I use Django to display data form a legacy database?

2008-05-04 Thread Justin Bronn
> Thanks.  To be sure, when I do the python manage.py syncdb, that > doesn't alter my existing database does it?  What is syncdb doing in > this case? It is typically worth the effort to search the docs: http://www.djangoproject.com/documentation/django-admin/#syncdb Particularly, read the

Re: Can I use Django to display data form a legacy database?

2008-05-04 Thread jmDesktop
On May 4, 12:22 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, May 3, 2008 at 11:55 PM, jmDesktop <[EMAIL PROTECTED]> wrote: > > > If all I want to do is display a row(s) from a legacy database, one > > that I did not create with Django and syncdb, will Django do that?  Do > > I have

Re: GeoDjangoFriendly?

2008-05-04 Thread RichardH
I don't know about specifically GeoDjango dependencies, but the Webfaction guys have been very responsive to my requests for additional Python module installations. Richard On May 4, 12:20 pm, Tyler Erickson <[EMAIL PROTECTED]> wrote: > Anyone have experience/opinions on hosting GeoDjango with

Re: [newforms-admin] using multiple AdminSites

2008-05-04 Thread Derek Hoy
On Sat, May 3, 2008 at 11:05 PM, derek.hoy <[EMAIL PROTECTED]> wrote: > - if you register models to basic-admin, they won't show automatically > in advanced-admin and vice-versa Looks like you can register a model with more than one AdminSite. Derek

Re: urls() and request.user

2008-05-04 Thread Guillaume Lederrey
2008/5/2 Nathaniel Whiteinge <[EMAIL PROTECTED]>: > > On May 1, 10:04 am, "Guillaume Lederrey" > > <[EMAIL PROTECTED]> wrote: > > This of course doesnt work because the request isnt in the scope. I > > could redefine a view in my views.py and do the work on the request > > manually, but i

Re: absolute url overrides

2008-05-04 Thread Thierry
I read that doc many times :) Missed that little detail every time though. Thanks for the help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

GeoDjangoFriendly?

2008-05-04 Thread Tyler Erickson
Anyone have experience/opinions on hosting GeoDjango with PostGIS on WebFaction or Slicehost (or any other of the DjangoFriendly hosts)? I'm wondering if WebFaction shared account allows you enough freedom to install all the geodjango dependencies...

Re: child edit causes duplication with model inheritance

2008-05-04 Thread James Bennett
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 sort of information is to watch the development timeline:

Suggestions on building a "Grouped" RadioSelect

2008-05-04 Thread soviut
I have a form, on that form is a ModelChoiceField named MediumFormat. It points to a MediumFormat table in my database which acts as an entity relationship between a Medium table and a Format table. I need to display a single radio button collection, that is, it is being driven by a single Form

Re: child edit causes duplication with model inheritance

2008-05-04 Thread bobhaugen
On May 4, 2:49 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As a slight addendum to what James said, it will be implemented in the > newforms-admin branch, and will be available in trunk after the > merge(you can of course use the newforms-admin branch if you need > this). Does that mean

Re: child edit causes duplication with model inheritance

2008-05-04 Thread [EMAIL PROTECTED]
As a slight addendum to what James said, it will be implemented in the newforms-admin branch, and will be available in trunk after the merge(you can of course use the newforms-admin branch if you need this). On May 4, 2:41 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sun, May 4, 2008 at

Re: child edit causes duplication with model inheritance

2008-05-04 Thread James Bennett
On Sun, May 4, 2008 at 12:58 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > if you add an "A" object then edit it and hit save it duplicates > itself. Does anyone else have this trouble with model inheritance? The admin does not currently support model inheritance. This is a known and

Re: Using django test suite with standalone script

2008-05-04 Thread Russell Keith-Magee
On Thu, May 1, 2008 at 9:02 PM, dcoy <[EMAIL PROTECTED]> wrote: > > What I want to do is to use the django test suite, or more > specifically the test environment it can set up (with the test-db with > pre-populated data) to test the client-server part of the system. Have you looked into the