mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-28 16:25:44 +08:00
Use leaflet for handling of locations in django admin
This commit is contained in:
parent
1fc262a530
commit
166d586fc2
15 changed files with 95 additions and 4 deletions
|
@ -87,6 +87,8 @@ INSTALLED_APPS = [
|
|||
'subjects',
|
||||
'study_groups',
|
||||
'studygroup_messages',
|
||||
'leaflet',
|
||||
'landmarks',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -225,3 +227,11 @@ SITE_NAME = 'Stud-E'
|
|||
JWT_TOKEN_LIFETIME = 10800
|
||||
ACCESS_TOKEN_LIFETIME = JWT_TOKEN_LIFETIME
|
||||
REFRESH_TOKEN_LIFETIME = 24 * JWT_TOKEN_LIFETIME
|
||||
|
||||
LEAFLET_CONFIG = {
|
||||
'DEFAULT_CENTER': (8.4803, 124.6498),
|
||||
'DEFAULT_ZOOM': 24,
|
||||
'MAX_ZOOM': 20,
|
||||
'MIN_ZOOM': 3,
|
||||
'SCALE': 'both'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue