from django.conf.urls.defaults import *
from django.conf import settings

import os

urlpatterns = patterns('',
    (r'^$', 'beerconnect.tasting.views.index'),
    (r'^receive/(?P<phonenumber>[\w]+)/$', 'beerconnect.tasting.views.receive_sms'),
    (r'^receive/$', 'beerconnect.tasting.views.receive_sms'),
    (r'^send/$', 'beerconnect.tasting.views.send_sms'),
    (r'^fakesms/(?P<phonenumber>[\w]+)/$', 'beerconnect.tasting.views.fake_sms'),
    (r'^event/(?P<event_id>[0-9]+)/$', 'beerconnect.tasting.views.show_event'),

    # Server media with django
    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media').replace('\\','/'),}),
)
