Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nandooliveira committed Jun 27, 2019
1 parent e96166a commit 058980f
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 30 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pillow = "==6.0.0"
psycopg2 = "==2.7.6.1"
psycopg2-binary = "==2.8.1"
pytz = "==2018.7"
django-suit = "*"

[requires]
python_version = "2.7"
67 changes: 37 additions & 30 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions easy/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
# Application definition

INSTALLED_APPS = [
'suit',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
Expand Down Expand Up @@ -136,3 +137,33 @@

STATIC_URL = '/static/'
STATIC_ROOT= os.path.join(PROJECT_ROOT,'static/')

# Django Suit configuration example
SUIT_CONFIG = {
# header
'ADMIN_NAME': 'Easy Experiments',
# 'HEADER_DATE_FORMAT': 'l, j. F Y',
# 'HEADER_TIME_FORMAT': 'H:i',

# forms
# 'SHOW_REQUIRED_ASTERISK': True, # Default True
# 'CONFIRM_UNSAVED_CHANGES': True, # Default True

# menu
# 'SEARCH_URL': '/admin/auth/user/',
# 'MENU_ICONS': {
# 'sites': 'icon-leaf',
# 'auth': 'icon-lock',
# },
# 'MENU_OPEN_FIRST_CHILD': True, # Default True
# 'MENU_EXCLUDE': ('auth.group',),
# 'MENU': (
# 'sites',
# {'app': 'auth', 'icon':'icon-lock', 'models': ('user', 'group')},
# {'label': 'Settings', 'icon':'icon-cog', 'models': ('auth.user', 'auth.group')},
# {'label': 'Support', 'icon':'icon-question-sign', 'url': '/support/'},
# ),

# misc
# 'LIST_PER_PAGE': 15
}
Empty file modified manage.py
100644 → 100755
Empty file.

0 comments on commit 058980f

Please sign in to comment.