예제 #1
0
from django.conf.urls import url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static

from website.views import HomeView, BuscarView, DetalleView, AgregarCarritoView, CarritoView, OrdenarView
from usuarios.views import LoginView, LogoutView, RegistroView, PerfilView

urlpatterns = [
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^buscador$', BuscarView.as_view(), name='buscar'),
    url(r'^producto/(?P<pk>\d+)$', DetalleView.as_view(), name='detalle'),
    url(r'^login$', LoginView.as_view(), name='login'),
    url(r'^logout', LogoutView.as_view(), name='logout'),
    url(r'^registro', RegistroView.as_view(), name='registro'),
    url(r'^perfil', PerfilView.as_view(), name='perfil'),
    url(r'^agregar-carrito',
        AgregarCarritoView.as_view(),
        name='agregar_carrito'),
    url(r'^carrito', CarritoView.as_view(), name='carrito'),
    url(r'^ordenar', OrdenarView.as_view(), name='ordenar'),
    url(r'^admin/', admin.site.urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
예제 #2
0
파일: urls.py 프로젝트: HengeSense/website
#
# $END_LICENSE$
############################################################################

from django.conf.urls import patterns, include, url
from django.conf import settings
from cms.sitemaps import CMSSitemap

from django.contrib import admin
admin.autodiscover()

from website.views import HomeView, PreviewView, ProfileView, EditProfileView

urlpatterns = patterns(
    '',
    url(r'^$', HomeView.as_view(), name="home_page"),
    url(r'^preview/$', PreviewView.as_view(), name="preview_page"),
    url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap',
        {'sitemaps': {
            'cmspages': CMSSitemap
        }}),
    url(r'^accounts/profile/edit/$',
        EditProfileView.as_view(),
        name="auth_edit_profile"),
    url(r'^accounts/profile/$', ProfileView.as_view(), name="auth_profile"),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^comments/', include('django.contrib.comments.urls')),
    url(r'^', include('cms.urls')),
)
예제 #3
0
파일: urls.py 프로젝트: bartromgens/rbbingo
from registration.forms import RegistrationFormUniqueEmail

from website.views import CardView
from website.views import CheckFieldView
from website.views import EventsView
from website.views import GamesView
from website.views import HomeView
from website.views import JoinGameView
from website.views import NewEventView
from website.views import EditEventView
from website.views import NewGameView
from website.views import RBBingoNewRegistrationView

urlpatterns = patterns(
    '',
    url(r'^$', login_required(HomeView.as_view())),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/register/',
        RBBingoNewRegistrationView.as_view(
            form_class=RegistrationFormUniqueEmail),
        name='registration_register'
        ),  # include before the simple.urls to override register url
    url(r'^accounts/', include('registration.backends.simple.urls')
        ),  # the django-registration module
    url(r'^card/(?P<card_id>[0-9]+)/$', login_required(CardView.as_view())),
    url(r'^games/$', login_required(GamesView.as_view())),
    url(r'^game/new/$', login_required(NewGameView.as_view())),
    url(r'^events/$', login_required(EventsView.as_view())),
    url(r'^event/new/$', login_required(NewEventView.as_view())),
    url(r'^event/edit/(?P<id>[0-9]+)/$',
        login_required(EditEventView.as_view())),
예제 #4
0
파일: urls.py 프로젝트: HengeSense/website
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# $END_LICENSE$
############################################################################

from django.conf.urls import patterns, include, url
from django.conf import settings
from cms.sitemaps import CMSSitemap

from django.contrib import admin
admin.autodiscover()

from website.views import HomeView, PreviewView, ProfileView, EditProfileView

urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(), name="home_page"),
    url(r'^preview/$', PreviewView.as_view(), name="preview_page"),
    url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {
        'sitemaps': {
            'cmspages': CMSSitemap
        }
    }),
    url(r'^accounts/profile/edit/$', EditProfileView.as_view(), name="auth_edit_profile"),
    url(r'^accounts/profile/$', ProfileView.as_view(), name="auth_profile"),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^comments/', include('django.contrib.comments.urls')),
    url(r'^', include('cms.urls')),
)

if settings.DEBUG:
예제 #5
0
from django.conf.urls.defaults import patterns, include, url

from website.views import HomeView


urlpatterns = patterns('',
    url(r'^home',HomeView.as_view(),name="home"),
)  

예제 #6
0
파일: urls.py 프로젝트: tweetz0r/openkamer
import travel.views

from website.views import CSVExportsView
from website.views import DatabaseDumpsView
from website.views import PersonTimelineView
from website.views import HomeView
from website.views import ContactView
from website import settings
from website.views import get_dossier_timeline_json
from website.views import get_person_timeline_html
from website.views import PlotExampleView

import website.api

urlpatterns = [
    url(r'^$', HomeView.as_view()),
    url(r'^colofon/$',
        TemplateView.as_view(template_name="website/about.html"),
        name='about'),
    url(r'^contact/$', ContactView.as_view(), name='contact'),
    url(r'^personen/$', PersonsView.as_view(), name='persons'),
    url(r'^personen/twitter/$',
        TwitterPersonsView.as_view(),
        name='persons-twitter'),
    url(r'^persoon/(?P<slug>[-\w]+)/$', PersonView.as_view(), name='person'),
    url(r'^person-autocomplete/$',
        PersonAutocomplete.as_view(),
        name='person-autocomplete'),
    url(r'^persoon/tijdlijn/(?P<slug>[-\w]+)/(?P<year>[\d{4}]+)/$',
        PersonTimelineView.as_view(),
        name='person-timeline-year'),
예제 #7
0
파일: urls.py 프로젝트: bartromgens/rbbingo
from registration.forms import RegistrationFormUniqueEmail

from website.views import CardView
from website.views import CheckFieldView
from website.views import EventsView
from website.views import GamesView
from website.views import HomeView
from website.views import JoinGameView
from website.views import NewEventView
from website.views import EditEventView
from website.views import NewGameView
from website.views import RBBingoNewRegistrationView


urlpatterns = patterns(
    '',
    url(r'^$', login_required(HomeView.as_view())),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/register/', RBBingoNewRegistrationView.as_view(form_class=RegistrationFormUniqueEmail), name='registration_register'), # include before the simple.urls to override register url
    url(r'^accounts/', include('registration.backends.simple.urls')), # the django-registration module
    url(r'^card/(?P<card_id>[0-9]+)/$', login_required(CardView.as_view())),
    url(r'^games/$', login_required(GamesView.as_view())),
    url(r'^game/new/$', login_required(NewGameView.as_view())),
    url(r'^events/$', login_required(EventsView.as_view())),
    url(r'^event/new/$', login_required(NewEventView.as_view())),
    url(r'^event/edit/(?P<id>[0-9]+)/$', login_required(EditEventView.as_view())),
    url(r'^field/toggle/(?P<field_id>[0-9]+)/$', login_required(CheckFieldView.as_view())),
    url(r'^game/join/(?P<game_id>[0-9]+)/$', login_required(JoinGameView.as_view())),
)
예제 #8
0
from django.conf.urls import url
from django.contrib import admin
from django.views.generic import TemplateView
from solid_i18n.urls import solid_i18n_patterns

from website import views
from website.views import MachineListView, MachineDetailsView, JobListView, ContactView, GalleryListView, HomeView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^subscribe/$', views.subscribe),
    url(r'^send_emails/$', views.send_emails),
    url(r'^unsubscribe/(?P<pk>[^/]+)/$', views.unsubscribe, name='unsubscribe'),
]

urlpatterns += solid_i18n_patterns(
    url(r'^team/$', TemplateView.as_view(template_name="team.html"), name='team'),
    url(r'^contact/$', ContactView.as_view(), name='contact'),
    url(r'^gallery/$', GalleryListView.as_view(), name='gallery'),
    url(r'^shop/$', MachineListView.as_view(), name='shop'),
    url(r'^shop/(?P<pk>\d+)/$', MachineDetailsView.as_view()),
    url(r'^career/$', JobListView.as_view(), name='career'),
    url(r'^language/$', views.change_language, name='change_language'),
    url(r'^$', HomeView.as_view(), name='home'),
)
예제 #9
0
"""physiotherapiehartmann URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from website.views import HomeView, ImpressumView, LeistungView, PraxisView, TeamView, OpenView

app_name = 'website'

urlpatterns = [
    path('home', HomeView.as_view(), name='home'),
    path('impressum', ImpressumView.as_view(), name='impressum'),
    path('leistung', LeistungView.as_view(), name='leistung'),
    path('praxis', PraxisView.as_view(), name='praxis'),
    path('team', TeamView.as_view(), name='team'),
    path('open', OpenView.as_view(), name='open'),
]
예제 #10
0
from django.conf.urls import patterns, include, url
from django.contrib import admin

from person.views import PersonsView
from parliament.views import PartiesView, ParliamentMembersView

from website.views import HomeView
from website.views import BillsView
import website.api


urlpatterns = [
    url(r'^$', HomeView.as_view()),
    url(r'^persons/', PersonsView.as_view()),
    url(r'^parties/', PartiesView.as_view()),
    url(r'^parliamentmembers/', ParliamentMembersView.as_view()),
    url(r'^bills/', BillsView.as_view()),
    url(r'^api/', include(website.api)),
    url(r'^admin/', include(admin.site.urls)),
]