django-users@googlegroups.com

2008-12-05 Thread PFL
How can I get Django templates to generate links to anchors that are *local* to the document? In a static HTML page, I have a table of contents with links to internal sections within the same page: Section1 Section2 These link to sections that that look like this: 111 222 Converting the

Re:

2008-12-05 Thread PFL
The source generated by the templates is indeed correct; it looks like: Section1 However, when I click on the link, Django(?) tries to resolve it as: http://localhost:8000/doc/#1 -- not --- http://localhost:8000/doc#1 So -- how do I get local links working with Django? --~--~-~--~

Re:

2008-12-05 Thread PFL
http://localhost:8000/doc/ http://localhost:8000/doc#1 http://localhost:8000/doc#1/ I am not sure what I need to do to either my url mappings or in my view to handle the "#" ? What is the way to get local links working? On Dec 5, 11:02 am, Daniel Roseman <[EMAIL PROTECTE

Re:

2008-12-05 Thread PFL
I was not aware of the distinction between browser/server functionality in resolving local links...of course it seem obvious to me now. On Dec 5, 11:58 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Dec 5, 2:41 pm, PFL <[EMAIL PROTECTED]> wrote: > > > Thanks for yo

Re: From ASP to Django

2008-06-19 Thread PFL
I had to make a similar argument at my job. You are going to have to convince people who are rightly skeptical, wont appreciate the all the core technological arguments, and really only care about time and cost. So, make a business case, not a technical case. Focus on: 1) tangible business bene

django naming conventions ?

2008-06-25 Thread PFL
After reviewing the code i have written for a non-trivial but still modest Django app, I realized that my names for Django objects followed no standard (case, plural, underscores, etc) - I discovered this when I wasted at least 30 minutes trying to figure out an error that was caused by a wrong c

Embedding template tags inside of Flatpages content?

2008-06-30 Thread PFL
Is there any way to type template tags into the admin form field for Flatpages content and have them interpreted as template tags (instead of text to display) ? IF this is possible, then the next question would be to define some python dictionaries inside the flatpage contentthis is all to en

Re: Class-based views or "Traditional" Views for Django 1.3?

2011-09-14 Thread PFL
Reinout van Rees has posted several articles on using Django class based views that you might find useful (posted Aug 23/24 2011 ): http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-walkthrough.html -- You received this message because you are subscribed to the Google Groups "Dja

Re: removing the source of a OneToOneField relationship

2011-05-05 Thread PFL
Seth, see: http://docs.djangoproject.com/en/1.3/ref/models/instances/#deleting-objects "Issues a SQL DELETE for the object. This only deletes the object in the database; the Python instance will still be around, and will still have data in its fields." I think you will have to re-query your ta