Skip to content

Commit

Permalink
can not use reverse in settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh4kE committed Nov 21, 2016
1 parent a16d29c commit 084ed4c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ofm_helper/common_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import os

from django.core.urlresolvers import reverse

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Expand Down Expand Up @@ -147,11 +145,11 @@

AUTH_USER_MODEL = 'users.OFMUser'

LOGIN_URL = reverse('core:login')
LOGIN_REDIRECT_URL = reverse('core:home')
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'

LOGOUT_URL = reverse('core:logout')
LOGOUT_REDIRECT_URL = reverse('core:home')
LOGOUT_URL = '/logout'
LOGOUT_REDIRECT_URL = '/'

USE_DISPLAY_FOR_AWS = False

Expand Down

0 comments on commit 084ed4c

Please sign in to comment.