diff --git a/apitokens/__init__.py b/apitokens/__init__.py index b3c06d4..3b93d0b 100644 --- a/apitokens/__init__.py +++ b/apitokens/__init__.py @@ -1 +1 @@ -__version__ = "0.0.1" \ No newline at end of file +__version__ = "0.0.2" diff --git a/pyproject.toml b/pyproject.toml index 1fc15a0..fe6df1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,12 +24,12 @@ classifiers = [ "Topic :: Software Development", ] dependencies = [ - "Django >= 3.1, < 4.0", + "Django >= 3.1, < 5.0", "django-rest-knox == 4.2.0", ] [tool.setuptools.dynamic] -version = {attr = "apitokens.VERSION"} +version = {attr = "apitokens.__version__"} [tool.setuptools] packages = ["apitokens"] diff --git a/testapp/testapp/settings.py b/testapp/testapp/settings.py index d0eae0b..9dbb4ff 100644 --- a/testapp/testapp/settings.py +++ b/testapp/testapp/settings.py @@ -15,7 +15,6 @@ # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ @@ -27,7 +26,6 @@ ALLOWED_HOSTS = [] - # Application definition INSTALLED_APPS = [ @@ -56,7 +54,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [BASE_DIR / 'testapp' / 'templates'], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -71,7 +69,6 @@ WSGI_APPLICATION = 'testapp.wsgi.application' - # Database # https://docs.djangoproject.com/en/3.2/ref/settings/#databases @@ -82,7 +79,6 @@ } } - # Password validation # https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators @@ -101,7 +97,6 @@ }, ] - # Internationalization # https://docs.djangoproject.com/en/3.2/topics/i18n/ @@ -115,7 +110,6 @@ USE_TZ = True - # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.2/howto/static-files/ diff --git a/testapp/testapp/templates/admin/base.html b/testapp/testapp/templates/admin/base.html new file mode 100644 index 0000000..aef36ae --- /dev/null +++ b/testapp/testapp/templates/admin/base.html @@ -0,0 +1,6 @@ +{% extends "admin/base.html" %} + +{% block userlinks %} +{{ block.super }} + / API Tokens +{% endblock %}