prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Sign up link for certification is broken when not logged in
  IF a user visits https://changelog.qgis.org/en/qgis/create-certifyingorganisation/ and they are not logged in, they get redirected to the front page. They should instead get shown a page asking them to log / create an account first and then get redirected back to the create page. They should also be shown the help link so they can find out how the certification system works.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `django_project/core/settings/project.py`
  Content:
  ```
  1 # coding=utf-8
  2 
  3 """Project level settings.
  4 
  5 Adjust these values as needed but don't commit passwords etc. to any public
  6 repository!
  7 """
  8 
  9 import os  # noqa
  10 from django.utils.translation import ugettext_lazy as _
  11 from .utils import absolute_path
  12 from .contrib import *  # noqa
  13 
  14 # Project apps
  15 INSTALLED_APPS += [
  16     'base',
  17     'changes',
  18     'github_issue',
  19     'vota',
  20     'certification',
  21     'lesson',
  22 ]
  23 
  24 # Due to profile page does not available,
  25 # this will redirect to home page after login
  26 LOGIN_REDIRECT_URL = '/'
  27 
  28 # How many versions to list in each project box
  29 PROJECT_VERSION_LIST_SIZE = 10
  30 
  31 # Set debug to false for production
  32 DEBUG = TEMPLATE_DEBUG = False
  33 
  34 SOUTH_TESTS_MIGRATE = False
  35 
  36 
  37 # Set languages which want to be translated
  38 LANGUAGES = (
  39     ('en', _('English')),
  40     ('id', _('Indonesian')),
  41 )
  42 
  43 # Set storage path for the translation files
  44 LOCALE_PATHS = (absolute_path('locale'),)
  45 
  46 
  47 MIDDLEWARE += [
  48     # For nav bar generation
  49     'core.custom_middleware.NavContextMiddleware',
  50 ]
  51 
  52 # Project specific javascript files to be pipelined
  53 # For third party libs like jquery should go in contrib.py
  54 PIPELINE['JAVASCRIPT']['project'] = {
  55     'source_filenames': (
  56         'js/csrf-ajax.js',
  57         'js/changelog.js',
  58         'js/github-issue.js',
  59         'js/entry.js',
  60         'js/category.js',
  61         'js/form.js',
  62     ),
  63     'output_filename': 'js/project.js',
  64 }
  65 
  66 # Project specific css files to be pipelined
  67 # For third party libs like bootstrap should go in contrib.py
  68 PIPELINE['STYLESHEETS']['project'] = {
  69     'source_filenames': (
  70         'css/changelog.css',
  71         'css/form.css',
  72         'css/fonts.css',
  73         'css/base.css',
  74     ),
  75     'output_filename': 'css/project.css',
  76     'extra_context': {
  77         'media': 'screen,projection',
  78     },
  79 }
  80 
  81 VALID_DOMAIN = [
  82     'localhost',
  83     'changelog.kartoza.com',
  84 ]
  85 
  86 EMAIL_HOST_USER = 'noreply@kartoza.com'
  87
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/django_project/core/settings/project.py b/django_project/core/settings/project.py
  --- a/django_project/core/settings/project.py
  +++ b/django_project/core/settings/project.py
  @@ -84,3 +84,4 @@
   ]
   
   EMAIL_HOST_USER = 'noreply@kartoza.com'
  +LOGIN_URL = '/en/accounts/login/'
  
verification_info: {"golden_diff": "diff --git a/django_project/core/settings/project.py b/django_project/core/settings/project.py\n--- a/django_project/core/settings/project.py\n+++ b/django_project/core/settings/project.py\n@@ -84,3 +84,4 @@\n ]\n \n EMAIL_HOST_USER = 'noreply@kartoza.com'\n+LOGIN_URL = '/en/accounts/login/'\n", "issue": "Sign up link for certification is broken when not logged in\nIF a user visits https://changelog.qgis.org/en/qgis/create-certifyingorganisation/ and they are not logged in, they get redirected to the front page. They should instead get shown a page asking them to log / create an account first and then get redirected back to the create page. They should also be shown the help link so they can find out how the certification system works.\n", "before_files": [{"content": "# coding=utf-8\n\n\"\"\"Project level settings.\n\nAdjust these values as needed but don't commit passwords etc. to any public\nrepository!\n\"\"\"\n\nimport os  # noqa\nfrom django.utils.translation import ugettext_lazy as _\nfrom .utils import absolute_path\nfrom .contrib import *  # noqa\n\n# Project apps\nINSTALLED_APPS += [\n    'base',\n    'changes',\n    'github_issue',\n    'vota',\n    'certification',\n    'lesson',\n]\n\n# Due to profile page does not available,\n# this will redirect to home page after login\nLOGIN_REDIRECT_URL = '/'\n\n# How many versions to list in each project box\nPROJECT_VERSION_LIST_SIZE = 10\n\n# Set debug to false for production\nDEBUG = TEMPLATE_DEBUG = False\n\nSOUTH_TESTS_MIGRATE = False\n\n\n# Set languages which want to be translated\nLANGUAGES = (\n    ('en', _('English')),\n    ('id', _('Indonesian')),\n)\n\n# Set storage path for the translation files\nLOCALE_PATHS = (absolute_path('locale'),)\n\n\nMIDDLEWARE += [\n    # For nav bar generation\n    'core.custom_middleware.NavContextMiddleware',\n]\n\n# Project specific javascript files to be pipelined\n# For third party libs like jquery should go in contrib.py\nPIPELINE['JAVASCRIPT']['project'] = {\n    'source_filenames': (\n        'js/csrf-ajax.js',\n        'js/changelog.js',\n        'js/github-issue.js',\n        'js/entry.js',\n        'js/category.js',\n        'js/form.js',\n    ),\n    'output_filename': 'js/project.js',\n}\n\n# Project specific css files to be pipelined\n# For third party libs like bootstrap should go in contrib.py\nPIPELINE['STYLESHEETS']['project'] = {\n    'source_filenames': (\n        'css/changelog.css',\n        'css/form.css',\n        'css/fonts.css',\n        'css/base.css',\n    ),\n    'output_filename': 'css/project.css',\n    'extra_context': {\n        'media': 'screen,projection',\n    },\n}\n\nVALID_DOMAIN = [\n    'localhost',\n    'changelog.kartoza.com',\n]\n\nEMAIL_HOST_USER = 'noreply@kartoza.com'\n", "path": "django_project/core/settings/project.py"}], "after_files": [{"content": "# coding=utf-8\n\n\"\"\"Project level settings.\n\nAdjust these values as needed but don't commit passwords etc. to any public\nrepository!\n\"\"\"\n\nimport os  # noqa\nfrom django.utils.translation import ugettext_lazy as _\nfrom .utils import absolute_path\nfrom .contrib import *  # noqa\n\n# Project apps\nINSTALLED_APPS += [\n    'base',\n    'changes',\n    'github_issue',\n    'vota',\n    'certification',\n    'lesson',\n]\n\n# Due to profile page does not available,\n# this will redirect to home page after login\nLOGIN_REDIRECT_URL = '/'\n\n# How many versions to list in each project box\nPROJECT_VERSION_LIST_SIZE = 10\n\n# Set debug to false for production\nDEBUG = TEMPLATE_DEBUG = False\n\nSOUTH_TESTS_MIGRATE = False\n\n\n# Set languages which want to be translated\nLANGUAGES = (\n    ('en', _('English')),\n    ('id', _('Indonesian')),\n)\n\n# Set storage path for the translation files\nLOCALE_PATHS = (absolute_path('locale'),)\n\n\nMIDDLEWARE += [\n    # For nav bar generation\n    'core.custom_middleware.NavContextMiddleware',\n]\n\n# Project specific javascript files to be pipelined\n# For third party libs like jquery should go in contrib.py\nPIPELINE['JAVASCRIPT']['project'] = {\n    'source_filenames': (\n        'js/csrf-ajax.js',\n        'js/changelog.js',\n        'js/github-issue.js',\n        'js/entry.js',\n        'js/category.js',\n        'js/form.js',\n    ),\n    'output_filename': 'js/project.js',\n}\n\n# Project specific css files to be pipelined\n# For third party libs like bootstrap should go in contrib.py\nPIPELINE['STYLESHEETS']['project'] = {\n    'source_filenames': (\n        'css/changelog.css',\n        'css/form.css',\n        'css/fonts.css',\n        'css/base.css',\n    ),\n    'output_filename': 'css/project.css',\n    'extra_context': {\n        'media': 'screen,projection',\n    },\n}\n\nVALID_DOMAIN = [\n    'localhost',\n    'changelog.kartoza.com',\n]\n\nEMAIL_HOST_USER = 'noreply@kartoza.com'\nLOGIN_URL = '/en/accounts/login/'\n", "path": "django_project/core/settings/project.py"}]}