Tweaked the base template to give a http login link in development mode, instead of relying on the debug setting, which requires a correct INTERNAL_IP setting, too.
- Legacy-Id: 8012
This commit is contained in:
parent
8aba7e97fc
commit
8e9545e23e
|
@ -60,7 +60,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
{% if user %}
|
||||
<div id="ietf-login" class="noprint">
|
||||
{% if request.get_full_path == "/accounts/logout/" %}
|
||||
<a href="{% if debug %}http://{% else %}https://{% endif %}{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
|
||||
<a href="{% if server_mode == "development" %}http://{% else %}https://{% endif %}{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
|
||||
{% else %}
|
||||
{% if user.is_authenticated %}
|
||||
<a href="/accounts/">{{ user }}</a> | <a href="/accounts/logout/" class="login" rel="nofollow">Sign out</a>
|
||||
|
|
Loading…
Reference in a new issue