diff --git a/config/__init__.py b/config/__init__.py index e69de29..c29e684 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/config/settings/base.py b/config/settings/base.py index 3e30aab..e7d1b9a 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -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. diff --git a/config/settings/local.py b/config/settings/local.py index 6941be0..8ca2319 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -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. diff --git a/config/settings/prod.py b/config/settings/prod.py index df50ead..4e5a830 100644 --- a/config/settings/prod.py +++ b/config/settings/prod.py @@ -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. diff --git a/config/settings/staging.py b/config/settings/staging.py index 14559eb..68fc012 100644 --- a/config/settings/staging.py +++ b/config/settings/staging.py @@ -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. diff --git a/config/urls.py b/config/urls.py index 1ca84a1..03750fe 100644 --- a/config/urls.py +++ b/config/urls.py @@ -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. diff --git a/config/version.py b/config/version.py index 25d11a8..0ea0de2 100644 --- a/config/version.py +++ b/config/version.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + """ Version information for the application. This file is automatically updated by the deployment script. diff --git a/config/wsgi/local.py b/config/wsgi/local.py index 6204b49..52af0ff 100644 --- a/config/wsgi/local.py +++ b/config/wsgi/local.py @@ -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. diff --git a/config/wsgi/prod.py b/config/wsgi/prod.py index 4f396d5..64a8052 100644 --- a/config/wsgi/prod.py +++ b/config/wsgi/prod.py @@ -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. diff --git a/config/wsgi/staging.py b/config/wsgi/staging.py index 9016964..0ae4931 100644 --- a/config/wsgi/staging.py +++ b/config/wsgi/staging.py @@ -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. diff --git a/manage.py b/manage.py index 6326a7c..0014855 100755 --- a/manage.py +++ b/manage.py @@ -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 diff --git a/similarity/__init__.py b/similarity/__init__.py index e69de29..c29e684 100644 --- a/similarity/__init__.py +++ b/similarity/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/similarity/similarity.py b/similarity/similarity.py index 999105f..b453851 100644 --- a/similarity/similarity.py +++ b/similarity/similarity.py @@ -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 diff --git a/similarity/test_similarity.py b/similarity/test_similarity.py index 1147976..1f8aade 100644 --- a/similarity/test_similarity.py +++ b/similarity/test_similarity.py @@ -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. diff --git a/siteapps/home/__init__.py b/siteapps/home/__init__.py index e69de29..c29e684 100644 --- a/siteapps/home/__init__.py +++ b/siteapps/home/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/siteapps/home/admin.py b/siteapps/home/admin.py index 8c38f3f..9376485 100644 --- a/siteapps/home/admin.py +++ b/siteapps/home/admin.py @@ -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. diff --git a/siteapps/home/apps.py b/siteapps/home/apps.py index a1b43be..d098279 100644 --- a/siteapps/home/apps.py +++ b/siteapps/home/apps.py @@ -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 diff --git a/siteapps/home/context_processors.py b/siteapps/home/context_processors.py index c7c6944..e88660a 100644 --- a/siteapps/home/context_processors.py +++ b/siteapps/home/context_processors.py @@ -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 diff --git a/siteapps/home/models.py b/siteapps/home/models.py index 71a8362..8e25006 100644 --- a/siteapps/home/models.py +++ b/siteapps/home/models.py @@ -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. diff --git a/siteapps/home/tests.py b/siteapps/home/tests.py index 98aa574..01ac352 100644 --- a/siteapps/home/tests.py +++ b/siteapps/home/tests.py @@ -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 diff --git a/siteapps/home/urls.py b/siteapps/home/urls.py index 7b92220..3235a9c 100644 --- a/siteapps/home/urls.py +++ b/siteapps/home/urls.py @@ -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 diff --git a/siteapps/home/views.py b/siteapps/home/views.py index cd9b7e6..5c783cd 100644 --- a/siteapps/home/views.py +++ b/siteapps/home/views.py @@ -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 diff --git a/siteapps/sightings/__init__.py b/siteapps/sightings/__init__.py index e69de29..c29e684 100644 --- a/siteapps/sightings/__init__.py +++ b/siteapps/sightings/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/siteapps/sightings/apps.py b/siteapps/sightings/apps.py index 4b00af8..53be640 100644 --- a/siteapps/sightings/apps.py +++ b/siteapps/sightings/apps.py @@ -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 diff --git a/siteapps/sightings/management/__init__.py b/siteapps/sightings/management/__init__.py index e69de29..c29e684 100644 --- a/siteapps/sightings/management/__init__.py +++ b/siteapps/sightings/management/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/siteapps/sightings/management/commands/__init__.py b/siteapps/sightings/management/commands/__init__.py index e69de29..c29e684 100644 --- a/siteapps/sightings/management/commands/__init__.py +++ b/siteapps/sightings/management/commands/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/siteapps/sightings/models.py b/siteapps/sightings/models.py index bb2b7fa..664e41e 100644 --- a/siteapps/sightings/models.py +++ b/siteapps/sightings/models.py @@ -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 diff --git a/siteapps/sightings/tests.py b/siteapps/sightings/tests.py index ab1f627..ecc568b 100644 --- a/siteapps/sightings/tests.py +++ b/siteapps/sightings/tests.py @@ -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 diff --git a/siteapps/sightings/throttles.py b/siteapps/sightings/throttles.py index fbfe8b1..77a9bb2 100644 --- a/siteapps/sightings/throttles.py +++ b/siteapps/sightings/throttles.py @@ -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 diff --git a/siteapps/sightings/urls.py b/siteapps/sightings/urls.py index 2023675..ae55ffd 100644 --- a/siteapps/sightings/urls.py +++ b/siteapps/sightings/urls.py @@ -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 diff --git a/siteapps/sightings/utils.py b/siteapps/sightings/utils.py index 05de7e1..e2fbcd3 100644 --- a/siteapps/sightings/utils.py +++ b/siteapps/sightings/utils.py @@ -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 diff --git a/siteapps/sightings/views.py b/siteapps/sightings/views.py index 6b64dd3..8ae0bdd 100644 --- a/siteapps/sightings/views.py +++ b/siteapps/sightings/views.py @@ -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 diff --git a/siteapps/socialmedia/__init__.py b/siteapps/socialmedia/__init__.py index e69de29..c29e684 100644 --- a/siteapps/socialmedia/__init__.py +++ b/siteapps/socialmedia/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/siteapps/socialmedia/admin.py b/siteapps/socialmedia/admin.py index 8c38f3f..9376485 100644 --- a/siteapps/socialmedia/admin.py +++ b/siteapps/socialmedia/admin.py @@ -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. diff --git a/siteapps/socialmedia/apps.py b/siteapps/socialmedia/apps.py index 1dbabaf..ecd965d 100644 --- a/siteapps/socialmedia/apps.py +++ b/siteapps/socialmedia/apps.py @@ -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 diff --git a/siteapps/socialmedia/mixins.py b/siteapps/socialmedia/mixins.py index e30d399..fd1f51a 100644 --- a/siteapps/socialmedia/mixins.py +++ b/siteapps/socialmedia/mixins.py @@ -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 diff --git a/siteapps/socialmedia/models.py b/siteapps/socialmedia/models.py index ad6781c..499139d 100644 --- a/siteapps/socialmedia/models.py +++ b/siteapps/socialmedia/models.py @@ -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 diff --git a/siteapps/socialmedia/moderation.py b/siteapps/socialmedia/moderation.py index aea4b4d..4d09eb2 100644 --- a/siteapps/socialmedia/moderation.py +++ b/siteapps/socialmedia/moderation.py @@ -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 diff --git a/siteapps/socialmedia/test_auth_and_utils.py b/siteapps/socialmedia/test_auth_and_utils.py index ed7c8da..8ab8797 100644 --- a/siteapps/socialmedia/test_auth_and_utils.py +++ b/siteapps/socialmedia/test_auth_and_utils.py @@ -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 diff --git a/siteapps/socialmedia/test_moderation.py b/siteapps/socialmedia/test_moderation.py index d3e4fe5..81b14d6 100644 --- a/siteapps/socialmedia/test_moderation.py +++ b/siteapps/socialmedia/test_moderation.py @@ -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 diff --git a/siteapps/socialmedia/test_web_views.py b/siteapps/socialmedia/test_web_views.py index 4405454..517749e 100644 --- a/siteapps/socialmedia/test_web_views.py +++ b/siteapps/socialmedia/test_web_views.py @@ -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 diff --git a/siteapps/socialmedia/tests.py b/siteapps/socialmedia/tests.py index fc6491f..f312bb5 100644 --- a/siteapps/socialmedia/tests.py +++ b/siteapps/socialmedia/tests.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + import json import os diff --git a/siteapps/socialmedia/urls.py b/siteapps/socialmedia/urls.py index d4f708c..3a2dee0 100644 --- a/siteapps/socialmedia/urls.py +++ b/siteapps/socialmedia/urls.py @@ -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 diff --git a/siteapps/socialmedia/views.py b/siteapps/socialmedia/views.py index 09d270c..e707b0e 100644 --- a/siteapps/socialmedia/views.py +++ b/siteapps/socialmedia/views.py @@ -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 diff --git a/siteapps/socialmedia/web_views.py b/siteapps/socialmedia/web_views.py index 711a372..5f5590e 100644 --- a/siteapps/socialmedia/web_views.py +++ b/siteapps/socialmedia/web_views.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + import json import logging diff --git a/siteapps/species/__init__.py b/siteapps/species/__init__.py index e69de29..c29e684 100644 --- a/siteapps/species/__init__.py +++ b/siteapps/species/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/siteapps/species/admin.py b/siteapps/species/admin.py index 8c38f3f..9376485 100644 --- a/siteapps/species/admin.py +++ b/siteapps/species/admin.py @@ -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. diff --git a/siteapps/species/apps.py b/siteapps/species/apps.py index 9d93113..446a452 100644 --- a/siteapps/species/apps.py +++ b/siteapps/species/apps.py @@ -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 diff --git a/siteapps/species/management/commands/create_species_names.py b/siteapps/species/management/commands/create_species_names.py index ae67528..252008d 100644 --- a/siteapps/species/management/commands/create_species_names.py +++ b/siteapps/species/management/commands/create_species_names.py @@ -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 diff --git a/siteapps/species/management/commands/load_inat_taxonomy.py b/siteapps/species/management/commands/load_inat_taxonomy.py index b7e84e3..a07d26a 100644 --- a/siteapps/species/management/commands/load_inat_taxonomy.py +++ b/siteapps/species/management/commands/load_inat_taxonomy.py @@ -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 diff --git a/siteapps/species/models.py b/siteapps/species/models.py index cdd3f46..6afe349 100644 --- a/siteapps/species/models.py +++ b/siteapps/species/models.py @@ -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 diff --git a/siteapps/species/tests.py b/siteapps/species/tests.py index d830115..d81ebeb 100644 --- a/siteapps/species/tests.py +++ b/siteapps/species/tests.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + import os import requests diff --git a/siteapps/species/urls.py b/siteapps/species/urls.py index 09a1e03..287b557 100644 --- a/siteapps/species/urls.py +++ b/siteapps/species/urls.py @@ -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 diff --git a/siteapps/species/views.py b/siteapps/species/views.py index 94fe3bd..0fd84d4 100644 --- a/siteapps/species/views.py +++ b/siteapps/species/views.py @@ -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 diff --git a/siteapps/users/__init__.py b/siteapps/users/__init__.py index e69de29..c29e684 100644 --- a/siteapps/users/__init__.py +++ b/siteapps/users/__init__.py @@ -0,0 +1,3 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + diff --git a/siteapps/users/admin.py b/siteapps/users/admin.py index be27a13..409ee7a 100644 --- a/siteapps/users/admin.py +++ b/siteapps/users/admin.py @@ -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 _ diff --git a/siteapps/users/api_client.py b/siteapps/users/api_client.py index a180be6..b422612 100644 --- a/siteapps/users/api_client.py +++ b/siteapps/users/api_client.py @@ -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 """ diff --git a/siteapps/users/apps.py b/siteapps/users/apps.py index 622e0d1..2ba8ab9 100644 --- a/siteapps/users/apps.py +++ b/siteapps/users/apps.py @@ -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 diff --git a/siteapps/users/auth_backend.py b/siteapps/users/auth_backend.py index 6305263..ea3df6b 100644 --- a/siteapps/users/auth_backend.py +++ b/siteapps/users/auth_backend.py @@ -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 """ diff --git a/siteapps/users/middleware.py b/siteapps/users/middleware.py index cda5e72..d7bb680 100644 --- a/siteapps/users/middleware.py +++ b/siteapps/users/middleware.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + import logging import time diff --git a/siteapps/users/models.py b/siteapps/users/models.py index 74f5091..b025425 100644 --- a/siteapps/users/models.py +++ b/siteapps/users/models.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + import random import string from uuid import uuid4 diff --git a/siteapps/users/tests.py b/siteapps/users/tests.py index b8a28fc..888004d 100644 --- a/siteapps/users/tests.py +++ b/siteapps/users/tests.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + """Tests for users views, auth backend, and BackendAPIClient.""" from unittest.mock import MagicMock, patch diff --git a/siteapps/users/urls.py b/siteapps/users/urls.py index 2a4e280..7ec5d0a 100644 --- a/siteapps/users/urls.py +++ b/siteapps/users/urls.py @@ -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 ( diff --git a/siteapps/users/views.py b/siteapps/users/views.py index c50c45d..92932c9 100644 --- a/siteapps/users/views.py +++ b/siteapps/users/views.py @@ -1,3 +1,6 @@ +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + import logging import requests diff --git a/start_web.sh b/start_web.sh index 21360bb..57bcdd1 100755 --- a/start_web.sh +++ b/start_web.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + # Start WildeBackyard Web Server cd "$(dirname "$0")" diff --git a/stop_web.sh b/stop_web.sh index 1719251..c7a526e 100755 --- a/stop_web.sh +++ b/stop_web.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Licensed under the MIT License. +# See LICENSE file in the project root for full license information. + # Stop WildeBackyard Web Server echo "Stopping web server (port 8001)..."