Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ python manage.py runserver
```


### Sample data
## Sample data
Sample data can be found [here](https://drive.google.com/file/d/1fn08rJJTranGAVpBvo4zDyMEdU4csL1_/view?usp=sharing)
68 changes: 28 additions & 40 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
# Application definition

INSTALLED_APPS = [
'baton',
'jet.dashboard',
'jet',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
Expand Down Expand Up @@ -155,43 +156,30 @@
BATON = {
'SITE_HEADER': '<img src="https://i.imgur.com/RCeabui.png" width="180">',
'SITE_TITLE': 'LinkedOut',
'INDEX_TITLE': 'Site administration',
'SUPPORT_HREF': 'mailto:khoahockithuatmc@gmail.com',
'COPYRIGHT': 'Copyright © 2020 LinkedOut</a>', # noqa
'POWERED_BY': '<a href="https://www.otto.to.it">Otto srl</a>',
'CONFIRM_UNSAVED_CHANGES': True,
'SHOW_MULTIPART_UPLOADING': True,
'ENABLE_IMAGES_PREVIEW': True,
'CHANGELIST_FILTERS_IN_MODAL': True,
'MENU_ALWAYS_COLLAPSED': False,
'MENU_TITLE': 'Menu',
'GRAVATAR_DEFAULT_IMG': 'identicon',
'MENU': (
{'type': 'title', 'label': 'main', 'apps': ('auth', )},
{
'type': 'app',
'name': 'auth',
'label': 'Authentication',
'icon': 'fa fa-lock',
'models': (
{
'name': 'user',
'label': 'Users'
},
{
'name': 'group',
'label': 'Groups'
},
)
},
{ 'type': 'title', 'label': 'Contents', 'apps': ('flatpages', ) },
{ 'type': 'model', 'label': 'Pages', 'name': 'flatpage', 'app': 'flatpages' },
{ 'type': 'free', 'label': 'Relax', 'url': 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'perms': ('flatpages.add_flatpage', 'auth.change_user') },
{'type': 'free', 'label': 'Relaxing', 'default_open': False, 'icon': 'fa fa-puzzle-piece', 'children': [
{'type': 'free', 'label': 'Tetris',
'url': 'https://tetris.com/play-tetris/'},
{'type': 'free', 'label': 'Guess what is this',
'url': 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'},
]},
),
'INDEX_TITLE': 'Admin',
}

JET_THEMES = [
{
'theme': 'green',
'color': '#44b78b',
'title': 'Green'
},
{
'theme': 'light-violet',
'color': '#a464c4',
'title': 'Light Violet'
},
{
'theme': 'light-blue',
'color': '#5EADDE',
'title': 'Light Blue'
},
{
'theme': 'light-gray',
'color': '#222',
'title': 'Light Gray'
}
]
JET_CHANGE_FORM_SIBLING_LINKS = True
JET_SIDE_MENU_COMPACT = True
3 changes: 2 additions & 1 deletion backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
url(r'^redoc/$', schema_view.with_ui('redoc',
cache_timeout=0), name='schema-redoc'),
path('admin/', admin.site.urls),
path('baton/', include('baton.urls')),
path('jet/', include('jet.urls')),
path('jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),
path('api/', include('app.urls')),
]

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ mysqlclient==2.0.1
djangorestframework==3.11.1
django-cors-headers==3.4.0
drf-yasg==1.17.1
django-baton==1.10.8
r-django-jet==2.0.9