coopeV3 package

Submodules

coopeV3.acl module

coopeV3.acl.acl_and(*perms)
coopeV3.acl.acl_or(*perms)
coopeV3.acl.active_required(view)
coopeV3.acl.admin_required(view)

Test if the user is staff

coopeV3.acl.self_or_has_perm(pkName, perm)

Test if the user is the request user (pk) or has perm permission

coopeV3.acl.superuser_required(view)

Test if the user is superuser

coopeV3.local_settings.example module

coopeV3.local_settings module

coopeV3.settings module

Django settings for coopeV3 project.

Generated by “django-admin startproject” using Django 2.1.

For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/

For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/

coopeV3.urls module

coopeV3 URL Configuration

The urlpatterns list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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”))
coopeV3.urls.path(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)

coopeV3.views module

coopeV3.views.coope_runner(request)
coopeV3.views.home(request)
coopeV3.views.homepage(request)

coopeV3.widgets module

class coopeV3.widgets.SearchField(attrs=None)

Bases : django.forms.widgets.Input

media
render(name, value, attrs=None)

Render the widget as an HTML string.

coopeV3.wsgi module

WSGI config for coopeV3 project.

It exposes the WSGI callable as a module-level variable named application.

For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/

Module contents