You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Ubuntu 89d384e951 readme done but formatting probably better 4 years ago
templates initial commit, readme not done 4 years ago
.gitignore initial commit, readme not done 4 years ago
__init__.py initial commit, readme not done 4 years ago
admin.py initial commit, readme not done 4 years ago
apps.py initial commit, readme not done 4 years ago
context_processors.py initial commit, readme not done 4 years ago
models.py initial commit, readme not done 4 years ago
readme.md readme done but formatting probably better 4 years ago
tasks.py initial commit, readme not done 4 years ago
tests.py initial commit, readme not done 4 years ago
urls.py initial commit, readme not done 4 years ago
utility.py initial commit, readme not done 4 years ago
views.py initial commit, readme not done 4 years ago

readme.md

Changes to settings.py

add 'membermetrics', to INSTALLED_APPS

add

'run_metrics': {
    'task': 'membermetrics.tasks.run_metrics',
    'schedule': crontab(hour="*/12"),
},

to the celery scheduled thing

add

'membermetrics.context_processors.can_view_metrics',
to templates.options.context_processors

Changes to urls.py

url(_(r'^membermetrics/'),include(membermetrics.urls,namespace='membermetrics')),

Changes to stock/templates/public/base.html

add

{% if can_view_metrics %}
  <li>
    <a class="{% navactive request 'view_metrics view_metric' %}" href="{% url 'membermetrics:view_metrics' %}">
      <i class="fa fa-lock fa-tachometer fa-fw grayiconecolor"></i>{% trans " Member Metrics" %}
    </a>
  </li>
{% endif %}

after the item starting with

{% if can_manage_groups %}