Fakultas Ilmu Komputer UI

Commit c59bb733 authored by Yumna Pratista Tastaftian's avatar Yumna Pratista Tastaftian
Browse files

Merge branch 'testinggoat/ex8' into 'master'

Testinggoat/ex8

See merge request !8
parents efa00ed2 02842153
Pipeline #26090 passed with stages
in 5 minutes and 52 seconds
...@@ -29,6 +29,10 @@ DEBUG = True ...@@ -29,6 +29,10 @@ DEBUG = True
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
AUTH_USER_MODEL = 'accounts.User'
AUTHENTICATION_BACKENDS = [
'accounts.authentication.PasswordlessAuthenticationBackend',
]
# Application definition # Application definition
...@@ -43,8 +47,6 @@ INSTALLED_APPS = [ ...@@ -43,8 +47,6 @@ INSTALLED_APPS = [
'accounts', 'accounts',
] ]
AUTH_USER_MODEL = 'accounts.User'
MIDDLEWARE = [ MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
...@@ -151,8 +153,9 @@ TEMPLATE_DIRS = ( ...@@ -151,8 +153,9 @@ TEMPLATE_DIRS = (
os.path.join(SETTINGS_PATH, 'template'), os.path.join(SETTINGS_PATH, 'template'),
) )
EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'yumnanaruto@gmail.com' EMAIL_HOST_USER = 'yumnanaruto@gmail.com'
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PASSWORD') EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PASSWORD')
EMAIL_PORT = 587 EMAIL_PORT = 587
EMAIL_USE_TLS = True EMAIL_USE_TLS = True
\ No newline at end of file
...@@ -18,10 +18,10 @@ from django.urls import path ...@@ -18,10 +18,10 @@ from django.urls import path
from django.conf.urls import url, include from django.conf.urls import url, include
from app_homepage import views as list_views from app_homepage import views as list_views
from app_homepage import urls as list_urls from app_homepage import urls as list_urls
# from accounts import urls as accounts_urls from accounts import urls as accounts_urls
urlpatterns = [ urlpatterns = [
url(r'^$', list_views.home_page, name='home'), url(r'^$', list_views.home_page, name='home'),
url(r'^lists/', include(list_urls)), url(r'^lists/', include(list_urls)),
# url(r'^accounts/', include(accounts_urls)), url(r'^accounts/', include(accounts_urls)),
] ]
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment