-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into oauth-login
- Loading branch information
Showing
192 changed files
with
7,011 additions
and
2,994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
web: gunicorn mygpo.wsgi:application -c gunicorn.conf.py | ||
beat: python manage.py celery beat -S django --pidfile /var/run/mygpo/celerybeat.pid | ||
web: gunicorn mygpo.wsgi:application -c conf/gunicorn.conf.py | ||
beat: celery -A mygpo beat --pidfile /tmp/celerybeat.pid -S django | ||
celery: celery -A mygpo worker --concurrency=3 -l info -Ofair |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def enable_db_access_for_all_tests(db): | ||
""" Enable DB access for all tests | ||
http://pytest-django.readthedocs.io/en/latest/faq.html#how-can-i-give-database-access-to-all-my-tests-without-the-django-db-marker """ | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. _jupyter-notebook: | ||
|
||
Jupyter Notebook | ||
================ | ||
|
||
You can use `Jupyter Notebooks <http://jupyter.org/>`_ during development for | ||
exploring data and prototyping methods. | ||
|
||
To do so, follow these steps | ||
|
||
* Make sure you have all requirements from ``requirements-dev.txt`` installed. | ||
|
||
* Run ``make notebook``, which will start the notebook and open it in the | ||
browser . | ||
|
||
* Navigate to the directory ``notebooks`` (listed in `.gitignore`) and create | ||
a new notebook. | ||
|
||
* Use the following code in the first cell to setup your environment | ||
|
||
.. code-block:: python | ||
MYPROJECT = '/path/to/mygpo' | ||
import os, sys | ||
sys.path.insert(0, MYPROJECT) | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "local_settings.py") | ||
import django | ||
django.setup() |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
mygpo/administration/templates/admin/resend-acivation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
{% load podcasts %} | ||
|
||
{% load menu %} | ||
{% block mainmenu %}{{ "/admin/"|main_menu }}{% endblock %} | ||
{% block sectionmenu %}{{ "/admin/"|section_menu:"Admin" }}{% endblock %} | ||
|
||
{% block title %}{% trans "Activate User" %}{% endblock %} | ||
|
||
{% block header %} | ||
<h1>{% trans "Resend Activation email" %}</h1> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<form class="form-horizontal" method="post" action="{% url "admin-resend-activation" %}"> | ||
{% csrf_token %} | ||
|
||
<div class="control-group"> | ||
<label class="control-label" for="username">{% trans "Username" %}</label> | ||
<div class="controls"> | ||
<input name="username" type="text" id="username" placeholder="Username"> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<label class="control-label" for="email">{% trans "Email" %}</label> | ||
<div class="controls"> | ||
<input name="email" type="text" id="email" placeholder="Email"> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<div class="controls"> | ||
<button type="submit" class="btn">{% trans "Resend" %}</button> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.