Is there a way to change the url to open the admin site in django? I don't want to use the default /admin url. I am new to django so please try giving a bit more detailed information.
Go under Settings and then click on “Permalinks” and change your URL under “Change wp-admin login”.
Login to your ManageWP Dashboard. In the left navigation menu, click on the site you changed the login URL for. Click “Options”. Change the “Website Admin URL” option from …/wp-admin/ to …/login/ (or whatever you changed it to).
Change a site address in the new SharePoint admin center To open the details pane, select the site name. On the General tab, under URL, select Edit. Enter the new site address, and then select Save.
In urls.py, change the line that reads:
(r'^admin/(.*)', admin.site.root),
to something like:
(r'^new_admin/(.*)', admin.site.root),
so now instead of http://example.com/admin you'd use http://example.com/new_admin
Sure, the file urls.py in the root of your project maps URLs to handlers. Just change the line
(r'^admin/', include(admin.site.urls)),
more from Django tutorial
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With