If you want to create a separate URL for Django Admin while keeping /admin/ as it is.
Example: Create it at /staff/
1. staff/__init__.py
from django.contrib.admin import AdminSite
site = AdminSite(name='staff')
Main urls.py
from staff import site as staff_site
...
url('^staff/', include(staff_site.urls)),
Admin.py for each model
from staff import site as staff_site
@admin.register(MyModel)
@admin.register(MyModel, site=staff_site)
class MyModelAdmin(admin.ModelAdmin):
...
...
Comments