File: testsettings.py

package info (click to toggle)
django-menu-generator-ng 1.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: python: 729; makefile: 17
file content (41 lines) | stat: -rwxr-xr-x 925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': ':memory:',
    },
}
SECRET_KEY = "r4dy"
INSTALLED_APPS = [
    'menu_generator',
    'menu_generator.tests.test_apps.app1.apps.MyAppConfig',
    'menu_generator.tests.test_apps.app2',
    'menu_generator.tests.test_apps.app3'
]
MIDDLEWARE_CLASSES = []
ROOT_URLCONF = 'menu_generator.tests.urls'

NAV_MENU = [
    {
        "name": "Main",
        "url": "/",
    },
    {
        "name": "Account",
        "url": "/account",
        "validators": ["menu_generator.validators.is_authenticated", ],
        "submenu": [
            {
                "name": "Profile",
                "url": '/account/profile/',
            },
        ],
    },
    {
        "name": "Create User",
        "url": "users:create"
    },
    {
        "name": "Update User",
        "url": {"viewname": "users:update", "kwargs": {'pk': 1}}
    }
]