Exemplo n.º 1
0
from django.conf.urls import url
from otree.urls import urlpatterns
from trust import focus
# from . import views
print('SUKA')
urlpatterns.append(url(r'^trust/export/$', focus.focustable))
Exemplo n.º 2
0
from django.conf.urls import url
from otree.urls import urlpatterns

from . import views

# Seller AJAX
urlpatterns.append(url(r'^duopoly/autopricedims/$', views.AutoPricedims, name="autopricedims"))
urlpatterns.append(url(r'^duopoly/manualpricedims/$', views.ManualPricedims, name="manualpricedims"))

# Wait game AJAX
urlpatterns.append(url(r'^duopoly/gamewaititercorrect/$', views.GameWaitIterCorrect, name="waitgame"))


# DATA
urlpatterns.append(url(r'^duopoly/data/$', views.ViewData, name="data"))

urlpatterns.append(url(r'^duopoly/data/ask/download$', views.AskDataDownload, name="ask_data_download"))
urlpatterns.append(url(r'^duopoly/data/ask$', views.AskDataView, name="ask_data_view"))

urlpatterns.append(url(r'^duopoly/data/contract/download$', views.ContractDataDownload, name="contract_data_download"))
urlpatterns.append(url(r'^duopoly/data/contract', views.ContractDataView, name="contract_data_view"))

urlpatterns.append(url(r'^duopoly/data/market/download$', views.MarketDataDownload, name="market_data_download"))
urlpatterns.append(url(r'^duopoly/data/market$', views.MarketDataView, name="market_data_view"))

urlpatterns.append(url(r'^duopoly/data/combined/download$', views.CombinedDataDownload, name="combined_data_download"))
urlpatterns.append(url(r'^duopoly/data/combined', views.CombinedDataView, name="combined_data_view"))

urlpatterns.append(url(r'^duopoly/data/survey/download$', views.SurveyDataDownload, name="survey_data_download"))
urlpatterns.append(url(r'^duopoly/data/survey', views.SurveyDataView, name="survey_data_view"))
Exemplo n.º 3
0
# add custom url config to register our custom page

from django.conf.urls import url
from otree.urls import urlpatterns
from heartbeat.custom_views import heartbeat_setup

# accessing <server>/heartbeat_setup/<session_code>/ offers the input page.
urlpatterns.append(
    url(r'^heartbeat_setup/(?P<session_code>[a-zA-Z0-9]*)/$',
        heartbeat_setup,
        name="heartbeat_setup"))
Exemplo n.º 4
0
# urls.py
from django.conf.urls import url
from otree.urls import urlpatterns
from django.conf import settings
from django.conf.urls.static import static
from image_upload import gallery
from django.views.generic import TemplateView

urlpatterns.append(url(r'^InstructionsEmployer/$', TemplateView.as_view(template_name='InstructionsEmployer.html'), name="InstructionsEmployer"))

urlpatterns.append(url(r'^gallery/$', 'image_upload.gallery.gallery'))
Exemplo n.º 5
0
from django.urls import path
from otree.urls import urlpatterns, url_patterns_from_builtin_module

from __CUSTOM import pages as __custom_pages

prefix = "CUSTOM"

urlpatterns.append(path(f'{prefix}/custom_view', __custom_pages.custom_view))
urlpatterns.append(path(f'{prefix}/skip_demo_setup/<session_config_name>', __custom_pages.skip_demo_setup))

urlpatterns += url_patterns_from_builtin_module("__CUSTOM.views.rest")


router = routers.DefaultRouter()
# router.register('players', __custom_views.PlayerViewSet)
router.register('participants', __custom_views.ParticipantViewSet)
router.register('sessions', __custom_views.SessionViewSet)
urlpatterns += [
    path('API/', include(router.urls)),
    #path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
Exemplo n.º 6
0
from django.conf.urls import url, include
from otree.urls import urlpatterns

urlpatterns.append(url(r'^captcha/', include('captcha.urls')), )
Exemplo n.º 7
0
# urls.py
from django.conf.urls import url
from otree.urls import urlpatterns
from django.conf import urls
import my_matrix_ret.pages as pages

urlpatterns.append(url(r'^verify/$', pages.verify, name='verify'))
Exemplo n.º 8
0
from django.conf.urls import url
from otree.urls import urlpatterns

from . import views

urlpatterns.append(url(r'^duopoly_rep_treat/autopricedims/$', views.AutoPricedims))
Exemplo n.º 9
0
"""
Custom URLs that add hooks to session data monitor extensions.

Feb. 2021, Markus Konrad <*****@*****.**>
"""

from django.conf.urls import url
from otree.urls import urlpatterns

from . import views


# define patterns with name, URL pattern and view class
patterns_conf = {
    'SessionData': (r"^SessionData/(?P<code>[a-z0-9]+)/$", views.SessionDataExtension),
    'SessionDataAjax': (r"^session_data/(?P<code>[a-z0-9]+)/$", views.SessionDataAjaxExtension),
}

# exclude oTree's original patterns with the same names
urlpatterns = [pttrn for pttrn in urlpatterns if pttrn.name not in patterns_conf.keys()]

# add the patterns
for name, (pttrn, viewclass) in patterns_conf.items():
    urlpatterns.append(url(pttrn, viewclass.as_view(), name=name))
Exemplo n.º 10
0
# urls.py
from django.conf.urls import include, url
from django.contrib import admin
from otree.urls import urlpatterns
# urlpatterns = [
#
# ]

# urls.py
# from django.conf.urls import url

urlpatterns.append(url(r'^admin/', include(admin.site.urls)), )
Exemplo n.º 11
0
from django.contrib.staticfiles.storage import staticfiles_storage
from django.views.generic.base import RedirectView
from django.conf.urls import url
from otree.urls import urlpatterns

urlpatterns.append(
    url(r'^favicon.ico$',
        RedirectView.as_view(url=staticfiles_storage.url('favicon.ico'),
                             permanent=False),
        name='favicon'))
Exemplo n.º 12
0
# from django.views.generic import TemplateView

import sandbox.views as v

# urls.py
from django.conf.urls import url
from otree.urls import urlpatterns

print('i am in otree ext')
urlpatterns.append(
    url(r'^vignette$', v.VignetteView.as_view(),
        name='vignette_customization'), )
Exemplo n.º 13
0
from django.urls import path
from otree.urls import urlpatterns
import instructions.pages

urlpatterns.append(
    path('static_instructions/', instructions.pages.static_instructions))