Skip to content

Commit

Permalink
Enable Django admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Dec 10, 2024
1 parent 5dc74df commit bb81e89
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kolibri_instant_schools_plugin/instant_schools_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from __future__ import unicode_literals
from kolibri.deployment.default.settings.base import *

INSTALLED_APPS = list(INSTALLED_APPS) + ["django.contrib.admin"]

OLD_DB_PATH = os.path.join(conf.KOLIBRI_HOME, 'db.sqlite3')
OLD_HASH_DB_PATH = os.path.join(conf.KOLIBRI_HOME, 'phonehashreverselookup.db')

Expand Down
1 change: 1 addition & 0 deletions kolibri_instant_schools_plugin/kolibri_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


class User(KolibriPluginBase):
root_view_urls = "root_urls"
translated_view_urls = "urls"
untranslated_view_urls = "untranslated_urls"

Expand Down
6 changes: 6 additions & 0 deletions kolibri_instant_schools_plugin/root_urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.contrib import admin
from django.urls import path

urlpatterns = [
path('admin/', admin.site.urls),
]

0 comments on commit bb81e89

Please sign in to comment.