from django.conf.urls import patterns, include, url
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'lots_client.views.home', name='home'),
    url(r'^status/$', 'lots_client.views.status', name='status'),
    url(r'^apply/$', 'lots_client.views.apply', name='apply'),
    url(r'^apply-confirm/(?P<tracking_id>\S+)/$', 'lots_client.views.apply_confirm', name='apply_confirm'),
    url(r'^faq/$', 'lots_client.views.faq', name='faq'),
    url(r'^about/$', 'lots_client.views.about', name='about'),
    url(r'^lots-admin/$', 'lots_admin.views.lots_admin', name='lots_admin'),
    url(r'^lots-admin-map/$', 'lots_admin.views.lots_admin_map', name='lots_admin_map'),
    url(r'^csv-dump/$', 'lots_admin.views.csv_dump', name='csv_dump'),
    url(r'^lots-login/$', 'lots_admin.views.lots_login', name='lots_login'),
    url(r'^logout/$', 'lots_admin.views.lots_logout', name='logout'),
    url(r'^django-admin/', include(admin.site.urls)),
)

urlpatterns += patterns('',
        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.MEDIA_ROOT,
        }),
        url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.STATIC_ROOT,
        }),)

from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'lots_client.views.home', name='home'),
    url(r'^status/$', 'lots_client.views.status', name='status'),
    url(r'^apply/$', 'lots_client.views.apply', name='apply'),
    url(r'^apply-confirm/(?P<tracking_id>\S+)/$', 'lots_client.views.apply_confirm', name='apply_confirm'),
    url(r'^faq/$', 'lots_client.views.faq', name='faq'),
    url(r'^about/$', 'lots_client.views.about', name='about'),
    url(r'^lots-admin/$', 'lots_admin.views.lots_admin', name='lots_admin'),
    url(r'^lots-admin-map/$', 'lots_admin.views.lots_admin_map', name='lots_admin_map'),
    url(r'^csv-dump/$', 'lots_admin.views.csv_dump', name='csv_dump'),
    url(r'^lots-login/$', 'lots_admin.views.lots_login', name='lots_login'),
    url(r'^logout/$', 'lots_admin.views.lots_logout', name='logout'),

    url(r'^django-admin/', include(admin.site.urls)),
)

Revert "Picture access from admin console"
Revert "Picture access from admin console"

This reverts commit 324fa160fb629f6c4537ca15212c0822e8ac436d.

  from django.conf.urls import patterns, include, url
- from django.conf import settings
  
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      # Examples:
      url(r'^$', 'lots_client.views.home', name='home'),
      url(r'^status/$', 'lots_client.views.status', name='status'),
      url(r'^apply/$', 'lots_client.views.apply', name='apply'),
      url(r'^apply-confirm/(?P<tracking_id>\S+)/$', 'lots_client.views.apply_confirm', name='apply_confirm'),
      url(r'^faq/$', 'lots_client.views.faq', name='faq'),
      url(r'^about/$', 'lots_client.views.about', name='about'),
      url(r'^lots-admin/$', 'lots_admin.views.lots_admin', name='lots_admin'),
      url(r'^lots-admin-map/$', 'lots_admin.views.lots_admin_map', name='lots_admin_map'),
      url(r'^csv-dump/$', 'lots_admin.views.csv_dump', name='csv_dump'),
      url(r'^lots-login/$', 'lots_admin.views.lots_login', name='lots_login'),
      url(r'^logout/$', 'lots_admin.views.lots_logout', name='logout'),
+ 
      url(r'^django-admin/', include(admin.site.urls)),
  )
  
- urlpatterns += patterns('',
-         url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
-             'document_root': settings.MEDIA_ROOT,
-         }),
-         url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
-             'document_root': settings.STATIC_ROOT,
-         }),)
- 
Revert "Picture access from admin console"
## Code Before:
from django.conf.urls import patterns, include, url
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'lots_client.views.home', name='home'),
    url(r'^status/$', 'lots_client.views.status', name='status'),
    url(r'^apply/$', 'lots_client.views.apply', name='apply'),
    url(r'^apply-confirm/(?P<tracking_id>\S+)/$', 'lots_client.views.apply_confirm', name='apply_confirm'),
    url(r'^faq/$', 'lots_client.views.faq', name='faq'),
    url(r'^about/$', 'lots_client.views.about', name='about'),
    url(r'^lots-admin/$', 'lots_admin.views.lots_admin', name='lots_admin'),
    url(r'^lots-admin-map/$', 'lots_admin.views.lots_admin_map', name='lots_admin_map'),
    url(r'^csv-dump/$', 'lots_admin.views.csv_dump', name='csv_dump'),
    url(r'^lots-login/$', 'lots_admin.views.lots_login', name='lots_login'),
    url(r'^logout/$', 'lots_admin.views.lots_logout', name='logout'),
    url(r'^django-admin/', include(admin.site.urls)),
)

urlpatterns += patterns('',
        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.MEDIA_ROOT,
        }),
        url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.STATIC_ROOT,
        }),)

## Instruction:
Revert "Picture access from admin console"
## Code After:
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'lots_client.views.home', name='home'),
    url(r'^status/$', 'lots_client.views.status', name='status'),
    url(r'^apply/$', 'lots_client.views.apply', name='apply'),
    url(r'^apply-confirm/(?P<tracking_id>\S+)/$', 'lots_client.views.apply_confirm', name='apply_confirm'),
    url(r'^faq/$', 'lots_client.views.faq', name='faq'),
    url(r'^about/$', 'lots_client.views.about', name='about'),
    url(r'^lots-admin/$', 'lots_admin.views.lots_admin', name='lots_admin'),
    url(r'^lots-admin-map/$', 'lots_admin.views.lots_admin_map', name='lots_admin_map'),
    url(r'^csv-dump/$', 'lots_admin.views.csv_dump', name='csv_dump'),
    url(r'^lots-login/$', 'lots_admin.views.lots_login', name='lots_login'),
    url(r'^logout/$', 'lots_admin.views.lots_logout', name='logout'),

    url(r'^django-admin/', include(admin.site.urls)),
)
