Issue #2 new

error when admin views the blog

Anonymous created an issue

Hi, I get Byteflow today and install it on Local & server, when I add first post, and I'm logged in with admin account i receive an error:

TemplateSyntaxError at /blog/ Caught NoReverseMatch while rendering: Reverse for 'admin' with arguments '(u'.',)' and keyword arguments '{}' not found.

In template [path to my home directory]/Projects/byteflow/templates/head.html, error at line 37

Projects/byteflow/apps/blog/ in post_list

but if i view the page as a guest, the error doesn't appear

plz fix it :)

Comments (2)

  1. Anonymous

    I somehow solve the problem, it's not the true solution, just for now! open this file:


    and replace this line:

    {% if user.is_staff %}<a href="{% url admin "." %}">{% trans "Admin" %}</a>{% endif %}

    With This:

    {% if user.is_staff %}<a href="{% url admin:index %}">{% trans "Admin" %}</a>{% endif %}

  2. Log in to comment