misc: deprecate unused django admin app (#84884)
gitea/hobo/pipeline/head This commit looks good
Details
gitea/hobo/pipeline/head This commit looks good
Details
This commit is contained in:
parent
532e61f488
commit
383de29796
|
@ -1,2 +0,0 @@
|
|||
# noqa pylint: disable=unused-import
|
||||
from django.contrib import admin
|
|
@ -37,7 +37,6 @@ EMAIL_FROM_ALLOWED_DOMAINS = []
|
|||
# Application definition
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path, re_path
|
||||
|
||||
from .applications.urls import urlpatterns as applications_urls
|
||||
|
@ -31,8 +30,6 @@ from .theme.urls import urlpatterns as theme_urls
|
|||
from .urls_utils import decorated_includes
|
||||
from .views import admin_required, health_json, hobo, home, login, login_local, logout, menu_json
|
||||
|
||||
admin.autodiscover()
|
||||
|
||||
urlpatterns = [
|
||||
path('', home, name='home'),
|
||||
re_path(r'^sites/', decorated_includes(admin_required, include(environment_urls))),
|
||||
|
@ -48,7 +45,6 @@ urlpatterns = [
|
|||
path('api/health/', health_json, name='health-json'),
|
||||
re_path(r'^menu.json$', menu_json, name='menu_json'),
|
||||
re_path(r'^hobos.json$', hobo),
|
||||
re_path(r'^admin/', admin.site.urls),
|
||||
]
|
||||
|
||||
# add authentication patterns
|
||||
|
|
Loading…
Reference in New Issue