Exemple #1
0
        name='account_activation_sent'),
    url(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
        views.activate,
        name='activate'),
    url(r'testapp/panda/', views.panda, name='testapp_workspace1'),
    url(r'^testapp/pandas/', views.getData, name='testapp_pandas'),
    url(r'^testapp/getnum/', views.getNums),
    url(r'^testapp/getavg/', views.getAvg),
    url(r'^testapp/getimg/', views.getImage),
    url(r'^testapp/R/', views.getR, name='testapp_R'),
    url(r'^testapp/ajx/', views.getAjax, name='testapp_ajax'),
    url(r'^testapp/gmplot/', views_gmplot.getgmPlot),
    url(r'^testapp/getdata/', views.getDatas),
    url(r'testapp/show/', views.show),
    path('testapp/edit/<int:id>', views.edit),
    path(r'testapp/update/<int:id>', views.update),
    path(r'testapp/destroy/<int:id>', views.destroy),
    url(r'^', include(router.urls)),
    url(r'^api-auth/',
        include('rest_framework.urls', namespace='rest_framework')),
    url(r'^testapp/detect/', views_detection.getDetect, name='testapp_motion'),
    url(r'^testapp/for/', views_logic.forStar),
]

#urlpatterns += crud_for_app('auth', login_required=True, cruds_url='lte')
urlpatterns += crud_for_app('auth', login_required=True, cruds_url='lte')

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL,
                          document_root=settings.MEDIA_ROOT)
Exemple #2
0
"""djangoproj URL Configuration

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

urlpatterns = [
    path('admin/', admin.site.urls),
]

# django-cruds-adminlte
from cruds_adminlte.urls import crud_for_app
urlpatterns += crud_for_app('blog')
from django.conf.urls import url, include
from django.contrib import admin

from cruds_adminlte.urls import crud_for_app
from testapp.views import (AutorCRUD, InvoiceCRUD, IndexView, CustomerCRUD,
                           LineCRUD, AddressCRUD)
from django.contrib.auth import views as auth_views
from django.conf.urls.static import static

authorcrud = AutorCRUD()
invoicecrud = InvoiceCRUD()
customercrud = CustomerCRUD()
linecrud = LineCRUD()
addresscrud = AddressCRUD()

ns = crud_for_app('testapp', check_perms=True, namespace="ns")

urlpatterns = [
    url(r'^$', IndexView.as_view()),
    url(r'^accounts/login/$', auth_views.login, name='login'),
    url(r'^logout/$', auth_views.logout, name='logout'),
    url(r'^admin/', admin.site.urls),
    url(r'^select2/', include('django_select2.urls')),
    url('^namespace/', include('testapp.urls')),
    url(r'', include(authorcrud.get_urls())),
    url(r'', include(invoicecrud.get_urls())),
    url(r'', include(customercrud.get_urls())),
    url(r'', include(linecrud.get_urls())),
    url(r'', include(addresscrud.get_urls())),
]
Exemple #4
0
from cruds_adminlte.urls import crud_for_app

app_name = 'socios'

urlpatterns = []

urlpatterns += crud_for_app(app_name)
Exemple #5
0
    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.contrib import admin
from django.urls import path
from django.conf.urls import url, include
from django.apps import apps
from cruds_adminlte.urls import crud_for_app




urlpatterns = [
    path('admin/', admin.site.urls),
    url(r'^', include('apps.home.urls')),
    url(r'^erp/', include('apps.erp.urls')),
    url(r'^base/', include('apps.base.urls')),
    url(r'^crm/', include('apps.crm.urls')),
    url(r'^project/', include('apps.project.urls')),
    url(r'^website/', include('apps.website.urls')),
    url(r'^account/', include('apps.account.urls')),
    url(r'^pos/', include('apps.pos.urls')),
    url(r'^marketing/', include('apps.marketing.urls')),
    url(r'^payroll/', include('apps.payroll.urls')),
]

urlpatterns += crud_for_app('account')
def test_crud_for_app(settings, client):
    # TODO :write proper tests
    crud = crud_for_app('testapp')
    pass
Exemple #7
0
from cruds_adminlte.urls import crud_for_app
from testapp.forms import EmployeeForm

app_name = 'testapp'

urlpatterns = []

urlpatterns += crud_for_app(app_name, check_perms=True, namespace="ns")
urlpatterns += crud_for_app(app_name,
                            login_required=True,
                            check_perms=True,
                            cruds_url='emp')
urlpatterns += crud_for_app(app_name,
                            login_required=True,
                            check_perms=True,
                            cruds_url='show')
urlpatterns += crud_for_app(app_name,
                            login_required=True,
                            check_perms=True,
                            cruds_url='edit')
Exemple #8
0
from django.contrib import admin
from django.urls import path
from django.conf.urls import include, url

from django.views.generic.base import TemplateView

from django.contrib.auth.decorators import login_required

# django-cruds-adminlte
from django.apps import apps
from cruds_adminlte.urls import crud_for_app

urlpatterns = [
    path('admin/', admin.site.urls),
    path(
        'cp/',
        login_required(
            TemplateView.as_view(template_name='adminlte/home.html'))),
    url('', include('project.noticeboard.urls')),
    url('account/', include('allauth.urls')),
]

# django-cruds-adminlte
urlpatterns += crud_for_app('noticeboard',
                            login_required=True,
                            check_perms=True,
                            cruds_url='cp')
Exemple #9
0
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.contrib import admin
from django.urls import path, include
from cruds_adminlte.urls import crud_for_app
from cruds_adminlte.urls import crud_for_model

from django.apps import apps

from instories import views

urlpatterns = [
    path('accounts/login/', views.custom_login, name='login'),
    path('logout/', views.custom_logout, name='logout'),
    # path('notify/', include('notify.urls')),
    path('', include('notify.urls')),
    path('admin/', admin.site.urls),
]
urlpatterns += crud_for_app('notify', login_required=True, check_perms=True)

# urlpatterns += crud_for_model(apps.get_model('notify', 'Option'))
# urlpatterns += crud_for_model(apps.get_model('notify', 'Push'))
from cruds_adminlte.urls import crud_for_app

app_name = 'testapp'

urlpatterns = []

urlpatterns += crud_for_app(app_name, check_perms=True, namespace="ns")
Exemple #11
0
"""djangoproj URL Configuration

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

from polls import views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', views.index, name='index'),
    path('polls/', include('polls.urls'))
]

# django-cruds-adminlte
from django.utils import six
from cruds_adminlte.urls import crud_for_app
urlpatterns += crud_for_app('polls')
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import url, include

from cruds_adminlte.urls import crud_for_app

urlpatterns = [
    url(r'^select2/', include('django_select2.urls')),
]

urlpatterns += crud_for_app('testapp', login_required=True, check_perms=True)
Exemple #13
0
from . import views
from cruds_adminlte.urls import crud_for_app
from django.conf.urls import url, include

app_name = 'testapp'

urlpatterns = []

urlpatterns += crud_for_app('testapp', check_perms=True)