Parcourir la source

Merge remote-tracking branch 'zopieux/zopieux-fixes' into rezine

Baptiste Jonglez il y a 8 ans
Parent
commit
5d3c7f20d7
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      celutz/settings.py
  2. 1 1
      panorama/templates/panorama/base.html

+ 1 - 1
celutz/settings.py

@@ -111,7 +111,7 @@ USE_TZ = True
 # Static files (CSS, JavaScript, Images)
 # https://docs.djangoproject.com/en/1.7/howto/static-files/
 
-STATIC_ROOT = 'static'
+STATIC_ROOT = os.path.join(BASE_DIR, 'static')
 STATIC_URL = '/static/'
 
 

+ 1 - 1
panorama/templates/panorama/base.html

@@ -48,7 +48,7 @@
                 {% block top-menu-items %}
                 {% endblock top-menu-items %}
                 <li>
-                    <a href="/admin"><i class="fa fa-pencil-square-o"></i>  {% trans "Admin" %}</a>
+                    <a href="{% url 'admin:index' %}"><i class="fa fa-pencil-square-o"></i>  {% trans "Admin" %}</a>
                 </li>
                 <li class="dropdown langue">
                   <form action="{% url 'set_language' %}" method="post">{% csrf_token %}