summaryrefslogtreecommitdiffstats
path: root/fbconnect/urls.py
blob: bf2d43641f03ee1033ebc74f8f7852dcf4864d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.conf.urls.defaults import *
from django.utils.translation import ugettext as _
from django.views.generic.simple import direct_to_template
from django.conf import settings
from views import signin,  register

urlpatterns = patterns('',
    url(r'^xd_receiver$',  direct_to_template,  {'template': 'fbconnect/xd_receiver.html',\
                                                'extra_context': {'APP_SHORT_NAME':settings.APP_SHORT_NAME}},\
        name='xd_receiver'), 
    
    url(r'^%s$' % _('signin/'),  signin,  name="fb_signin"), 
    url(r'^%s%s$' % (_('signin/'),  _('newquestion/')),  signin, {'newquestion': True},  name="fb_signin_new_question"), 
    url(r'^%s%s$' % (_('signin/'),  _('newanswer/')),  signin, {'newanswer': True},  name="fb_signin_new_answer"), 
    
    url(r'^%s$' % _('register/'),  register,  name="fb_user_register"), 
    url(r'^%s%s$' % (_('register/'),  _('newquestion/')),  register, {'newquestion': True},  name="fb_user_register_new_question"), 
    url(r'^%s%s$' % (_('register/'),  _('newanswer/')),  register, {'newanswer': True},  name="fb_user_register_new_answer"),     
)