# Path: judge/views.py
# def index(request):
# def register_user(request):
# def loguserin(request):
# def loguserout(request):
# def add_problem(request):
# def view_problem(request, pid):
# def all_problems(request):
# def submit(request, pid):
# def view_submission(request, submission_id):


from django.conf.urls import patterns, url
from judge import views

urlpatterns = [
        url(r'^$', views.index, name='index'),
        url(r'^register/$', views.register_user, name='register'),
        url(r'^logout/$', views.loguserout, name = 'loguserout'),
        url(r'^login/$', views.loguserin, name = 'loguserin'),
        url(r'^add-problem/$', views.add_problem, name = "add_problem"),
        url(r'^problems/$', views.all_problems, name = "all_problems"),

# Path: judge/views.py
# def index(request):
# def register_user(request):
# def loguserin(request):
# def loguserout(request):
# def add_problem(request):
# def view_problem(request, pid):
# def all_problems(request):
# def submit(request, pid):
# def view_submission(request, submission_id):


# Path: judge/urls.py
from django.conf.urls import patterns, url
from judge import views


urlpatterns = [
        url(r'^$', views.index, name='index'),
        url(r'^register/$', views.register_user, name='register'),
        url(r'^logout/$', views.loguserout, name = 'loguserout'),
        url(r'^login/$', views.loguserin, name = 'loguserin'),
        url(r'^add-problem/$', views.add_problem, name = "add_problem"),
        url(r'^problems/$', views.all_problems, name = "all_problems"),

        url(r'^problems/(?P<pid>[\w\-]+)$', views.view_problem, name="view_prob"),