Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

Comment on lines +1 to +3
3 changes: 3 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Django settings for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions config/settings/local.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Django settings for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions config/settings/prod.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Django settings for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions config/settings/staging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Django settings for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
URL configuration for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions config/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Comment on lines +1 to 4
Version information for the application.
This file is automatically updated by the deployment script.
Expand Down
3 changes: 3 additions & 0 deletions config/wsgi/local.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
WSGI config for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions config/wsgi/prod.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
WSGI config for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions config/wsgi/staging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
WSGI config for project_restoration project.

Expand Down
3 changes: 3 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""Django's command-line utility for administrative tasks."""
import os
import sys
Expand Down
3 changes: 3 additions & 0 deletions similarity/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions similarity/similarity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import difflib
from collections import Counter

Expand Down
3 changes: 3 additions & 0 deletions similarity/test_similarity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Tests for find_best_match and its component similarity functions.

Expand Down
3 changes: 3 additions & 0 deletions siteapps/home/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions siteapps/home/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.contrib import admin

# Register your models here.
3 changes: 3 additions & 0 deletions siteapps/home/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.apps import AppConfig


Expand Down
3 changes: 3 additions & 0 deletions siteapps/home/context_processors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.conf import settings


Expand Down
3 changes: 3 additions & 0 deletions siteapps/home/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions siteapps/home/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.contrib.auth import get_user_model
from django.test import Client, TestCase
from django.urls import reverse
Expand Down
3 changes: 3 additions & 0 deletions siteapps/home/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.urls import path

from .views import HomeView, InstructionsView
Expand Down
3 changes: 3 additions & 0 deletions siteapps/home/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.utils import timezone
from django.views.generic import TemplateView

Expand Down
3 changes: 3 additions & 0 deletions siteapps/sightings/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions siteapps/sightings/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.apps import AppConfig


Expand Down
3 changes: 3 additions & 0 deletions siteapps/sightings/management/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions siteapps/sightings/management/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions siteapps/sightings/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.contrib.auth import get_user_model
from django.db import models
from model_utils.models import TimeStampedModel
Expand Down
3 changes: 3 additions & 0 deletions siteapps/sightings/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import json
import uuid
from unittest.mock import MagicMock, patch
Expand Down
3 changes: 3 additions & 0 deletions siteapps/sightings/throttles.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from rest_framework.throttling import SimpleRateThrottle


Expand Down
3 changes: 3 additions & 0 deletions siteapps/sightings/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.urls import path

from . import views
Expand Down
3 changes: 3 additions & 0 deletions siteapps/sightings/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""Utility functions for sightings geocoding."""

import logging
Expand Down
3 changes: 3 additions & 0 deletions siteapps/sightings/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import base64
import json
import logging
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions siteapps/socialmedia/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.contrib import admin

# Register your models here.
3 changes: 3 additions & 0 deletions siteapps/socialmedia/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.apps import AppConfig


Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/mixins.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.conf import settings
from rest_framework import status
from rest_framework.response import Response
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import uuid

from django.conf import settings
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/moderation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import json

from django.conf import settings
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/test_auth_and_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""Tests for auth backend, mixins, and sightings utils."""

from unittest.mock import MagicMock, patch
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/test_moderation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""Tests for siteapps/socialmedia/moderation.py"""

import json
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/test_web_views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""Tests for siteapps/socialmedia/web_views.py"""

import uuid
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import json
import os

Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.urls import path, re_path

# Moderation views disabled until BannedEmail model is created
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import base64
import hashlib
import json
Expand Down
3 changes: 3 additions & 0 deletions siteapps/socialmedia/web_views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import json
import logging

Expand Down
3 changes: 3 additions & 0 deletions siteapps/species/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions siteapps/species/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.contrib import admin

# Register your models here.
3 changes: 3 additions & 0 deletions siteapps/species/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.apps import AppConfig


Expand Down
3 changes: 3 additions & 0 deletions siteapps/species/management/commands/create_species_names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.core.management.base import BaseCommand

from siteapps.species.models import SpeciesName
Expand Down
3 changes: 3 additions & 0 deletions siteapps/species/management/commands/load_inat_taxonomy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""Management command: load_inat_taxonomy

Fetches North American vertebrate species (excluding Actinopterygii) from the
Expand Down
3 changes: 3 additions & 0 deletions siteapps/species/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.db import models
from model_utils.models import TimeStampedModel

Expand Down
3 changes: 3 additions & 0 deletions siteapps/species/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import os

import requests
Expand Down
3 changes: 3 additions & 0 deletions siteapps/species/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.urls import path

from siteapps.species.views import CreateSpeciesNameView, GetSpeciesNamesView, SuggestSpeciesView, TaxonAutocompleteView
Expand Down
3 changes: 3 additions & 0 deletions siteapps/species/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import json

from django.shortcuts import render
Expand Down
3 changes: 3 additions & 0 deletions siteapps/users/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

3 changes: 3 additions & 0 deletions siteapps/users/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.utils.translation import gettext_lazy as _
Expand Down
3 changes: 3 additions & 0 deletions siteapps/users/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Client for interacting with the WildeBackyardBackend REST API
"""
Expand Down
3 changes: 3 additions & 0 deletions siteapps/users/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

from django.apps import AppConfig


Expand Down
3 changes: 3 additions & 0 deletions siteapps/users/auth_backend.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

"""
Authentication backend that uses the WildeBackyardBackend REST API
"""
Expand Down
3 changes: 3 additions & 0 deletions siteapps/users/middleware.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.

import logging
import time

Expand Down
Loading