import os

from wafer.settings import *

try:
    from localsettings import *
except ImportError:
    pass

from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse_lazy

pyconzadir = os.path.dirname(__file__)


STATICFILES_DIRS = (
    os.path.join(pyconzadir, 'static'),
)

TEMPLATE_DIRS = (
    os.path.join(pyconzadir, 'templates'),
) + TEMPLATE_DIRS


WAFER_MENUS += (
    {"menu": "about", "label": _("About"),
     "items": []},
    #{"menu": "venue", "label": _("Venue"),
    # "items": []},
    {"menu": "sponsors", "label": _("Sponsors"),
     "items": [
         {"name": "sponsors", "label": _("Our sponsors"),
          "url": reverse_lazy("wafer_sponsors")},
         {"name": "packages", "label": _("Sponsorship packages"),
          "url": reverse_lazy("wafer_sponsorship_packages")},
     ]},
    {"menu": "talks", "label": _("Talks"),
     "items": [
         {"name": "accepted-talks", "label": _("Accepted Talks"),
          "url": reverse_lazy("wafer_users_talks")},
     ]},
    {"menu": "previous-pycons", "label": _("Past PyConZAs"),
     "items": [
         {"name": "pyconza2012", "label": _("PyConZA 2012"),
          "url": "http://2012.za.pycon.org/"},
         {"name": "pyconza2013", "label": _("PyConZA 2013"),
          "url": "http://2013.za.pycon.org/"},
     ]},
    {"name": "twitter", "label": "Twitter",
     "image": "/static/img/twitter.png",
     "url": "https://twitter.com/pyconza"},
)


CRISPY_TEMPLATE_PACK = 'bootstrap'
MARKITUP_FILTER = ('markdown.markdown', {'safe_mode': False})

@@ -481,15 +481,14 @@
     
-#
 %7B%22
+na
 me
-nu
 %22: %22
@@ -524,21 +524,51 @@
     
-#
  %22
-items%22: %5B%5D
+url%22: reverse_lazy(%22wafer_page%22, %22venue%22)
 %7D,%0A 
@@ -623,32 +623,141 @@
      %22items%22: %5B%0A
+         %7B%22name%22: %22amazon%22, %22label%22: _(%22%C2%BB Amazon %E2%98%85%22),%0A          %22url%22: reverse_lazy(%22wafer_sponsor%22, pk=1)%7D,%0A
          %7B%22name%22

Add venue and Amazon menu links.