Re: Empty categories

2010-01-28 Thread phred78
Thank you Eugene, but it's still listing the empty categories :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsu

Empty categories

2010-01-28 Thread phred78
Hi, I'm sorry if this question has been posted before, but I can't seem to find the correct answer to my problem. I'm trying to list product categories but I'd like to show only those that have products associated with them. Some of them are empty and should not be listed. I have something like t

Re: What is available IN Django compared to other frameworks?

2009-06-09 Thread phred78
I think people got off on the wrong foot. It's perfectly normal to confuse CMS and Framework. Django is not a CMS but you can build a powerful, no-fluff CMS with it. From personal experience, it's worth learning enough Python to build upon Django. And that beats working with Joomla (which I find

Re: how many levels allowed in models

2009-06-08 Thread phred78
Cool tip! > You're allowed to do admin.site.register([Model1, Model2, Model3]) to > register multiple models.  Note the creation of the list there, not directly > calling the method with the objects as argumne.ts --~--~-~--~~~---~--~~ You received this message bec

Re: how many levels allowed in models

2009-06-08 Thread phred78
I think you need separate admin registers, like so: admin.site.register (Patient) admin.site.register (Doctor) admin.site.register (Pills) admin.site.register (Orders) You'd only put two together if you created some special instructions for the admin. Then you'd have something like: admin.site.

Mail queue

2009-06-08 Thread phred78
Hello everyone, Besides django-mailer, has anyone had experience on how to queue e- mail? I'm writing an application that sends newsletters to roughly around 3000 subscribers and I don't want the hosting company - mediatemple - complaining about reaching their 500 e-mail per hour limit. Are there

Re: multiple modelforms for model

2009-06-04 Thread phred78
http://docs.djangoproject.com/en/1.0/topics/forms/ --~--~-~--~~~---~--~~ 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 grou

Re: multiple modelforms for model

2009-06-04 Thread phred78
You have to put these in a forms.py files inside your app. They are not database models, so syncdb is maybe ignoring the whole thing? Hope that helps. Fred On Jun 5, 12:08 am, adrian wrote: > I need to show Telephone and Address modelforms in the middle of > another big form, > so I decided to

Re: select size box error

2009-06-04 Thread phred78
Do you think maybe the view is expecting a value from each one of the dropdowns? I had a similar problem with an input box and had to tell the view what to do if there was no value submitted. Otherwise it would give out an error. I can't see from your code, but are you using POST or GET? Cheers,

Re: How to SEO adapt a I18N django web site..

2009-06-04 Thread phred78
I forgot something. I noticed that you have two description meta tags in your code: There should be only one, of course. The Google bot doesn't like duplicate descriptions. It might think you're cheating. Fred --~--~-~--~~~---~--~~ You received this message bec

Re: How to SEO adapt a I18N django web site..

2009-06-04 Thread phred78
Jens, I have been using django-localeurl and it solves most of your problems. The site I'm currently working on is indexed in all 5 languages, with no real effort on my part. It prefixes your content with the correct ISO. Check it here: http://code.google.com/p/django-localeurl/ You can also che

Re: Random locale strings translated

2009-05-12 Thread phred78
Hey Rob, I had "fuzzy" lines in all of the not translated strings. It's actually quite smart, isn't it? I had no idea. Thanks for your help, it's working perfectly now :-) Fred --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Random locale strings translated

2009-05-11 Thread phred78
Hi, I'm building a multilingual website and using django-localeurl so I can get /fr/, /en/, etc in the url. I've specified translation string, got the translations done and compiled. It's working for the most part, but some of the strings don't show up correctly translated, where others do. What

google-transmeta

2009-04-02 Thread phred78
Hello, Has anyone played with google-transmeta yet? It's great but I can't seem to understand how to pass the model building part. I'm wondering what's the best way to pass variables to templates. For instance: def view(request, language, slug): activate(language) page = Page.objects.ge

django-multilingual issues

2009-03-05 Thread phred78
Hi, I'm using django-multilingual to get some models translated, but I found two errors. class Translation(multilingual.Translation): title = models.CharField(max_length=120, blank=True) introduction = models.TextField(blank=True) body = models.TextField(blank=True)

Getting information from more that one model (ManyToMany but different)?

2009-03-05 Thread phred78
Hi, I'm sorry to bother you guys with this but I hit the wall on this one. I'm creating a website for a tourist board and they have several associates (like hotels, golf, spa, etc). When I initially created the "Associates" application, instead of creating a general "Associate" model and make ev

Re: Help saving form data

2008-11-11 Thread phred78
Thank Daniel :-) I'm pretty sure I'm complicating the whole thing. JavaScript sounds like a good idea. Actually, I don't really need to relate the Ecard and EcardFiles tables. It occurred to me that I just need to know where the swf is and create a field in the Ecard table with the location. I'll

Re: Help saving form data

2008-11-11 Thread phred78
I see what you mean. But if I change the view: def ecard_preview(request): ecard_id = request.GET.get('ecard').encode('utf8') (...) So that it gets the value from the url: /ecards/preview/? ecard=1&sender_name(...), I get this error when submitting: ValueError at /ecards/save/ Cannot as

Help saving form data

2008-11-11 Thread phred78
Hi, I'm trying to build a small Ecard app using Django but I've been running into all sorts of problems and can't get around them. I was hoping some of you more advanced programmers could give me a few hints. These are my models: http://dpaste.com/hold/90019/ (FileBrowseField and product_name ar

Re: Customized ManyToMany in Admin

2008-09-12 Thread phred78
I followed Karen and TiNo's suggestion and added this to the Product class: def __unicode__(self): return ("%s | %s") % (self.title, self.language) It works. When listing products in classes that have "product" as a ManyToManyField, it lists them in the select box, just as I wanted. But

Re: Customized ManyToMany in Admin

2008-09-12 Thread phred78
Oh, I see! You mean something like def __unicode__(self): return self.title + ' | ' + self.language --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Customized ManyToMany in Admin

2008-09-12 Thread phred78
Hello all, I've been googling for hours and I can't figure this out. I'm working on my first real project and came across a problem that some of you might have already solved. I have a table called Products and one called Language. The client will insert several products per language. This is fi

Re: Practical Django Projects: Coltrane's entry detail not working

2008-09-06 Thread phred78
Thanks Karen, I missed that. =) --~--~-~--~~~---~--~~ 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 email to

Practical Django Projects: Coltrane's entry detail not working

2008-09-05 Thread phred78
Hi all, I'm stuck with this problem that I can't figure out. Everything was working, then I went out for lunch and when I came back it stopped working :S It's related to the Entry detail view. Listing is fine but when I try to open the detail of a certain entry it gives out this error: (...) Re