from django.conf.urls.defaults import *
from obchod.main import views
import os.path
import django.views.static

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    #(r'^admin/', include(admin.site.urls))
    # Example:
    # (r'^obchod/', include('obchod.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
    (r'^tovar/(.*)/$',views.tovar),
    (r'^kategoria/(.*)/$',views.kategoria),
    #(r'^kosik/pridaj/(\d+)/$',views.kosik_pridaj),
    (r'^kosik/$',views.kosik),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': os.path.dirname(__file__)+'/static'}),
    (r'^$',views.index),
)
