Anyway I'd also like to add that having built my first real
application with Django I'm awestruck at how easy it is to use. I
spent more time picking colors that looked good together than I did
coding site logic. On top of that, the source of the package is easy
to read and which makes up for the documentation (which has gotten
better though).

On Jun 27, 6:45 pm, Ryan K <[EMAIL PROTECTED]> wrote:
> Right but I'm using the Django server included with the package for
> development and Apache for another. So the root of my test server is /
> mydjangosite, but for my deployment server its /~ryan/...etc..etc....
> I just put a LINK_PREFIX string in the top settings module and a
> wrapper function like add_site_context(other_context) that returns
> this setting along with any other extra context stuff for use with
> templates.
>
> On Jun 27, 5:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I just make them all come from the root. Works no matter where it's
> > deployed:
> > Instead of "http://example.com/mydjangosite/manage/manage"; I would
> > just do "/mydjangosite/manage/manage"
>
> > On Jun 27, 2:41 pm, Ryan K <[EMAIL PROTECTED]> wrote:
>
> > > What if I am using generic views?
>
> > > On Jun 27, 3:26 pm, Ryan K <[EMAIL PROTECTED]> wrote:
>
> > > > Perfect. Thanks.
>
> > > > On Jun 27, 12:40 pm, Thomas Steinacher <[EMAIL PROTECTED]> wrote:
>
> > > > > Try the {% url %} 
> > > > > tag:http://www.djangoproject.com/documentation/templates/#url
>
> > > > > tom
>
> > > > > On Jun 27, 2007, at 6:33 PM, Ryan K wrote:
>
> > > > > > What is the best form of a link in my Django site's templates? For
> > > > > > example, I have a base.html which serves as the base template for 
> > > > > > all
> > > > > > others. It contains links that are relative to the current directory
> > > > > > like <a href="../manage">Manage</a>. However, when I am at a page 
> > > > > > like
> > > > > >http://example.com/mydjangosite/manage/edit/23123(editingtheobject
> > > > > > with id 23123) the same link above is instead pointing to
> > > > > >http://example.com/mydjangosite/manage/manage. I constantly have to
> > > > > > deploy this application to the main server but normally I work on it
> > > > > > locally, so absolute links would be a pain. Should I use templated
> > > > > > URLs  (e.g. <a href="{{base_url}}/manage">Manage</a>) for my links 
> > > > > > or
> > > > > > is there a better way?
>
> > > > > > Thanks,
> > > > > > Ryan


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to