<s> from django . conf import settings <EOL> from django . conf . urls . defaults import * <EOL> from django . contrib import admin <EOL> from django . contrib . auth . decorators import login_required <EOL> from django . views . generic . simple import redirect_to <EOL> import authority <EOL> from userena import views as userena_views <EOL> from txcommon . forms import EditProfileForm , CustomContactForm <EOL> from txcommon . feeds import UserFeed <EOL> from txcommon . views import profile_edit as txcommon_profile_edit <EOL> handler500 = '<STR_LIT>' <EOL> admin . autodiscover ( ) <EOL> authority . autodiscover ( ) <EOL> panel_url = getattr ( settings , '<STR_LIT>' , '<STR_LIT>' ) <EOL> urlpatterns = patterns ( '<STR_LIT>' , ) <EOL> if settings . ENABLE_ADDONS : <EOL> urlpatterns += patterns ( '<STR_LIT>' , ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) ) <EOL> PROJECTS_URL = '<STR_LIT>' <EOL> js_info_dict = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( PROJECTS_URL , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' % panel_url , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' % panel_url , include ( admin . site . urls ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , <EOL> { '<STR_LIT>' : CustomContactForm } , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , js_info_dict , <EOL> name = '<STR_LIT>' ) , <EOL> ) <EOL> if settings . ENABLE_CONTACT_FORM : <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) , name = '<STR_LIT>' ) , <EOL> ) <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , UserFeed ( ) , name = '<STR_LIT>' ) <EOL> ) <EOL> if settings . ENABLE_SIMPLEAUTH : <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , ) <EOL> else : <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( regex = r'<STR_LIT>' , <EOL> view = login_required ( txcommon_profile_edit ) , <EOL> kwargs = { '<STR_LIT>' : EditProfileForm } , <EOL> name = '<STR_LIT>' ) , <EOL> url ( regex = r'<STR_LIT>' , <EOL> view = '<STR_LIT>' , <EOL> name = '<STR_LIT>' ) , <EOL> url ( regex = r'<STR_LIT>' , <EOL> view = login_required ( userena_views . email_change ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( regex = r'<STR_LIT>' , <EOL> view = login_required ( userena_views . password_change ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( regex = r'<STR_LIT>' , <EOL> view = login_required ( userena_views . profile_edit ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( regex = r'<STR_LIT>' , <EOL> view = include ( '<STR_LIT>' ) ) , <EOL> url ( regex = r'<STR_LIT>' , <EOL> view = '<STR_LIT>' , <EOL> name = '<STR_LIT>' ) , <EOL> ) <EOL> if settings . USE_SOCIAL_LOGIN : <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , <EOL> view = '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , <EOL> name = '<STR_LIT>' ) , <EOL> ) <EOL> if settings . ENABLE_NOTICES : <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = "<STR_LIT>" ) , <EOL> ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> ) <EOL> if settings . SERVE_MEDIA : <EOL> urlpatterns += patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , '<STR_LIT>' , { <EOL> '<STR_LIT>' : settings . MEDIA_ROOT , <EOL> } ) , <EOL> url ( r'<STR_LIT>' , include ( '<STR_LIT>' ) ) <EOL> ) </s>
