# Path: books/app_settings.py
# BOOKS_STATICS_VIA_DJANGO = getattr(settings, 'BOOKS_STATICS_VIA_DJANGO', False)


import os
from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from books.app_settings import BOOKS_STATICS_VIA_DJANGO
from django.contrib.auth import views as auth_views
    from django.views.static import serve

#from django.conf.urls import patterns, include, url
admin.autodiscover()



urlpatterns = [

    url(r'', include('books.urls')),


    # Comments
    # FIXME (r'^comments/', include('django.contrib.comments.urls')),

    # Auth login and logout:
    url(r'^accounts/login/$', auth_views.login, name='login'),
    url(r'^accounts/logout/$', auth_views.logout, name='logout'),

    # Admin:
    url(r'^admin/', include(admin.site.urls)),
]



# Path: books/app_settings.py
# BOOKS_STATICS_VIA_DJANGO = getattr(settings, 'BOOKS_STATICS_VIA_DJANGO', False)


# Path: pathagar/urls.py
import os
from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from books.app_settings import BOOKS_STATICS_VIA_DJANGO
from django.contrib.auth import views as auth_views
    from django.views.static import serve


#from django.conf.urls import patterns, include, url
admin.autodiscover()



urlpatterns = [

    url(r'', include('books.urls')),


    # Comments
    # FIXME (r'^comments/', include('django.contrib.comments.urls')),

    # Auth login and logout:
    url(r'^accounts/login/$', auth_views.login, name='login'),
    url(r'^accounts/logout/$', auth_views.logout, name='logout'),

    # Admin:
    url(r'^admin/', include(admin.site.urls)),
]



if BOOKS_STATICS_VIA_DJANGO: