예제 #1
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()),
)
예제 #2
0
from resources.models import Resource, Topic
from profiles.models import UserProfile

from django.views.generic import RedirectView
from .views import *
from profiles.views import UserUpdateView, UserProfileUpdateView
from .sitemaps import sitemaps

urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(), name='page_home'),
    url(r'^explore/$', explore_home, name='explore_home'),
    url(r'^admin/$', RedirectView.as_view(url='/', permanent=True)),
    url(r'^explore/resource/all/$', RecentResourceListView.as_view(), name='explore_recent_resources'),
    url(r'^explore/domain/all/$', PopularDomainListView.as_view(), name='explore_all_domains'),
    url(r'^explore/topic/all/$', PopularTopicListView.as_view(), name='explore_all_topics'),
    url(r'^accounts/settings/core/$', UserUpdateView.as_view(), name='user_update'),
    url(r'^accounts/settings/info/$', UserProfileUpdateView.as_view(), name='userprofile_update'),
)

urlpatterns += patterns('',
    url(r'^manage/', include(admin.site.urls)),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^resource/', include('resources.urls')),
    url(r'^profile/', include('profiles.urls')),
    url(r'^search/', include('haystack.urls')),
)


urlpatterns += patterns('',
    (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
)
예제 #3
0
파일: urls.py 프로젝트: akarambir/gtkm
from django.contrib import admin
admin.autodiscover()

from .views import HomeView
from profiles.forms import CustomEmailRegistrationForm
from profiles.views import UserProfileUpdateView, UserUpdateView, MyResume

urlpatterns = patterns('',
    # url(r'^$', 'gtkm.views.home', name='home'),
    # url(r'^gtkm/', include('gtkm.foo.urls')),
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^resume/$', MyResume.as_view(), name='resume_simple'),
    url(r'^dl/resume.pdf$', 'profiles.views.generate_pdf', name='resume_download'),
    url(r'^users/', include('profiles.urls')),
    url(r'^accounts/profile/$', UserProfileUpdateView.as_view(), name='accounts_profile'),
    url(r'^accounts/main/$', UserUpdateView.as_view(), name='accounts_main'),

    url(r'^accounts/register/$',
        register,
        {'backend': 'registration.backends.simple.SimpleBackend',
        'template_name': 'registration/registration_form.html',
        'form_class': CustomEmailRegistrationForm,
        'success_url': getattr(
        settings, 'REGISTRATION_EMAIL_REGISTER_SUCCESS_URL', None),
        },
        name='registration_registe',
        ),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/', include('registration_email.backends.default.urls')),
)
예제 #4
0
파일: urls.py 프로젝트: kpkantaw/codesters
from .views import *
from profiles.views import UserUpdateView, UserProfileUpdateView
from .sitemaps import sitemaps

urlpatterns = patterns(
    "",
    url(r"^$", HomeView.as_view(), name="page_home"),
    url(r"^about/$", AboutView.as_view(), name="page_about"),
    url(r"^contact/$", ContactView.as_view(), name="page_contact"),
    url(r"^guidelines/$", GuidelinesView.as_view(), name="page_guidelines"),
    url(r"^explore/$", explore_home, name="explore_home"),
    url(r"^admin/$", RedirectView.as_view(url="/", permanent=True)),
    url(r"^explore/resource/all/$", RecentResourceListView.as_view(), name="explore_recent_resources"),
    url(r"^explore/domain/all/$", PopularDomainListView.as_view(), name="explore_all_domains"),
    url(r"^explore/topic/all/$", PopularTopicListView.as_view(), name="explore_all_topics"),
    url(r"^accounts/settings/core/$", UserUpdateView.as_view(), name="user_update"),
    url(r"^accounts/settings/info/$", UserProfileUpdateView.as_view(), name="userprofile_update"),
)

urlpatterns += patterns(
    "",
    url(r"^manage/", include(admin.site.urls)),
    url(r"^accounts/", include("registration.backends.default.urls")),
    url(r"^resource/", include("resources.urls")),
    url(r"^profile/", include("profiles.urls")),
    url(r"^search/", include("haystack.urls")),
)


urlpatterns += patterns("", (r"^sitemap\.xml$", "django.contrib.sitemaps.views.sitemap", {"sitemaps": sitemaps}))
예제 #5
0
urlpatterns = patterns(
    '',
    url(r'^$', HomeView.as_view(), name='page_home'),
    url(r'^explore/$', explore_home, name='explore_home'),
    url(r'^admin/$', RedirectView.as_view(url='/', permanent=True)),
    url(r'^explore/resource/all/$',
        RecentResourceListView.as_view(),
        name='explore_recent_resources'),
    url(r'^explore/domain/all/$',
        PopularDomainListView.as_view(),
        name='explore_all_domains'),
    url(r'^explore/topic/all/$',
        PopularTopicListView.as_view(),
        name='explore_all_topics'),
    url(r'^accounts/settings/core/$',
        UserUpdateView.as_view(),
        name='user_update'),
    url(r'^accounts/settings/info/$',
        UserProfileUpdateView.as_view(),
        name='userprofile_update'),
)

urlpatterns += patterns(
    '',
    url(r'^manage/', include(admin.site.urls)),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^resource/', include('resources.urls')),
    url(r'^profile/', include('profiles.urls')),
    url(r'^search/', include('haystack.urls')),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': settings.MEDIA_ROOT,