HackersEdge / settings.py

Kevin Veroneau 8d6c3a4 





























































































# -*- coding: utf-8 -*-
# These are just the settings you need to add to your Django project when adding Hacker's Edge.

TEMPLATE_CONTEXT_PROCESSORS = (
    # Include all the other normal ones here.
    'he_one.context_processors.user_profile',
    'he_one.context_processors.lookup_forms',
    'he_one.context_processors.user_tools',
)

MIDDLEWARE_CLASSES = (
    # Include your other project middleware here.
    'he_one.middleware.ProfileMiddleware',
    'he_one.middleware.TaskMiddleware',
    'he_one.middleware.ToolsMiddleware',
)

INSTALLED_APPS = (
    # Include your other apps here.
    'selectable',
    'dajaxice',
    'dajax',
    # Or here...
)

# If you plan on using the new Admin tools dashboard, use this to make it look pretty:

ADMIN_TOOLS_INDEX_DASHBOARD = 'fluent_dashboard.dashboard.FluentIndexDashboard'
ADMIN_TOOLS_APP_INDEX_DASHBOARD = 'fluent_dashboard.dashboard.FluentAppIndexDashboard'
ADMIN_TOOLS_MENU = 'fluent_dashboard.menu.FluentMenu'
ADMIN_MEDIA_PREFIX = STATIC_URL+'admin/'

FLUENT_DASHBOARD_APP_ICONS = {
    'he_one/userprofile': 'preferences-contact-list.png',
    'forums/post': 'view-calendar-journal.png',
    'forums/thread': 'view-conversation-balloon.png',
    'forums/topic': 'folder.png',
    'help_center/topic': 'folder-txt.png',
    'help_center/guide': 'view-choose.png',
    'he_one/message': 'view-pim-mail.png',
    'he_one/task': 'view-pim-tasks.png',
    'he_one/mailbox': 'server-database.png',
    'he_one/mission': 'view-calendar-list.png',
    'he_one/objective': 'view-media-playlist.png',
    'he_one/missionobjectives': 'view-calendar-journal.png',
    'he_one/host': 'preferences-desktop-wallpaper.png',
    'he_one/pcfile': 'folder-remote.png',
    'he_one/log': 'utilities-system-monitor.png',
    'he_one/namesystem': 'server-database.png',
    'he_one/filepermission': 'kwalletmanager.png',
    'he_one/userpermission': 'resource-group.png',
}

FLUENT_DASHBOARD_APP_GROUPS = (
    ('Mission Management', {
        'models': (
            'he_one.models.Mission',
            'he_one.models.Objective',
            'he_one.models.MissionObjectives',
        ),
    }),
    ('Mailbox Management', {
        'models': (
            'he_one.models.Mailbox',
            'he_one.models.Message',
        ),
    }),
    ('Host Management', {
        'models': (
            'he_one.models.Host',
            'he_one.models.NameSystem',
            'he_one.models.PCFile',
            'he_one.models.FilePermission',
            'he_one.models.Log',
            'he_one.models.UserPermission',
            'he_one.models.Task',
        ),
    }),
    ('Administration', {
        'models': (
            'django.contrib.auth.*',
            'django.contrib.sites.*',
            'registration.*',
            'he_one.models.UserProfile',
        ),
    }),
    #('Hacker\'s Edge', {
    #    'models': ('he_one.*',),
    #}),
    ('Applications', {
        'models': ('*',),
        'module': 'AppList',
        'collapsible': True,
    }),
)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.