#10944: Site app should be able to make absolute URLs.
-------------------------------+--------------------------------------
     Reporter:  jdunck         |                    Owner:  krzysiumed
         Type:  New feature    |                   Status:  new
    Component:  contrib.sites  |                  Version:  1.0
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by krzysiumed):

 * owner:   => krzysiumed
 * cc: krzysiumed@… (added)


Comment:

 I added my draft where `site_url` is similar to `url` tag (actually it
 calls the `url` tag function and create instance of `URLNode` to avoid
 redundancy). It includes tests and docs but my english is poor. An example
 of using my `site_url`:

 {{{
   {% site_url site 'myapp.views.viewname' %} ==>
 'http://example.com/path/to/view'
   {% site_url site using https 'myapp.views.viewname' %} ==>
 'https://example.com/path/to/view'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/10944#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to