from django.conf.urls import url
from django.views.generic.base import TemplateView

from pages.views import HomeView


urlpatterns = [
    url(r'^$',
        HomeView.as_view(),
        name='home'),
]
Esempio n. 2
0
rules_light.autodiscover()
autocomplete_light.autodiscover()
admin.autodiscover()

rules_light.registry['api.models.UserProfile.read'] = True

feeds = {
    'rss': RssSiteNewsFeed,
    'feeds': RssPostsFeed,
    'atom': AtomSiteNewsFeed,
}


urlpatterns = patterns('',
    url(r'^home/$', HomeView.as_view()),
    url(r'^grappelli/', include('grappelli.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^django-rq/', include('django_rq.urls')),
    url(r'^rest/', include('rest_framework.urls', namespace='rest_framework')),
    url(r'^complete/google-oauth2/', RedirectView.as_view(url='/dashboard/')),
#    url(r'^complete/(?P<backend>[^/]+)/$', complete,name='socialauth_complete'),    
    url(r'^accounts_api/', include('registration_api.urls')),
    url(r'^accounts/login/',RedirectView.as_view(url='/dashboard/')),
    url(r'^$',HomeView.as_view()),
    url(r'^rest/$', RedirectView.as_view(url='/rest/login')),
    url(r'^buttons$', TemplateView.as_view(template_name='buttons.html'), name="buttons"),
    url(r'^api-auth/', include('rest_framework.urls',namespace='rest_framework')),
    url(r'^chaining/', include('smart_selects.urls')),
    url(r'^admin/property/neighborhood/add/$',include('smart_selects.urls')),
    url(r'^blog/', BlogView.as_view()),
Esempio n. 3
0
from django.urls import path
from pages.views import HomeView

urlpatterns = [
    path('', HomeView.as_view()),
]
Esempio n. 4
0
from django.conf import settings
from django.conf.urls import patterns, url
from django.conf.urls.static import static
from pages.views import (HomeView, AboutView, WorkView, ConsultancyView,
                         WorkshopsView, WorkshopView, ContactView)


urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^about$', AboutView.as_view(), name='about'),
    url(r'^work$', WorkView.as_view(), name='work'),
    url(r'^consultancy$', ConsultancyView.as_view(), name='consultancy'),
    url(r'^workshops$', WorkshopsView.as_view(), name='workshops'),
    url(r'^workshops/(?P<wsid>[a-zA-Z0-9-]+)$', WorkshopView.as_view(), name='workshops'),
    url(r'^contact$', ContactView.as_view(), name='contact'),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Esempio n. 5
0
from django.urls import path
from . import views
from pages.views import HomeView
#from users import views as user_views

urlpatterns = [
    path('', HomeView.as_view(), name='home'),
    #path('register/', SignupView.as_view(), name='register'),
]
Esempio n. 6
0
"""project URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/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 pages.views import HomeView, PageDetailView

from newsletter.api.views import JoinAPICreateView

urlpatterns = [
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^admin/', admin.site.urls),
    url(r'^api/email/join/$', JoinAPICreateView.as_view(), name='email-join'),
    url(r'^(?P<slug>[\w-]+)/$', PageDetailView.as_view(), name='page-detail'),
]
Esempio n. 7
0
"""ideas URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/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.urls import include, path, re_path
from django.contrib import admin

from pages.views import HomeView, PageDetailView
from newsletter.api.views import JoinCreateAPIView

urlpatterns = [
    re_path(r'^$', HomeView.as_view(), name='home'),
    re_path(r'^admin/', admin.site.urls),
    re_path(r'api/email/join/$', JoinCreateAPIView.as_view(), name='email-join'),
    re_path(r'^(?P<slug>[\w-]+)/$', PageDetailView.as_view(), name='page-detail'),
]
Esempio n. 8
0
"""app3 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/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 pages.views import AboutView, HomeView, IndexView
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    path("home", HomeView.as_view(), name="home"),
    path("about", AboutView.as_view(), name="about"),
    path("index", IndexView.as_view(), name="index"),
]

urlpatterns += staticfiles_urlpatterns()
Esempio n. 9
0
"""ideas URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/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 pages.views import HomeView
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', HomeView.as_view(), name="index"),
]