Re: one inconsistent place between django document and source code.

2010-08-10 Thread Yangmin Li
thanks On Tue, Aug 10, 2010 at 8:04 PM, Karen Tracey wrote: > On Mon, Aug 9, 2010 at 1:49 AM, yangmin...@gmail.com > wrote: > >> Hi All, >>When I was reading django document, I also viewed the source code >> of the framework to help me understand,

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
thanx, I'll look at that =) On Tue, Aug 10, 2010 at 12:31 PM, Xavier Ordoquy wrote: > It is a bit trickier. > Pinax application gets all their dependancies through pip installation and > requirement files. > If you have a pinax application, take a look in the requirements

Re: include(admin.site.urls)

2010-08-10 Thread Michael P. Soulier
On 10/08/10 Karen Tracey said: > does not work properly. You also have to change the first element of the > tuple: > > (r'^admin/', include(admin.site.urls)), *sigh* Thanks, that was it. Mike -- Michael P. Soulier "Any intelligent fool can make things bigger and

Re: do QuerySet joins still suck?

2010-08-10 Thread Phlip
>  orders = Order.objects.filter( >    pk=42, >    order_items__product='whiteboards' >    ) > > Is this not what you want? We made a feeb attempt at that and gave up. Thanks! I will try it next. The next question, if it works, will be how to values_list() a field from a child record; it might

Reporting Library??

2010-08-10 Thread ydjango
I need a reporting library for web based (HTML) reporting with support for standard features 1) header 2) footer 3) pagination 4) Totals/summary Reportlab is too low level for my needs and their pro version license does not work for me. Is there any other good python based reporting library.

Re: do QuerySet joins still suck?

2010-08-10 Thread Tim Chase
On 08/10/10 18:39, Phlip wrote: The point of a relational database is to distribute everything into normalized tables, then perform set operations on multiple tables. Given an Order model with many order_items, other ORMs allow me to query them like this (in a hypothetical notation):

Language code after logout - Django ignores settings.language_code?

2010-08-10 Thread Stodge
I have internationalisation working in 1.1.1. When I logout and get re- directed to the login screen, the language code is always 'en' regardless of settings.language_code. Is this the expected behaviour? I realise I'm using an older version but I have no control over the server. -- You

do QuerySet joins still suck?

2010-08-10 Thread Phlip
The point of a relational database is to distribute everything into normalized tables, then perform set operations on multiple tables. Given an Order model with many order_items, other ORMs allow me to query them like this (in a hypothetical notation):

Re: New server set up

2010-08-10 Thread Scott Hebert (slaptijack)
Python 2.4 is the default version that ships with RHEL / CentOS 5.x. On Aug 9, 4:27 pm, Boguslaw Faja wrote: > why are you using python in version 2.4? It's a bit old. -- Scott Hebert http://slaptijack.com -- You received this message because you are subscribed to the Google

Re: SSL with Django, Apache, mod_wsgi and nginx

2010-08-10 Thread Graham Dumpleton
On Aug 11, 7:43 am, Colleen A Josephson wrote: > That does exactly what I need, thank-you! > > From: django-users@googlegroups.com [django-us...@googlegroups.com] On Behalf > Of Michael [newmani...@gmail.com] > Sent: Tuesday, August 10,

Re: Django not creating intermediary tables for m2m relations

2010-08-10 Thread bksfu
Hi Xavier, I had dropped my tables earlier, so this wasn't the problem. Everything was being created afresh, although there were existing tables in the DB that had nothing to do with my models. All my existing tables had different names than the ones in my models. On Aug 7, 2:55 am, Xavier

base url not displaying

2010-08-10 Thread tomfmason
Sorry for the non-descriptive title.. This is somewhat of an odd issue. First off, I am working with django 1.1.1 with apache proxing to CherryPY WSGIServer. Here is all of the code in question - http://pastie.org/1084870. When I access the wsgiserver directly everything works as expected.

How to limit entries from each user to a specific number N (N > 1)?

2010-08-10 Thread Andy
I have an application that's similar to the typical Q system. A user asks a question. other users submit answers to that question: - Each user is allowed to submit up to N answers to each question, where N > 1 (so, say each user can submit no more than 3 answers to each question) - A user can

Re: django - Datagrid

2010-08-10 Thread Tom
Bjorn, I got this working. The way I fixed it was.. I downloaded jqGrid again and selected all the libraries to be included. My guess is that navGrid isn't bundled with the core grid. I dont know this for sure. Its working for me now. Tom On Jun 19, 3:59 pm, Bjørn Høj Jakobsen

Re: Translation

2010-08-10 Thread cootetom
You could try using the set_language redirect view to set your language http://docs.djangoproject.com/en/1.1/topics/i18n/internationalization/#the-set-language-redirect-view On Aug 10, 8:12 pm, Renne Rocha wrote: >   I don't know if it will help you, but reading the

RE: SSL with Django, Apache, mod_wsgi and nginx

2010-08-10 Thread Colleen A Josephson
That does exactly what I need, thank-you! From: django-users@googlegroups.com [django-us...@googlegroups.com] On Behalf Of Michael [newmani...@gmail.com] Sent: Tuesday, August 10, 2010 5:25 PM To: django-users@googlegroups.com Subject: Re: SSL with Django,

Re: SSL with Django, Apache, mod_wsgi and nginx

2010-08-10 Thread Michael
On Tue, Aug 10, 2010 at 5:00 PM, Colleen A Josephson wrote: > Unfortunately I'm not very well versed in proxying and SSL, etc. > I'm not sure I understand how mod WSGi eliminates the need for SSLRedirect. > > I implemented the Lincoln Loop setup, but if I go to the http:// admin

Re: custom vocabularies vs translation

2010-08-10 Thread bobhaugen
On Aug 9, 5:01 pm, cootetom wrote: > Using the language files is the solution here. Even if your site only > supports the English language, it still means that you can have .po > files for just English. Once you understand how it all hangs together > you'll be away. Thanks

Re: Django and WebShell

2010-08-10 Thread mike171562
anyone? On Aug 6, 2:42 pm, Support Desk wrote: > I'm trying to setup Webshell in one of my Django Password protected pages. > Webshell is a python script which starts its own server and your designated > port it displays a shell on ava enabled web browser that connect

RE: SSL with Django, Apache, mod_wsgi and nginx

2010-08-10 Thread Colleen A Josephson
Unfortunately I'm not very well versed in proxying and SSL, etc. I'm not sure I understand how mod WSGi eliminates the need for SSLRedirect. I implemented the Lincoln Loop setup, but if I go to the http:// admin page I am not redirected to https:// as I would like to be.

Re: django-tables with ID

2010-08-10 Thread Nick
You could just write the table out in full in the template and use JavaScript to sort the rows. On Aug 10, 2:55 pm, "Mike W." wrote: > Hi, > > I'm trying to use django-tables to display the output in a grid-like > view.  I'd like a user to be able to choose a row and send it

Re: MultiPartParserError HTTP_CONTENT_LENGTH zero when uploading a file

2010-08-10 Thread hcarvalhoalves
I'll try running under Cherokee + uWSGI and see if the problem shows up again. Something tells me this is related to FCGI... It's still hard to separate the false positives though. If a user stops a upload, you see the exact same traceback. On Aug 10, 12:47 pm, Roger

problem with a formset from model

2010-08-10 Thread refreegrata
Hello list. I have a problem. I'm a newbie in Django using his first formset. I have this: class BaseFormFormato_habilitar(BaseModelFormSet): def __init__(self, *args, **kwargs): super(BaseFormFormato_habilitar,

dynamic forms and custom methods

2010-08-10 Thread lingrlongr
I 'm trying to create a form dynamically. This works just fine, but there's no way for the form to offer any customized validation, by way of the clean() method. def get_dept_weight_form(store): fields = {} s = Store.objects.get(pk=store.id) for d in store.department_set.all():

Re: 'unicode' object has no attribute '_committed'

2010-08-10 Thread grimmus
I just found out Modeltranslation does not support ImageField :-( http://code.google.com/p/django-modeltranslation/issues/detail?id=30 On Aug 10, 10:01 pm, grimmus wrote: > I am doing it in the admin area, so i dont have any custom code. > > The issue might be with the

Re: 'unicode' object has no attribute '_committed'

2010-08-10 Thread grimmus
I am doing it in the admin area, so i dont have any custom code. The issue might be with the Modeltranslation module. It creates extra columns for the different translations, so, for example, title has title, title_en, title_fr as rows in the DB. This applies to the image field too. Thanks for

django-tables with ID

2010-08-10 Thread Mike W.
Hi, I'm trying to use django-tables to display the output in a grid-like view. I'd like a user to be able to choose a row and send it to a detail page. I've tried to look for a way to pass the ID across, but I can't seem to find much about it. Is it possible, and if so, how? Is there

Re: 'unicode' object has no attribute '_committed'

2010-08-10 Thread wayne
What is the code that you are using to save instances of the model with? -- 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

'module' object has no attribute 'instancemethod' error

2010-08-10 Thread Wim Feijen
Hi, When using reportlab trying to import a file which contains the following line, I get an error. from reportlab.platypus import Paragraph The error says: ViewDoesNotExist at / Tried book in module book.address.views. Error was: 'module' object has no attribute 'instancemethod' The trace is

Re: 'unicode' object has no attribute '_committed'

2010-08-10 Thread grimmus
Thanks for the reply, below is my Project model from django.db import models class Project(models.Model): title = models.CharField(max_length=100) path = models.CharField(max_length=100,help_text='This should be the folder name') image =

Re: 'unicode' object has no attribute '_committed'

2010-08-10 Thread wayne
> When i try and add a project  in the admin i get the error: 'unicode' > object has no attribute '_committed' . I'm quite certain it's an issue > with the image field. Well, not to be coy, but you have a unicode string somewhere whose _committed value you are trying to access. Problem is, the

Re: Translation

2010-08-10 Thread Renne Rocha
I don't know if it will help you, but reading the chapter of internationalization in the book "The Definitive Guide To Django" I saw this paragraphs: LocaleMiddleware tries to determine the user's language preference by following this alghorithm: - First it looks for a django_language key

Re: SSL with Django, Apache, mod_wsgi and nginx

2010-08-10 Thread Michael
On Tue, Aug 10, 2010 at 2:49 PM, Colleen A Josephson wrote: > I just set up a site that uses nginx to server static media and > Apache/mod_wsgi to deal with the Django stuff. > > How would I go about dealing with SSL? Would the setup be on the nginx end > or the Apache end? Could

SSL with Django, Apache, mod_wsgi and nginx

2010-08-10 Thread Colleen A Josephson
I just set up a site that uses nginx to server static media and Apache/mod_wsgi to deal with the Django stuff. How would I go about dealing with SSL? Would the setup be on the nginx end or the Apache end? Could I still use SSLRedirect middleware? Thanks, -Colleen -- You received this message

SSL with Django, Apache, mod_wsgi and nginx

2010-08-10 Thread Colleen A Josephson
I just set up a site that uses nginx to server static media and Apache/mod_wsgi to deal with the Django stuff. How would I go about dealing with SSL? Would the setup be on the nginx end or the Apache end? Could I still use SSLRedirect middleware? Thanks, -Colleen -- You received this message

Re: Translation

2010-08-10 Thread kostia
I have a web site. It is www.projector.net.ua. Sometimes it is down. I have the latest code here http://github.com/vaxXxa/projector of it. I have installed rosetta module to translate the English version of my site into Russian and Ukrainian. I did this. You may see it in projector/locale folder.

'unicode' object has no attribute '_committed'

2010-08-10 Thread grimmus
Hi, I am using Django 1.2.1 I have a model called Project that contains a char field and an image field. My project used Modeltranslation so i can have an English and French version of the 2 fields. When i try and add a project in the admin i get the error: 'unicode' object has no attribute

Re: Translation

2010-08-10 Thread ankit rai
Can you describe your problem as i have recently done the django Internationalisation and i was able to do so . On Tue, Aug 10, 2010 at 11:05 PM, cootetom wrote: > I can't see anything wrong. Maybe someone else will. Maybe just create > a really simple one page web site from

Re: Translation

2010-08-10 Thread kostia
Disappointed. -- 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+unsubscr...@googlegroups.com. For more options, visit

Re: Translation

2010-08-10 Thread cootetom
I can't see anything wrong. Maybe someone else will. Maybe just create a really simple one page web site from scratch and see if you get the same issues? On Aug 10, 6:27 pm, kostia wrote: > Of couse I included a {% load i18n %} tag and then used {% trans %} > tags in

Re: Translation

2010-08-10 Thread kostia
Of couse I included a {% load i18n %} tag and then used {% trans %} tags in each file. Still no solution -- 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

Re: Problem with cache.

2010-08-10 Thread Aljoša Mohorović
On Tue, Aug 10, 2010 at 7:17 PM, Felipe wrote: > So, > > I'm using a filesystem caching and I'm using cache.get and cache.set > to set and get the cache. > > But sometimes django shows a different value of the stored value in > the database. cache is not updated

Re: Translation

2010-08-10 Thread kostia
I did everything. The latest my code is here http://github.com/vaxXxa/projector -- 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

Re: Translation

2010-08-10 Thread cootetom
Have you set USE_I18N = True in your settings.py file? On Aug 10, 6:13 pm, kostia wrote: > My base.html has a header: > > {% load i18n %} > > {% get_current_language as LANGUAGE_CODE %} > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;> > >

Re: Problem with cache.

2010-08-10 Thread Felipe
So, I'm using a filesystem caching and I'm using cache.get and cache.set to set and get the cache. But sometimes django shows a different value of the stored value in the database. Ex: the system show a variable in a template: 487.000 entries. And sometimes, due cache problems, when I update

Re: Translation

2010-08-10 Thread Alexander Jeliuc
you should include {% load i18n %} tag in every file you use translation On Tue, Aug 10, 2010 at 8:13 PM, kostia wrote: > My base.html has a header: > > {% load i18n %} > > {% get_current_language as LANGUAGE_CODE %} > > > >

Re: Translation

2010-08-10 Thread kostia
My base.html has a header: {% load i18n %} {% get_current_language as LANGUAGE_CODE %} http://www.w3.org/1999/xhtml; lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}"> ... The LANGUAGE_CODE in settings is: LANGUAGE_CODE = 'ru' #multilingual

Re: Translation

2010-08-10 Thread kostia
>From djangobook: "If all you want to do is run Django with your native language, and a language file is available for your language, all you need to do is set LANGUAGE_CODE." This is not true! Unfortunately( -- You received this message because you are subscribed to the Google Groups "Django

Re: Problem with cache.

2010-08-10 Thread Aljoša Mohorović
On Tue, Aug 10, 2010 at 6:55 PM, Felipe wrote: > So, when I erase the cache, the value is corrected, and the variable > turns showing the real value which is stored in the database. what do you mean when you say cache? browser cache, memcached or something else? > Could

Problem with cache.

2010-08-10 Thread Felipe
Dear Friends, I'm using django in a project and I'm having a scary/strange problem. So, the problem is regarding the cache. I have some variables which are extracted from the database, with an exact value. However, some times this variable is extracted from the data base and show a different

Re: Custom CheckboxSelectMultiple Widget that holds state

2010-08-10 Thread wayne
Well, IMO any way that works and you feel comfortable supporting is "okay". I can tell you what I did, but I don't know if it's any better. If I understand you correctly, you want to bring up the options a user made previously and start from there instead of a blank slate. What I did to

Re: Translation

2010-08-10 Thread kostia
Docs and djangobook useless in question of translation. Any other guide to read is available? -- 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,

Re: New server set up

2010-08-10 Thread shacker
There are some lengthy discussions and lots of links on setting up Django with WHM/cPanel here: http://forums.cpanel.net/f5/django-python-cpanel-71229-p2.html And this thread: http://forums.cpanel.net/f145/django-support-146541.html is the "official" Django-on-cPanel feature request -- weigh

Custom CheckboxSelectMultiple Widget that holds state

2010-08-10 Thread vcarney
I've got a form with a multi checkbox that contains static choices. Using the forms.MultipleChoiceField with the CheckboxSelectMultiple widget worked fine for display. However, when displaying an edit form, the checkboxes did not hold state (all items were unchecked). To handle this I created a

Re: MultiPartParserError HTTP_CONTENT_LENGTH zero when uploading a file

2010-08-10 Thread Roger
I'm seeing the same symptoms. The rate is much lower than 1 in 5 - maybe 1 in 100 - but definitely the same error. Were you guys able to make any progress on a solution? On Aug 4, 1:17 am, hcarvalhoalves wrote: > Now that someone else mentioned, yes, I believe we have

Re: Python question about subprocess.Popen() and stdout

2010-08-10 Thread J. Cliff Dyer
On Fri, 2010-08-06 at 18:35 -0100, Joshua Russo wrote: > > > Nope, still no dice. Below is what I did. I modified the worker() > function from one of the Stackoverflow examples. Let me know if I'm > using flush properly. Keep in mind that everything you see here is > already running in a

Re: Django on Mac OS X

2010-08-10 Thread Xavier Ordoquy
It is a bit trickier. Pinax application gets all their dependancies through pip installation and requirement files. If you have a pinax application, take a look in the requirements directory. You'll find two files (base.txt and project.txt) that tell exactly what application to get and what

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
*I bet you installed pinax on your linux box but not on your osx one (or not in the same virtual env).* *hmmm, I just copied the code from Linux to OSX, is it what you mean? I should have "install" Pinax, that's it?* On Tue, Aug 10, 2010 at 12:05 PM, Xavier Ordoquy wrote: >

Re: Django on Mac OS X

2010-08-10 Thread Xavier Ordoquy
Actually, it doesn't work on Linux either with the same settings. Please update django-timezones to 0.2.dev2 which is what pinax uses (pip install --extra-index-url=http://dist.pinaxproject.com/dev/ django-timezones==0.2.dev1). The latest stable doesn't seem to work with django 1.2. I bet you

Re: Translation

2010-08-10 Thread kostia
my settings.py: LANGUAGE_CODE = 'uk' #multilingual LANGUAGES = ( ('en', 'English'), ('ru', 'Russian'), ('uk', 'Ukrainian'), ) I've created under myproject/locale folder two translations uk and ru and translated with rosetta. I reloaded web server and browser. Nothing

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
I'm not blaming OSX. I just said that it was working on Linux, and now it's not working on Mac. and even if my code is wrong that shouldn't be that dificulty to find the error, doesn't agree? A more clear error message would help. The problem isn't the error, but we are about a month arguing about

Re: Django on Mac OS X

2010-08-10 Thread Xavier Ordoquy
Le 10 août 2010 à 15:10, Daniel França a écrit : > It's very useful Andy, sympathy is welcome =) > I was programming under linux, and I guessed that would be really straight > forward port my project to OSX, I was wrong :( You know you are unfair. Unless you have strong evidence, you shouldn't

Re: Django 1.1.1's Feed only display the latest item

2010-08-10 Thread Daniel Roseman
On Aug 10, 1:35 pm, Federico Maggi wrote: > On Tue, Aug 10, 2010 at 13:38, Daniel Roseman wrote: > > This was actually an issue with the OP's get_absolute_url method, > > which has been diagnosed on StackOverflow. > >     could you please be more

Re: Translation

2010-08-10 Thread cootetom
Have a read about how Django chooses the language to display here http://docs.djangoproject.com/en/1.1/topics/i18n/deployment/#how-django-discovers-language-preference Also have a read about how you can change the user's language preference on the site here

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
It's very useful Andy, sympathy is welcome =) I was programming under linux, and I guessed that would be really straight forward port my project to OSX, I was wrong :( > 2010/8/10 AndyB > > I haven't got anything useful to add other than some sympathy. I >> vented my

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
I'll try to update my code. On Tue, Aug 10, 2010 at 10:06 AM, Xavier Ordoquy wrote: > Actually I have pinax (trunk) running with the social template and django > 1.2 without issue using sqlite on OSX. > I can change my profile timezone in this application without any

Re: Django on Mac OS X

2010-08-10 Thread Xavier Ordoquy
Actually I have pinax (trunk) running with the social template and django 1.2 without issue using sqlite on OSX. I can change my profile timezone in this application without any issue, everything seems to be working fine. Somehow, the changes you made seem to have messed up something or you

Re: Translation

2010-08-10 Thread kostia
I used rosetta to translate strings. How can I switch language of my site and see the result? -- 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,

Turn abstract base class into non-abstract

2010-08-10 Thread Daniel Baron
Hi all, I am using an abstract base class called "profile" for the extension of my user models. I implemented several profiles like "standard, premium, staff" and so on. Now I realised that I would like to check the permission of a certain user on a certain project without having to know

Re: Django 1.1.1's Feed only display the latest item

2010-08-10 Thread Federico Maggi
On Tue, Aug 10, 2010 at 13:38, Daniel Roseman wrote: > This was actually an issue with the OP's get_absolute_url method, > which has been diagnosed on StackOverflow. could you please be more specific (e.g., a URL would be useful). Thanks! -- Fede -- You received

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
the log files are for tests purposes only. I'm inserting the site table myself. is it a bug in pinax profiles? accounts? I didn't get the point. On Tue, Aug 10, 2010 at 9:10 AM, Xavier Ordoquy wrote: > It is definitively an issue in your code. > > syncdb won't run without

Re: How to handle invalid deleted forms in formsets

2010-08-10 Thread Tomi Pieviläinen
> What version of Django? This sounds a lot like: Latest (installed by making pip require django>=1.2). > http://code.djangoproject.com/ticket/11801 It isn't. The problem is not that I'm not getting formset.deleted_forms, I am. The problem is that these deleted forms also go to the

Re: Django on Mac OS X

2010-08-10 Thread Xavier Ordoquy
It is definitively an issue in your code. syncdb won't run without complaining about the timezone field in your account model. Once commented, syncdb continues but at some point will fail because it expects a site to be configured but at this point, the site table is not garanteed to be

Re: How to handle invalid deleted forms in formsets

2010-08-10 Thread Karen Tracey
On Mon, Aug 9, 2010 at 8:23 AM, Tomi Pieviläinen wrote: > (Using formset_factory, if that makes a difference) > > If the user fills a form in formset incompletely and then marks it for > deletion, my form handling dies horribly. The deleted forms prevent > formset.cleaned_data

Re: one inconsistent place between django document and source code.

2010-08-10 Thread Karen Tracey
On Mon, Aug 9, 2010 at 1:49 AM, yangmin...@gmail.com wrote: > Hi All, >When I was reading django document, I also viewed the source code > of the framework to help me understand, >but I found one inconsistent place about urls attribute of > Django's AdminSite object.

Re: ManyToManyField limiting choices

2010-08-10 Thread Scott Gould
Define a custom ModelForm for your model that sets the appropriate queryset parameter (either altering the field in __init__, or just defining the field in the class as a ModelMultipleChoiceField). Then register that ModelForm for use in the admin (via a ModelAdmin class). On Aug 9, 7:51 pm,

Re: include(admin.site.urls)

2010-08-10 Thread Karen Tracey
On Sun, Aug 8, 2010 at 10:14 PM, Michael P. Soulier < msoul...@digitaltorque.ca> wrote: > Hi, > > I saw the deprecation warning on using admin.site.root in my urlconf for > the > admin site, so I moved to include(admin.site.urls) instead. Unfortunately > after I logged-in, every click in the

Re: Django 1.1.1's Feed only display the latest item

2010-08-10 Thread Daniel Roseman
On Aug 10, 9:04 am, Federico Maggi wrote: > On Tue, Aug 10, 2010 at 09:47, Tomi Pieviläinen wrote: > > As mentioned in the IRC channel, the feed did indeed display two > > items, but because it was invalid markup (based on W3) Safari didn't > > show them

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
ahh... and my code is in github if someone wanna test it: http://github.com/danielfranca/Tint 2010/8/10 Daniel França > My code is based on Pinax: http://pinaxproject.com/ > and the Profile comes from there. > > > On Tue, Aug 10, 2010 at 5:33 AM, tsmets

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
My code is based on Pinax: http://pinaxproject.com/ and the Profile comes from there. On Tue, Aug 10, 2010 at 5:33 AM, tsmets wrote: > My feeling is that you are now hitting a bug from your app & not a > django / python / mac / ... issue. > A stupid gess from me ... > You use

Re: Django 1.1.1's Feed only display the latest item

2010-08-10 Thread Federico Maggi
On Tue, Aug 10, 2010 at 09:47, Tomi Pieviläinen wrote: > As mentioned in the IRC channel, the feed did indeed display two > items, but because it was invalid markup (based on W3) Safari didn't > show them properly. I noticed, but has this issue (i.e., invalid RSS markup) been

Re: Django on Mac OS X

2010-08-10 Thread tsmets
My feeling is that you are now hitting a bug from your app & not a django / python / mac / ... issue. A stupid gess from me ... You use a Custom Profile for the User and it is an upgrade from Django 1.1 and ... you need to adapt the minor details about it . If you code is in a SVN server I can do

Re: filtering related object in template

2010-08-10 Thread Daniel Roseman
On Aug 10, 1:34 am, Martin Tiršel wrote: > Hello, > > I can do: > > {% for image in gallery.image_set.all %} > ... > {% endfor %} > > but my image model has: > is_thumbnail = models.BooleanField() > > and I want to limit displaying only these images which have   >

Re: Django 1.1.1's Feed only display the latest item

2010-08-10 Thread Tomi Pieviläinen
As mentioned in the IRC channel, the feed did indeed display two items, but because it was invalid markup (based on W3) Safari didn't show them properly. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Django 1.1.1's Feed only display the latest item

2010-08-10 Thread phretor
Hello, I've created a Feed subclass to export a simple feed of news http://paste.pocoo.org/show/248193/. As you can see (L45-46), the Feed subclass' items() method returns the first 15 objects in News.objects.order_by('-time'): def items(self): return