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

urlpatterns = [
    url(r'^recipes/', include('recipes.urls')),
    url(r'^polls/', include('polls.urls')),
    url(r'^admin/', admin.site.urls),
]

from django.conf.urls import include, url
from django.contrib import admin
from recipes.views import IndexView 

urlpatterns = [
    url(r'^recipes/', include('recipes.urls')),
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^polls/', include('polls.urls')),
    url(r'^admin/', admin.site.urls),
]

Add homepage to the recipe site
Add homepage to the recipe site

  from django.conf.urls import include, url
  from django.contrib import admin
+ from recipes.views import IndexView 
  
  urlpatterns = [
      url(r'^recipes/', include('recipes.urls')),
+     url(r'^$', IndexView.as_view(), name='index'),
      url(r'^polls/', include('polls.urls')),
      url(r'^admin/', admin.site.urls),
  ]
  
Add homepage to the recipe site
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
    url(r'^recipes/', include('recipes.urls')),
    url(r'^polls/', include('polls.urls')),
    url(r'^admin/', admin.site.urls),
]

## Instruction:
Add homepage to the recipe site
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
from recipes.views import IndexView 

urlpatterns = [
    url(r'^recipes/', include('recipes.urls')),
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^polls/', include('polls.urls')),
    url(r'^admin/', admin.site.urls),
]
