"This URL appears to be a broken link."

2011-07-29 Thread javatina
It seems that verify_exists=True as in URLField([verify_exists=True, max_length=200, **options]) has problems (1.3; 2.7). For example, this site is just fine http://www.rydex-sgi.com/ However, validation reports "This URL appears to be a broken link." This URL http://www.rydexsgi.com/ appears to

Re: 'ValuesListQuerySet' object has no attribute 'META'

2011-06-10 Thread javatina
On Jun 10, 11:29 am, Ian Clelland wrote: > On Fri, Jun 10, 2011 at 5:55 AM, javatina wrote: > > > = in views.py: === > > see formattedhttp://dpaste.com/hold/552703/ > > > same as: > > > def test(request, slug=None): > >    slugs = Concept.object

"Serge Illaryonov wants to chat" - My apology

2011-06-10 Thread javatina
It looks like I accidentally clicked yesterday on that small thing in my Google email client while reading Django digest - evidently that resulted in this embarrassing message. I want to apologize - I never meant to spam the group. Serge -- You received this message because you are subscribed to

Re: 'ValuesListQuerySet' object has no attribute 'META'

2011-06-10 Thread javatina
> What are you doing with the list once you generate it? Are you just running > that single line of code, for instance, in a Python shell, or is this error > generated in a view? Attempt to "cast" QuerySet to list appeared during my experimentation with Python/Django to see what I can do with both

'ValuesListQuerySet' object has no attribute 'META'

2011-06-09 Thread javatina
I need a list of all IDs for model records. So, I do this concept_ids = Concept.objects.values_list('concept_id', flat=True) concept_ids is a ValuesListQuerySet - I got it. According to docs since ValuesListQuerySet is a subclass of QuerySet I can do list(concept_ids) - see https://docs.djangoproj

Re: Django development with iPad as target platform?

2011-05-27 Thread javatina
> The only thing I wish sites would do is to STOP redirecting my phones > and tablets to their "mobile version." I hate that. Can you please explain why? I understand that that may be true for iPad, but for the phones? -- You received this message because you are subscribed to the Google Groups

raw_id_fields and additional attributes

2011-05-26 Thread javatina
Please, need help: if I specify raw_id_fields like in raw_id_fields = ('resources',) in respective admin.py, how can I specify additional attributes of the related admin form? For example, how to change the label? Usually this can be done with something like this (I use below as just a generic ex

django.db.utils.DatabaseError: relation "django_content_type" does not exist

2011-05-12 Thread javatina
I have just come accross this error: django.db.utils.DatabaseError: relation "django_content_type" does not exist LINE 1: ..."."app_label", "django_content_type"."model" FROM "django_co... (see whole traceback below) Some very quick investigation showed that I am not the only one - see for exampl

Re: Navigation menu

2011-04-12 Thread javatina
You can put your current menu option in context and then, while rendering pages, check for it and use a different style for the active menu option. On Apr 12, 5:33 am, Daniel Gerzo wrote: > Hello all, > > I was wondering how do you generate the navigation menu in your web > sites, with a possibil

Re: Just started Django - please help clarify web site configuration strategy

2011-03-29 Thread javatina
That's the discussion I was looking for. Many thanks to you and Bruno Desthuilliers - helps get bigger picture. On Mar 28, 6:37 pm, Jumpfroggy wrote: > > Basically, the question is - when a web > > application starts there is a number of things that needs to be > > available any time any request.

Re: Just started Django - please help clarify web site configuration strategy

2011-03-29 Thread javatina
On Mar 29, 5:06 am, bruno desthuilliers wrote: > > 2. custom template tags - I do not see how they can help here > > You were talking about menus built from the db. Using a custom tag to > build these menus gives you the flexibility to only call on the > relevant code when needed - instead of cal

Re: Just started Django - please help clarify web site configuration strategy

2011-03-28 Thread javatina
Sounds intriguing. Again, many thanks, Serge On Mar 28, 12:13 pm, bruno desthuilliers wrote: > On 28 mar, 16:58, javatina wrote: > > > I could formulate my question differently - is there such thing as an > > application context in Django? Basically, the question is - when a web &

Just started Django - please help clarify web site configuration strategy

2011-03-28 Thread javatina
I could formulate my question differently - is there such thing as an application context in Django? Basically, the question is - when a web application starts there is a number of things that needs to be available any time any request. Some of them are really static in nature - for example, pagina