Re: How control access to static pages that are *not* part of a Django app?

2011-07-31 Thread Shawn Milochik
I'm dealing with the same issue, and it looks like I'm probably going to adopt django-private-files for this. http://pypi.python.org/pypi/django-private-files/0.1.2 It's on Read The Docs, bitbucket, and github. It does what I need it to do, it works with nginx, and it's been maintained

How control access to static pages that are *not* part of a Django app?

2011-07-31 Thread Chris Seberino
My Django app only allows someone to access a /books page, that is part of the Django app, if they are signed in. The pages below that URL are just static directory listings of PDFs all handled by Apache. For example /books/book_1, /books/book_2, etc. Because these directory listings aren't

Re: USE_I18N vs. USE_L10N

2011-07-31 Thread Mike Dewhirst
On 1/08/2011 8:09am, Lucy Brennan wrote: I read Wikipedia and Django docs. Now, after all this debate, I see that I _did_ understand the definitions when I first read it. Given those definitions however, the meaning of USE_I18N and USE_L10N are not obvious. Far, far, far from obvious. There

Re: Broken INTERNAL links related to django.contrib.auth

2011-07-31 Thread Russell Keith-Magee
On Mon, Aug 1, 2011 at 1:23 AM, ivan.o...@googlemail.com wrote: > I get a lot of 'broken internal links' mails daily from a Django > application I > am hacking: http://grical.org > > They look like this:: > >    Referrer: http://grical.org/accounts/login/e/show/580/ >    

Re: USE_I18N vs. USE_L10N

2011-07-31 Thread Lucy Brennan
I read Wikipedia and Django docs. Now, after all this debate, I see that I _did_ understand the definitions when I first read it. Given those definitions however, the meaning of USE_I18N and USE_L10N are not obvious. Far, far, far from obvious. There _absolutely_ has to be some additional

Re: Nested formsets at Django 1.3

2011-07-31 Thread Kev Dwyer
Kev Dwyer wrote: > Hello List, > > I've been upgrading an old Django 1.1.x app to use Django 1.3, and am > having a problem with nested formsets. > ... > > > I omitted one important fact in this write-up. In Nathan's original code, the lowest level formset is created like this:

Re: south vs nashvegas

2011-07-31 Thread Shawn Milochik
I never heard of Nashvegas until your e-mail, and I've been using South for years and it's been wonderful. I also met Andrew Godwin at DjangoCon last year, and he's a genuinely nice and friendly guy. So, assume that I'm biased. Having said that, here are my responses: South is definitely not

Django 1.3 CreateView/ModelForm and dynamic filtering of fields

2011-07-31 Thread Paul Walsh
I am trying to filter a field on a ModelForm. I am subclassing the generic CreateView for my view. I found many references to my problem on the web, but the solutions do not seem to work (for me at least) with Django 1.3's class-based views. Specifically, my users need to add Subscribers, and

south vs nashvegas

2011-07-31 Thread bobhaugen
I'm about to start using a database migration tool on an existing project. (Yes, yes, I know, I am crazy for not having done so from the beginning...) So: south (the reigning champ) or nashvegas (the upstart)? I respect the people working on nashvegas a lot, and figure they have pretty good

Broken INTERNAL links related to django.contrib.auth

2011-07-31 Thread ivan.o...@googlemail.com
I get a lot of 'broken internal links' mails daily from a Django application I am hacking: http://grical.org They look like this:: Referrer: http://grical.org/accounts/login/e/show/580/ Requested URL: /accounts/login/e/show/ 580/ User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows

Re: jquery

2011-07-31 Thread veva...@yandex.ru
Thank You! Now I see I don't understand how can I use static files using the development server. I saw several answers to this question of other people but they are too breaf for me. Books on Django I have don't explain this problem. Be so kind to explain me. My local computer has Windows. The

Re: Customizing Form Field HTML Attributes

2011-07-31 Thread SixDegrees
Thank you. Stuart MacKay wrote: > > Take a look at the widgets used to display a form. From the > documentation: https://docs.djangoproject.com/en/dev/ref/forms/widgets/ > > "On a real Web page, you probably don't want every widget to look the > same. You might want a larger input element for

Re: Customizing Form Field HTML Attributes

2011-07-31 Thread Stuart MacKay
Take a look at the widgets used to display a form. From the documentation: https://docs.djangoproject.com/en/dev/ref/forms/widgets/ "On a real Web page, you probably don't want every widget to look the same. You might want a larger input element for the comment, and you might want the 'name'

Customizing Form Field HTML Attributes

2011-07-31 Thread SixDegrees
I would like to use the 'title' attribute of several form fields to hold our help_text, rather than displaying the text alongside the field. I don't see any way, though, to add or modify tag attributes on a form field. How would I do this? -- View this message in context:

Re: No modelue name localeurl ( ">_<)

2011-07-31 Thread Andre Terra
Then install them on your system's python environment, rather than a virtual one. Tip: site-packages On 7/31/11, Kase wrote: > oh, im estupid, i put the rosetta and transmeta in my site path but > not localeurl... > > but, i like to put in a generic path and not duplicate

django nani

2011-07-31 Thread Vusal Alishov
Hello, i've problem with django-nani, in admin panel ist of objects don't shown. -- 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

Re: No modelue name localeurl ( ">_<)

2011-07-31 Thread Kase
oh, im estupid, i put the rosetta and transmeta in my site path but not localeurl... but, i like to put in a generic path and not duplicate in every proyect =/ On 31 jul, 03:43, Kase wrote: > i  try  internationalization whit    transmeta,  localeurl and rosette > >

No modelue name localeurl ( ">_<)

2011-07-31 Thread Kase
i try internationalization whittransmeta, localeurl and rosette transmetta and rosette works ok all put in path /usr/local/pytho27/site-pakage but localeurl dont work! manage.py runserver trowError: No module named localeurl =/ -- You received this message because you are

Re: upgrade Django 1.2.3 to 1.3

2011-07-31 Thread veva...@yandex.ru
Thank You very much, Kev !!! You helped me. Vladimir Vanin -- 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

Re: upgrade Django 1.2.3 to 1.3

2011-07-31 Thread Kev Dwyer
veva...@yandex.ru wrote: > After upgraging I entered python manage.py runserver and got error > messages: > File "manage.py", line 11, in > execute_manager(settings) > File "c:\python26\lib\site-packages\django\core\management > \__init__.py", line 438, in execute_manager > utility.execute() >