from django.conf.urls import url, include
from django.contrib import admin

from rest_framework.authtoken import views
from rest_framework.urlpatterns import format_suffix_patterns


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^api-token-auth/', views.obtain_auth_token),

    url(r'core/', include('core.urls')),

    url(r'profiles/', include('pages.urls.profile_urls')),
]

urlpatterns = format_suffix_patterns(urlpatterns)

from django.conf.urls import url, include
from django.contrib import admin

from rest_framework.authtoken import views
from rest_framework.urlpatterns import format_suffix_patterns

from pages.views import profile_login

urlpatterns = [
    url(r'^$', profile_login, name='home_page'),

    url(r'^admin/', admin.site.urls),
    url(r'^api-token-auth/', views.obtain_auth_token),

    url(r'core/', include('core.urls')),

    url(r'profiles/', include('pages.urls.profile_urls')),
]

urlpatterns = format_suffix_patterns(urlpatterns)

Make user loggin as the homepage
Make user loggin as the homepage

  from django.conf.urls import url, include
  from django.contrib import admin
  
  from rest_framework.authtoken import views
  from rest_framework.urlpatterns import format_suffix_patterns
  
+ from pages.views import profile_login
  
  urlpatterns = [
+     url(r'^$', profile_login, name='home_page'),
+ 
      url(r'^admin/', admin.site.urls),
      url(r'^api-token-auth/', views.obtain_auth_token),
  
      url(r'core/', include('core.urls')),
  
      url(r'profiles/', include('pages.urls.profile_urls')),
  ]
  
  urlpatterns = format_suffix_patterns(urlpatterns)
  
Make user loggin as the homepage
## Code Before:
from django.conf.urls import url, include
from django.contrib import admin

from rest_framework.authtoken import views
from rest_framework.urlpatterns import format_suffix_patterns


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^api-token-auth/', views.obtain_auth_token),

    url(r'core/', include('core.urls')),

    url(r'profiles/', include('pages.urls.profile_urls')),
]

urlpatterns = format_suffix_patterns(urlpatterns)

## Instruction:
Make user loggin as the homepage
## Code After:
from django.conf.urls import url, include
from django.contrib import admin

from rest_framework.authtoken import views
from rest_framework.urlpatterns import format_suffix_patterns

from pages.views import profile_login

urlpatterns = [
    url(r'^$', profile_login, name='home_page'),

    url(r'^admin/', admin.site.urls),
    url(r'^api-token-auth/', views.obtain_auth_token),

    url(r'core/', include('core.urls')),

    url(r'profiles/', include('pages.urls.profile_urls')),
]

urlpatterns = format_suffix_patterns(urlpatterns)
