Пример #1
0
def update_project_factory():
    update_project_interactor = UpdateProjectInteractorFactory.create()
    return ProjectView(update_project_interactor)
Пример #2
0
def get_project_factory():
    get_project_interactor = GetProjectInteractorFactory.create()
    return ProjectView(get_project_interactor)
Пример #3
0
def delete_project_factory():
    delete_project_interactor = DeleteProjectInteractorFactory.create()
    return ProjectView(delete_project_interactor)
Пример #4
0
from django.conf.urls import include, url
from django.contrib import admin
from home.views import HomeView, CodeView, HobbyView
from project.views import ProjectView, DotaseekerView, DSLoginView, \
DSRegisterView, DSSigninView, DSDashboardView, DSEditView, DSSearchView, \
RandomMangaView, TopTrendsView, PokedexView, MovieView

urlpatterns = [
    # Examples:
    url(r'^$', HomeView.as_view()),
    url(r'^code/', CodeView.as_view()),
    url(r'^hobbies/', HobbyView.as_view()),
    url(r'^projects/', ProjectView.as_view()),
    url(r'^dotaseeker/dashboard/edit', DSEditView.as_view()),
    url(r'^dotaseeker/dashboard', DSDashboardView.as_view()),
    url(r'^dotaseeker/login', DSLoginView.as_view()),
    url(r'^dotaseeker/register', DSRegisterView.as_view()),
    url(r'^dotaseeker/search', DSSearchView.as_view()),
    url(r'^dotaseeker/signin', DSSigninView.as_view()),
    url(r'^dotaseeker/', DotaseekerView.as_view()),
    url(r'^randommanga/', RandomMangaView.as_view()),
    url(r'^toptrends/api/twitter', 'project.api.search_twitter_tweets'),
    url(r'^toptrends', TopTrendsView.as_view()),
    url(r'^pokedex', PokedexView.as_view()),
    url(r'^movies', MovieView.as_view()),
    # url(r'^blog/', include('blog.urls')),
    url(r'^ijeong/2016/admin/', include(admin.site.urls)),
    url('', include('social.apps.django_app.urls', namespace='social'))
]
Пример #5
0
def create_project_factory():
    create_project_interactor = CreateProjectInteractorFactory.create()
    return ProjectView(create_project_interactor)
Пример #6
0
        name='delete_activity_view'),
    url(r'^customer/(?P<pk>[0-9]+)/$',
        login_required(CustomerView.as_view()),
        name='customer_view'),
    url(r'^customer/$',
        permission_required('is_staff')(CustomerListView.as_view()),
        name='customer_list'),
    url(r'^customer/create/$',
        permission_required('is_staff')(CreateCustomerView.as_view()),
        name='create_customer_view'),
    url(r'^customer/update/(?P<pk>[0-9]+)/$',
        permission_required('is_staff')(UpdateCustomerView.as_view()),
        name='update_customer_view'),
    url(r'^customer/delete/(?P<pk>[0-9]+)/$',
        permission_required('is_staff')(DeleteCustomerView.as_view()),
        name='delete_customer_view'),
    url(r'^(?P<pk>[0-9]+)/$',
        login_required(ProjectView.as_view()),
        name='project_view'),
    url(r'^$', login_required(ProjectListView.as_view()), name='project_list'),
    url(r'^create/$',
        permission_required('is_staff')(CreateProjectView.as_view()),
        name='create_project_view'),
    url(r'^update/(?P<pk>[0-9]+)/$',
        permission_required('is_staff')(UpdateProjectView.as_view()),
        name='update_project_view'),
    url(r'^delete/(?P<pk>[0-9]+)/$',
        permission_required('is_staff')(DeleteProjectView.as_view()),
        name='delete_project_view'),
]
Пример #7
0
# coding=utf-8
"""
__create_time__ = '11/9/14'
__author__ = 'Madre'
"""
from django.conf.urls import patterns, include, url
from project.views import ProjectView


urlpatterns = patterns('',
                       url(r'^$', ProjectView.as_view(), name="project"),
)

from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
Пример #8
0
# _*_coding:utf-8_*_

from django.conf.urls import url

from project.views import ProjectView, ProjectAddView, ProjectDeleteView

urlpatterns = [
    url(r'^$', ProjectView.as_view(), name='project'),
    url(r'^project_add/', ProjectAddView.as_view(), name='project_add'),
    url(r'^project_delete/',
        ProjectDeleteView.as_view(),
        name='project_delete'),
]
Пример #9
0
from django.urls import path
from project.views import ProjectView, TaskView

app_name = 'project'

urlpatterns = [
    path('users/projects/', ProjectView.as_view(), name="project"),
    path('users/tasks/<int:pk>/', TaskView.as_view(), name="task"),


]
Пример #10
0
from django.urls import path
from project.views import ProjectView, ProjectCreate, UserUpdate, ProjectList, ProjectDelete, ProjectMemberList
from django.http import HttpResponse

urlpatterns = [
    path('', ProjectView.as_view(), name='project'),
    path('new/', ProjectCreate.as_view(), name='project_new'),
    path('delete/<name>/', ProjectDelete.as_view(), name='project_delete'),
    path('update/<username>/', UserUpdate.as_view(), name='user_update'),
    path('list/', ProjectList.as_view(), name='users_projects'),
    path('members/', ProjectMemberList.as_view(), name='project_members')
]