Did you run python manage.py migrate on your dev server? And create a super user (python manage.py createsuperuser)
On Wed, May 16, 2018 at 8:06 AM Stephen Farry <[email protected]> wrote: > Hi All, > > I have a peculiar issue with the admin on Django. Using the Django > development server, I can use the admin without any issues at all. However, > when I deploy it on the server, I still get the admin page, but when I try > to log in I get a 404 error. I reduced this back to the tutorial, but I > still get this with any username/password (with DEBUG is True) > Page not found (404) > Request Method: POST > Request URL: > https://themovieroom.co.uk/mysite/admin/login/?next=/mysite/admin/ > > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: > > 1. ^admin/ > 2. polls/ > > The current path, login/, didn't match any of these. > > You're seeing this error because you have DEBUG = True in your Django > settings file. Change that to False, and Django will display a standard > 404 page. > > > This seems to be the same whatever sql database I get, and I suspect is a > server side problem, but I'm not sure where to look. Let me know any > further information would help. Thanks for any help you can provide. > > Cheers, > Stephen > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/a5170810-329f-440b-bc30-64a89d15a8aa%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a5170810-329f-440b-bc30-64a89d15a8aa%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CAE-E-_3NyLJ2zy1cFMR7rM3DRnjoZ%2BkAcyPC9PL33xToPjXE3A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

