Problem: django url Admin/ is autmatically coverted to admin/

26 views
Skip to first unread message

Devender Kumar

unread,
Aug 25, 2018, 2:28:16 PM8/25/18
to Django users
i have separate Admin app and using admin also but when I am accessing Admin/trips is accessed and Admin is not accessed

Jason

unread,
Aug 25, 2018, 5:43:29 PM8/25/18
to Django users
if you have your urls file like 


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

that sends everything with the url somesite.com/admin to the django admin.

either remove the django admin app and replace with your own, or use a different path

Andréas Kühne

unread,
Aug 27, 2018, 3:43:48 AM8/27/18
to django...@googlegroups.com
Please remember that url's are not case sensitive - even though python is. So /admin/ and /Admin/ are the same path

Regards,

Andréas


Den lör 25 aug. 2018 kl 20:27 skrev Devender Kumar <dev1...@gmail.com>:
i have separate Admin app and using admin also but when I am accessing Admin/trips is accessed and Admin is not accessed

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1cef27b1-650a-4be4-ae9f-82725efb92c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages