#!/usr/bin/env python
# -*- coding: utf-8 -*-
##
## Author: Adriano Monteiro Marques <adriano@umitproject.org>
## Author: Diogo Pinheiro <diogormpinheiro@gmail.com>
##
## Copyright (C) 2011 S2S Network Consultoria e Tecnologia da Informacao LTDA
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Affero General Public License for more details.
##
## You should have received a copy of the GNU Affero General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
##

from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

handler500 = 'djangotoolbox.errorviews.server_error'

urlpatterns = patterns('',
    ('^_ah/warmup$', 'djangoappengine.views.warmup'),
    (r'', include('gui.urls')),
    (r'', include('geoip.urls')),
    (r'^map/$', 'gui.views.map'),
    (r'^realtimebox/$', 'gui.views.realtimebox'),
    (r'^events/(?P<event_id>\d+)/$', 'gui.views.event'),
    (r'^twitter/', include('twitter.urls')),
    (r'^accounts/', include('registration.urls')),
    (r'^notification/', include('notificationsystem.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^api/', include('api.urls')),
    (r'^decision/', include('decision.urls')),
    (r'^agents/', include('agents.urls')),
)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
##
## Author: Adriano Monteiro Marques <adriano@umitproject.org>
## Author: Diogo Pinheiro <diogormpinheiro@gmail.com>
##
## Copyright (C) 2011 S2S Network Consultoria e Tecnologia da Informacao LTDA
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Affero General Public License for more details.
##
## You should have received a copy of the GNU Affero General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
##

from django.conf.urls.defaults import *
from django.contrib import admin

from ajax_select import urls as ajax_select_urls

admin.autodiscover()

handler500 = 'djangotoolbox.errorviews.server_error'

urlpatterns = patterns('',
    ('^_ah/warmup$', 'djangoappengine.views.warmup'),
    (r'', include('gui.urls')),
    (r'', include('geoip.urls')),
    (r'^map/$', 'gui.views.map'),
    (r'^realtimebox/$', 'gui.views.realtimebox'),
    (r'^events/(?P<event_id>\d+)/$', 'gui.views.event'),
    (r'^twitter/', include('twitter.urls')),
    (r'^accounts/', include('registration.urls')),
    (r'^notification/', include('notificationsystem.urls')),
    
    (r'^api/', include('api.urls')),
    (r'^decision/', include('decision.urls')),
    (r'^agents/', include('agents.urls')),
    (r'^ajax/lookups/', include(ajax_select_urls)),
    (r'^admin/', include(admin.site.urls)),
)

Add ajax_select lookup url.