예제 #1
0
파일: urls.py 프로젝트: angieellis/tshape
from django.conf.urls import include, url

from profiles.views import ProfileDetailView, ProfileUpdateView

app_name = 'profiles'

urlpatterns = [
    # url(r'^(?P<profile_id>\d+)/skillsets/', include('skillsets.urls')),
    url(r'^(?P<profile_id>\d+)/edit/$',
        ProfileUpdateView.as_view(),
        name='edit'),
    url(r'^(?P<profile_id>\d+)/$', ProfileDetailView.as_view(), name='detail'),
    # url(r'^$', ProfileListView.as_view(), name='list'),
]
예제 #2
0
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from profiles.views import (RegistrationView, LoginView, LogoutView,
                            ProfileDetailView, ProfileUpdateView)


urlpatterns = patterns('',
    url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'),
    url(r'^logout/$', LogoutView.as_view(), name='auth_logout'),
    url(r'^auth/profile$',ProfileUpdateView.as_view(
        template_name="auth/update.html"), name='auth_profile_update'),
    url(r'^register/$', RegistrationView.as_view(
        template_name="auth/register.html"), name='auth_registration'),
    url(r'^complete/$', TemplateView.as_view(
        template_name="auth/complete.html"), name='auth_registration_complete'),
    url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view(
        template_name="auth/profile.html"), name='auth_profile'),

)
예제 #3
0
파일: urls.py 프로젝트: fmaj7/mymd
from django.conf.urls.defaults import *

from profiles.views import ProfileDetailView, ProfileUpdateView


urlpatterns = patterns("profiles.views",
    url(r"^edit/$", ProfileUpdateView.as_view(), name="profile_edit"),
    url(r"^details/(?P<username>[\w.@+-]+)/$", ProfileDetailView.as_view(), name="profile_detail"),
)
예제 #4
0
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 django.views.generic import TemplateView
from django.contrib.auth.views import LoginView,LogoutView
from apt.views import ApartmentView, SearchApartmentView,ApartmentDetailView,ApartmentCreateView,ApartmentUpdateView,HomeView
from profiles.views import ProfileDetailView, RegisterView


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^login/$',LoginView.as_view(),name='login'),
    url(r'^logout/$',LogoutView.as_view(),name='logut'),
    url(r'^register/$',RegisterView.as_view(),name='register'),
    url(r'^$',HomeView.as_view(template_name='home.html'),name='home'),
    url(r'^apartments/$',ApartmentView.as_view(),name='apartments'),
    url(r'^apartments/create/$',ApartmentCreateView.as_view(),name='add'),
    url(r'^apartments/filter/(?P<slug>[\w|\W]+)/$',SearchApartmentView.as_view()),
    #url(r'^apartments/(?P<apt_id>\w+)/$',ApartmentDetailView.as_view()),
    url(r'^apartments/(?P<slug>[\w-]+)/update/$',ApartmentUpdateView.as_view(),name='apartment-detail-update'),
    url(r'^apartments/(?P<slug>[\w-]+)/$',ApartmentDetailView.as_view(),name='apartment-detail'),
    url(r'^profiles/(?P<username>[\w-]+)/$',ProfileDetailView.as_view(),name='profile-detail'),
]

예제 #5
0
from django.urls import path

from profiles.views import ProfileDetailView

app_name = 'profiles'
urlpatterns = [
    path('<username>/', ProfileDetailView.as_view(), name='detail'),
]
예제 #6
0
파일: urls.py 프로젝트: djudd/permabank
from django.conf.urls.defaults import *
from profiles.views import (TestView, UserUpdateView, ProfileDetailView,
    ProfileListView)

urlpatterns = patterns('profiles.views',
    (r'^$', ProfileListView.as_view()),
    (r'^(?P<pk>[0-9]+)', ProfileDetailView.as_view()),
    (r'^edit/$', UserUpdateView.as_view()),
)
예제 #7
0
파일: urls.py 프로젝트: Skaty/orbital
from django.conf.urls import url, include

from profiles.views import ProfileDetailView, PreferencesUpdateView, PasswordUpdateView, PreferencesDisplay, \
    ProfileUpdateView

urlpatterns = [
    url(r'^(?P<pk>[0-9]+)/$', ProfileDetailView.as_view(), name='profile-detail'),
    url(r'^update/', include([
        url(r'^$', PreferencesDisplay.as_view(), name='preferences-display'),
        url(r'^password/$', PasswordUpdateView.as_view(), name='password-update'),
        url(r'^preferences/$', PreferencesUpdateView.as_view(), name='preferences-update'),
        url(r'^profile/$', ProfileUpdateView.as_view(), name='profile-update'),
    ]))
]
예제 #8
0
파일: urls.py 프로젝트: mloudon/bikematch
from django.conf.urls.defaults import *

from profiles.views import ProfileListView, ProfileDetailView


urlpatterns = patterns("profiles.views",
    url(r"^profile/(?P<username>[\w\._-]+)/$", ProfileDetailView.as_view(), name="profile_detail"),
    url(r"^(?P<profile_slug>[\w\._-]+)/profile/(?P<profile_pk>\d+)/$", ProfileDetailView.as_view(), name="profile_detail"),
    url(r"^all/$", ProfileListView.as_view(all_profiles=True), 
            name="profile_list_all"),
    url(r"", include("profiles.urls_base")),
    url(r"^(?P<profile_slug>[\w\._-]+)/", include("profiles.urls_base")),
)
예제 #9
0
from django.conf.urls import url
from profiles.views import ProfileDetailView

urlpatterns = [
	url(r'^(?P<username>[\w-]+)/$', ProfileDetailView.as_view(), name='detail'),
]
예제 #10
0
]



wallets_patterns = [

    path('accounts/wallet', SendBitcoinsCreateView.as_view(), name='send'),
    path('accounts/transactions', TransactionsListView.as_view(), name='transactions'),
    path('accounts/wallet-receive', ReceiveBitcoinsTemplateView.as_view(), name='receive'),
    # path('accounts/wallet-transactions', TransactionsListView.as_view(), name='transactions'),

]

profile_patterns = [

    re_path(r'^accounts/profile/(?P<username>[\w.@+-]+)/$', ProfileDetailView.as_view(), name='detail'),
    re_path(r'^accounts/update/(?P<username>[\w.@+-]+)/$', ProfileUpdatelView.as_view(), name='update'),

]


urlpatterns = [
    # path('', search, name='home'),
    path('', AdvertisementHomeView.as_view(), name='home'),
    path('admin/', admin.site.urls),
    path('', include(('authentication.urls','authentication'), namespace='auth')),
    path('', include((profile_patterns,'profiles'), namespace='profiles')),
    path('', include((wallets_patterns,'wallets'), namespace='wallets')),
    path('', include((advertisements_patterns,'advertisements'), namespace='ads'))
]
예제 #11
0
from django.conf.urls import patterns, url

from profiles.views import LoginView, RegisterView, LogoutView, ProfileDetailView, PasswordChangeView, ProfileChangeView


# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('profiles.views',
    url('^login$', LoginView.as_view(), name="login"),
    url('^register$', RegisterView.as_view(), name="register"),
    url('^logout$', LogoutView.as_view(), name="logout"),
    url('^profile$', ProfileDetailView.as_view(), name="profile"),
    url('^change-password$', PasswordChangeView.as_view(), name="password_change"),
    url('^update-profile$', ProfileChangeView.as_view(), name="profile_change"),
)
예제 #12
0
from django.conf.urls import patterns, url

from profiles.views import ProfileUpdateView, ProfileDetailView

urlpatterns = patterns(
    '',
    url(r'^$', ProfileDetailView.as_view(), name='profile-detail'),
    url(r'^update/$', ProfileUpdateView.as_view(), name='profile-update'),
)
예제 #13
0
from django.conf.urls import patterns, url
from profiles.views import ProfileDetailView, ProfileEditView


urlpatterns = patterns(
    '',
    url(r'^$', ProfileDetailView.as_view(), name="profiles_profile"),
    url(r'^edit/$', ProfileEditView.as_view(), name="profiles_edit_own_profile"),
    url(r'^signup-completed/$', 'profiles.views.track_signup', name="profiles_track_signup"),
    url(r'^(?P<username>\S+)/$', ProfileDetailView.as_view(), name="profiles_profile"),
)
예제 #14
0
"""Profile urls."""

# Django
from django.contrib.auth.decorators import login_required
from django.urls import path
from profiles.views import ProfileDetailView, ProfileUpdateView

urlpatterns = [
    path('<slug:slug>',
         login_required(ProfileDetailView.as_view()),
         name='profile'),
    path('self/<slug:slug>',
         login_required(ProfileUpdateView.as_view()),
         name='self_profile')
]
예제 #15
0
from django.conf.urls.defaults import *
from profiles.models import Profile
from profiles.views import ProfileListView, ProfileDetailView, profile_edit

urlpatterns = patterns('profiles.views',
    url(regex=r'^edit/$',
        view=profile_edit,
        name='profile_edit',
    ),
    url(regex=r'^$',
        view=ProfileListView.as_view(),
        name='profile_list',
    ),
    url(regex=r'^(?P<username>[-\w]+)/$',
        view=ProfileDetailView.as_view(),
        name='profile_detail',
    ),
)
예제 #16
0
from django.conf.urls import patterns, include, url
from profiles.models import Profile
from profiles.views import ProfileListView, ProfileDetailView, profile_edit

urlpatterns = patterns('profiles.views',
    url(regex=r'^edit/$',
        view=profile_edit,
        name='profile_edit',
    ),
    url(regex=r'^$',
        view=ProfileListView.as_view(),
        name='profile_list',
    ),
    url(regex=r'^(?P<username>[-\w]+)/$',
        view=ProfileDetailView.as_view(),
        name='profile_detail',
    ),
)
예제 #17
0
파일: urls.py 프로젝트: nkg447/nofacebook
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.views import LoginView
from .views import RegisterView, search_view, HomeView
from profiles.views import ProfileDetailView
from message.views import MessagesByUserView
from profiles.views import ProfileFollowToggle


from django.views.generic import TemplateView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^about/$', TemplateView.as_view(template_name='about.html'),name='about'),
    url(r'^$', HomeView.as_view(),name='home'),
    url(r'^contact/$', TemplateView.as_view(template_name='contact.html'),name='contact'),
    url(r'^register/$',RegisterView.as_view(),name='register'),
    url(r'^login/$',LoginView.as_view(),name='login'),
    #url(r'^?',search_view,name='search'),

    url(r'^profile-follow/$', ProfileFollowToggle.as_view(),name='follow'),



    url(r'^u/(?P<username>[\w-]+)/$',ProfileDetailView.as_view(),name='profile'),
    url(r'^msgs/(?P<username>[\w-]+)/$',MessagesByUserView.as_view(),name='message'),



]
예제 #18
0
from django.conf.urls import patterns, include, url
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required

from profiles.views import change_avatar, ProfileDetailView

urlpatterns = patterns('',
                       url(r'^(?P<username>[-_\w]+)/$', ProfileDetailView.as_view(), name='profile'),
                       url(r'^avatar/change/$', 'profiles.views.change_avatar', name='change_avatar'),
                       url(r'^manage/arts/$', 'profiles.views.manage_art', name='manage_art'),

)
예제 #19
0
from django.conf.urls.defaults import *
from profiles.models import Profile
from profiles.views import ProfileListView, ProfileDetailView, profile_edit

urlpatterns = patterns(
    "profiles.views",
    url(regex=r"^edit/$", view=profile_edit, name="profile_edit"),
    url(regex=r"^$", view=ProfileListView.as_view(), name="profile_list"),
    url(regex=r"^(?P<username>[-\w]+)/$", view=ProfileDetailView.as_view(), name="profile_detail"),
)
예제 #20
0
파일: urls.py 프로젝트: shnip-it/shnip.it
from django.conf.urls import patterns, include, url

from profiles.views import ProfileSettingsView, ProfileDetailView
from . import views

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    "",
    url(r"^admin/", include(admin.site.urls)),
    url(r"^account/settings/$", ProfileSettingsView.as_view(), name="account_settings"),
    url(r"^account/profile/$", ProfileDetailView.as_view(), name="account_my_profile"),
    url(r"^account/profile/(?P<pk>\d+)/$", ProfileDetailView.as_view(),
        name="account_profile"),
    url(r"^account/", include("account.urls")),
    url(r"^$", views.home, name="home"),
    url(r"^tos/$", views.tos, name="tos"),
    url(r"^help/$", views.help, name="help"),
    url(r"^about/$", views.about, name="about"),
    url(r"^team/$", views.team, name="team"),
    url(r"^privacy/$", views.privacy, name="privacy"),
    url(r"^contact/$", views.Contact.as_view(), name="contact"),
    url(r"^", include("snippets.urls")),
)
예제 #21
0
from profiles.views import (RegistrationView, LoginView, LogoutView,
                            ProfileDetailView, ProfileUpdateView, ProfileChannelsGraphView, ProfileResolutionsView,
                            ProfileDeclarationsView, ProfileFallaciesView, SpeakerDetailView)


urlpatterns = [
    url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'),
    url(r'^logout/$', LogoutView.as_view(), name='auth_logout'),
    url(r'^auth/profile$', ProfileUpdateView.as_view(
        template_name="auth/update.html"), name='auth_profile_update'),
    url(r'^register/$', RegistrationView.as_view(
        template_name="auth/register.html"), name='auth_registration'),
    url(r'^complete/$', TemplateView.as_view(
        template_name="auth/complete.html"), name='auth_registration_complete'),
    url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view(
        template_name="auth/profile.html"), name='auth_profile'),
    url(r'^users/(?P<username>[\w\._-]+)/resolutions$',
        ProfileResolutionsView.as_view(), name='auth_profile_resolutions'),
    url(r'^users/(?P<username>[\w\._-]+)/declarations$',
        ProfileDeclarationsView.as_view(), name='auth_profile_declarations'),
    url(r'^users/(?P<username>[\w\._-]+)/fallacies$',
        ProfileFallaciesView.as_view(), name='auth_profile_fallacies'),
    url(r'^users/(?P<username>[\w\._-]+)/channels.json$',
        ProfileChannelsGraphView.as_view(), name='auth_profile_channels'),
    url(r'^password_reset/$', views.password_reset,
        {'template_name': 'auth/password_reset_form.html',
        'email_template_name': 'auth/password_reset_email.html'},
        name='password_reset'),
    url(r'^password_reset/done/$', views.password_reset_done,
        {'template_name': 'auth/password_reset_done.html'},
        name='password_reset_done'),
예제 #22
0
# Django
from django.urls import path

# Local
from profiles.views import ProfileDetailView, ProfileUpdateView

urlpatterns = [
    path('<int:pk>', ProfileDetailView.as_view(), name='profile-detail'),
    path('<int:pk>/update', ProfileUpdateView.as_view(), name='profile-update'),
]
예제 #23
0
 '',
 url(r'^login/$',
     LoginView.as_view(template_name="auth/login.html"),
     name='auth_login'),
 url(r'^logout/$', LogoutView.as_view(), name='auth_logout'),
 url(r'^auth/profile$',
     ProfileUpdateView.as_view(template_name="auth/update.html"),
     name='auth_profile_update'),
 url(r'^register/$',
     RegistrationView.as_view(template_name="auth/register.html"),
     name='auth_registration'),
 url(r'^complete/$',
     TemplateView.as_view(template_name="auth/complete.html"),
     name='auth_registration_complete'),
 url(r'^users/(?P<username>[\w\._-]+)$',
     ProfileDetailView.as_view(template_name="auth/profile.html"),
     name='auth_profile'),
 url(r'^users/(?P<username>[\w\._-]+)/arguments$',
     ProfileArgumentsView.as_view(),
     name='auth_profile_arguments'),
 url(r'^users/(?P<username>[\w\._-]+)/premises$',
     ProfilePremisesView.as_view(),
     name='auth_profile_premises'),
 url(r'^users/(?P<username>[\w\._-]+)/fallacies$',
     ProfileFallaciesView.as_view(),
     name='auth_profile_fallacies'),
 url(r'^users/(?P<username>[\w\._-]+)/channels.json$',
     ProfileChannelsGraphView.as_view(),
     name='auth_profile_channels'),
 url(r'^password_reset/$',
     views.password_reset, {
예제 #24
0
파일: urls.py 프로젝트: luzfcb/tristano
router.register(r'users', UserViewSet)
router.register(r'books', BookViewSet)


urlpatterns = patterns('',

	# Admin
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),

    # django-allauth -- registration, login, passwords
    (r'^accounts/', include('allauth.urls')),

    # Profiles
    url(r'^p/edit/?$', ProfileUpdateView.as_view(),  name='profile_update'),
    url(r'^p/(?P<username>\w+)/$', ProfileDetailView.as_view(),  name='profile_detail'),

    # Books static views
    url(r'^books_static/list/?$', BooksStaticListView.as_view(),  name='books_list_static'),  # Static list view
    url(r'^books_static/detail/(?P<pk>[\d]+)?$', BooksStaticDetailView.as_view(),  name='books_detail_static'),  # Static detail view

    # Books Angular list/detail views both handled by a single/simple Django page
    url(r'^books/', BooksAngularView.as_view(),  name='books_list'),

    # API
    url(r'^api/', include(router.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),

    # Home
    url(r'^$', 'main.views.home', name='home'),
예제 #25
0
from django.conf.urls import patterns, url

from profiles.views import (
    ProfileUpdateView,
    ProfileListView,
    ProfileDetailView,
)

urlpatterns = patterns('',
    url(r'^edit/(?P<slug>[-\w]+)/$', ProfileUpdateView.as_view(), name='profile_edit'),
    url(r'^$', ProfileListView.as_view(), name='profile_list'),
    url(r'^(?P<slug>[-\w]+)/$', ProfileDetailView.as_view(), name='profile_detail'),
)
예제 #26
0
from django.conf.urls import patterns, include, url
from idios.views import ProfileUpdateView

from profiles.forms import ProfileForm
from profiles.views import ProfileDetailView, ProfileListView


urlpatterns = patterns("",
    url(r"^profile/(?P<pk>\d+)/(?P<slug>[\w\._-]*)",
        ProfileDetailView.as_view(), name="profile_detail"),
    url(r"^edit/$", ProfileUpdateView.as_view(
        form_class=ProfileForm, template_name="profiles/profile_edit.html"),
        name="profile_edit"),
    url(r"^$", ProfileListView.as_view(), name="profile_list"),
    url(r"^all/$", ProfileListView.as_view(all_profiles=True),
        name="profile_list_all"),
)