Skip to content

Commit

Permalink
Merge pull request #32 from edx/ashultz0/fix-django-manage
Browse files Browse the repository at this point in the history
fix: put enough admin support into the settings file to actually run
  • Loading branch information
ashultz0 authored Aug 17, 2021
2 parents 8f7e9ac + d443203 commit b2ca065
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Change Log
Unreleased
~~~~~~~~~~

[0.6.1] - 2021-08-17
~~~~~~~~~~~~~~~~~~~~
* Django settings updates for admin app

[0.6.0] - 2021-08-11
~~~~~~~~~~~~~~~~~~~~
* Add name verification status field, replacing single is_verified boolean.
Expand Down
2 changes: 1 addition & 1 deletion edx_name_affirmation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Django app housing name affirmation logic.
"""

__version__ = '0.6.0'
__version__ = '0.6.1'

default_app_config = 'edx_name_affirmation.apps.EdxNameAffirmationConfig' # pylint: disable=invalid-name
12 changes: 12 additions & 0 deletions test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def root(*args):
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'edx_name_affirmation',
'waffle',
Expand All @@ -51,3 +52,14 @@ def root(*args):
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
)

TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': False,
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth', # this is required for admin
'django.contrib.messages.context_processors.messages', # this is required for admin
],
},
}]

0 comments on commit b2ca065

Please sign in to comment.