preprocesamientov1.0
Last change
on this file since 1a2167d was
5b95488,
checked in by rboet <rboet@…>, 9 años ago
|
agregado directorio see_topics, funcionabilidad y nuevo directorio templates
|
-
Propiedad mode establecida a
100755
|
File size:
307 octetos
|
Línea | |
---|
1 | #funcion para obterner la url base en un template |
---|
2 | def baseurl(request): |
---|
3 | """ |
---|
4 | Return a BASE_URL template context for the current request. |
---|
5 | """ |
---|
6 | if request.is_secure(): |
---|
7 | scheme = 'https://' |
---|
8 | else: |
---|
9 | scheme = 'http://' |
---|
10 | |
---|
11 | return {'BASE_URL': scheme + request.get_host(),} |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.