Пример #1
0
from django.conf.urls.defaults import patterns, url

from views import (Overview, Profile, Projects, ProjectDetail, ProfileSetup,
                   ProfileCreate)

urlpatterns = patterns('',
    url(r'^$', Overview.as_view(), name='overview'),
    url(r'login/$', 'django.contrib.auth.views.login',
        {'template_name': 'people/login.html'}),
    url(r'logout/$', 'django.contrib.auth.views.logout',
        {'next_page': '/'}),
    url(r'password_change/', 'django.contrib.auth.views.password_change',
        {'post_change_redirect': '/',
         'template_name': 'people/change_password.html'}),
    url(r'^profile_create$', ProfileCreate.as_view(), name='profile-create'),
    url(r'^profile/(?P<pk>\d+)/$', Profile.as_view(), name='profile'),
    url(r'^project/$', Projects.as_view(), name='project-list'),
    url(r'^project/(?P<pk>\d+)/$', ProjectDetail.as_view(), name='project-detail'),
    url(r'^profile_set/(?P<pk>\d+)', ProfileSetup.as_view(), name='profile-setup'),
)
Пример #2
0
from django.conf.urls.defaults import patterns, url

from views import (Overview, Profile, Projects, ProjectDetail, ProfileSetup,
                   ProfileCreate)

urlpatterns = patterns(
    '',
    url(r'^$', Overview.as_view(), name='overview'),
    url(r'login/$', 'django.contrib.auth.views.login',
        {'template_name': 'people/login.html'}),
    url(r'logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}),
    url(
        r'password_change/', 'django.contrib.auth.views.password_change', {
            'post_change_redirect': '/',
            'template_name': 'people/change_password.html'
        }),
    url(r'^profile_create$', ProfileCreate.as_view(), name='profile-create'),
    url(r'^profile/(?P<pk>\d+)/$', Profile.as_view(), name='profile'),
    url(r'^project/$', Projects.as_view(), name='project-list'),
    url(r'^project/(?P<pk>\d+)/$',
        ProjectDetail.as_view(),
        name='project-detail'),
    url(r'^profile_set/(?P<pk>\d+)',
        ProfileSetup.as_view(),
        name='profile-setup'),
)
Пример #3
0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import patterns, url, include

from views import Signup, Logout, Error, Verify, SocialRegister, Profile, DeleteProfileView

urlpatterns = patterns(
    '',
    url(r'^sign-up/$', Signup.as_view(), name='account-signup'),
    url(r'^logout/$', Logout.as_view(), name='account-logout'),
    url(r'^error/$', Error.as_view(), name='account-error'),
    url(r'^profile/$', Profile.as_view(), name='account-profile'),
    url(r'^verify/(?P<verification_code>[-\w]+)/$',
        Verify.as_view(),
        name='account-verify'),
    url(r'^social-register/$',
        SocialRegister.as_view(),
        name='account-social-register'),
    url(r'^delete-user/(?P<pk>[-\w]+)/$',
        DeleteProfileView.as_view(),
        name='account-delete-user'),
)

urlpatterns += patterns('', url(r'', include('social_auth.urls')))
Пример #4
0
from django.conf.urls import patterns, include, url
import django_sanction.urls
from views import (
	Home,
	Profile,
	Error
)

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

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'example.views.home', name='home'),
    # url(r'^example/', include('example.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
	url(r"^o/", include(django_sanction.urls)),
	url(r"^o/error", Error.as_view()),
	url(r"^$", Home.as_view()),
	url(r"^accounts/profile/$", Profile.as_view()),
)
Пример #5
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from views import Home, Project_view, RecomendedProjects_view, AboutView, OurPeople, Create_skill, Edit_project, Profile, Category_view, Category_view_filter, Sub_category_view_filter, Users_view, Settings, Create_project, Register, Login, Create_profile, Trueques, Set_Password, solicitar_cambio_contrasena, cambiar_contrasena_usuario, Dashboard, register_comment, ProjectComments, UserComments, ProjectComment
import views
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = patterns(
    '',
    url(r'^likes/', include('phileo.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', Home.as_view(), name='index'),
    url(r'^proyecto/(?P<username>\w+)/(?P<slug>[-_\w]+)/$', Project_view.as_view(), name='project'),
    url(r'^proyecto/editar/(?P<username>\w+)/(?P<slug>[-_\w]+)/$', Edit_project.as_view(), name='editproject'),
    url(r'^perfil/(?P<slug>[-_\w]+)/$', Profile.as_view(), name='profile'),
	url(r'^dashboard/(?P<slug>[-_\w]+)/$', Dashboard.as_view(), name='dashboard'),
    url(r'^descubre/$', Category_view.as_view() , name='category'),
	url(r'^colabora/(?P<tipo>\w+)/$', RecomendedProjects_view.as_view() , name='matches'),
    url(r'^descubre/(?P<category>\w+)/$', Category_view_filter.as_view(), name='subcategory'),
    url(r'^descubre/(?P<category>\w+)/(?P<subcategory>\w+)/$', Sub_category_view_filter.as_view(), name='detailsubcategory'),
    url(r'^encuentra/$', Users_view.as_view() , name='encuentra'),
    url(r'^register/$', Register.as_view(), name='register'), 
    url(r'^login/$', Login.as_view(), name='login'),
    url(r'^register/perfil/$', Create_profile.as_view(), name='createprofile'),
    url(r'^logout/$', views.user_logout, name='logout'),
    url(r'^configuracion/(?P<username>\w+)/$', login_required(Settings.as_view()), name='settings'),
    url(r'^crea/$', login_required(Create_project.as_view()), name='create'),
    url(r'^crea/habilidad/$', login_required(Create_skill.as_view()), name='createSkill'),
    url(r'^froala_editor/', include('froala_editor.urls')),
    #url(r'^mensajes/', include('postman.urls', app_name='postman')),
Пример #6
0
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from views import LoginView, Profile, LogoutView

from django.contrib.auth.views import logout

urlpatterns = [
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^logout/$', LogoutView.as_view(), name='logout'),
    url(r'^profile/$', Profile.as_view(), name='profile')
]
Пример #7
0
from django.conf.urls import patterns, include, url
from views import HomeView, Profile

urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(), name='reportes'),
    url(r'^perfil/(?P<id>\d+)/$', Profile.as_view(), name='profile'),
) 
Пример #8
0
from django.conf.urls import (patterns, include, url)
from django.contrib import admin
from views import (Index, UserProfile, Profile, 
	PostTweet, Search, HashTagCloud, MostFollowedUser)

admin.autodiscover()

urlpatterns = patterns('',
	url(r'^$',Index.as_view()),
	url(r'^user/(\w+)/$', UserProfile.as_view()),
	url(r'^user/(\w+)/profile/$', Profile.as_view()),
	url(r'^user/(\w+)/post/$', PostTweet.as_view()),
	url(r'^hashTag/(\w+)/$', HashTagCloud.as_view()),
	url(r'^search/$', Search.as_view()),
	url(r'^user/followers/view$', MostFollowedUser.as_view()),

)
Пример #9
0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import patterns, url, include
from views import Signup, Logout, Verify, CompleteProfile, Profile, DeleteView

urlpatterns = patterns('',
    url(r'^sign-up/$', Signup.as_view(), name='account-signup'),
    url(r'^logout/$', Logout.as_view(), name='account-logout'),
    url(r'^profile/$', Profile.as_view(), name='account-profile'),
    url(r'^verify/(?P<verification_code>[-\w]+)/$', Verify.as_view(), name='account-verify'),
    url(r'^complete-profile/$', CompleteProfile.as_view(), name='account-complete-profile'),
    url(r'^delete-user/(?P<pk>[-\w]+)/$', DeleteView.as_view(), name='account-delete-user'),
)

urlpatterns += patterns('',
                        url(r'', include('social_auth.urls'))
)