Esempio n. 1
0
"""player_database URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from players import views
from players.views import PlayerList

urlpatterns = [
    url(r'^admin/', admin.site.urls),
]

urlpatterns = [
    url(r'^database/', PlayerList.as_view(), name='position'),
]
Esempio n. 2
0
from django.conf import settings
from django.conf.urls.defaults import patterns, include, url

from players.views import PlayerDetailView, PlayerList

urlpatterns = patterns(
    '',
    url(r'^(?P<pk>[0-9]+)$', PlayerDetailView.as_view()),
    url(r'^choose/$', PlayerList.as_view()),
)
Esempio n. 3
0
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from players.views import PlayerList, PlayerCreate, PlayerEdit, PlayerAdminList, PlayerRemove

__author__ = 'jesuscc29'

urlpatterns = patterns('',
    url(r'^$', PlayerList.as_view(), name='players_list'),
    url(r'^nuevo/$', PlayerCreate.as_view(), name='player_create'),
    url(r'^editar/(?P<pk>\d+)/$', PlayerEdit.as_view(), name='player_edit'),
    url(r'^administrar_jugadores/$', PlayerAdminList.as_view(),
        name='player_admin_list'),
    url(r'^remove_player/(?P<pk>\d+)/$', PlayerRemove.as_view(),
        name='remove_player'),

)

Esempio n. 4
0
from django.conf import settings
from django.conf.urls.defaults import patterns, include, url

from players.views import PlayerDetailView, PlayerList

urlpatterns = patterns('',
    url(r'^(?P<pk>[0-9]+)$', PlayerDetailView.as_view()),
    url(r'^choose/$', PlayerList.as_view()),
)