question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use Login System in Production

See original GitHub issue

While I’m able to login to both the admin site and my own site login system while using dev configuration, I receive a 500 error every time I attempt to log in while using production config. Every time, I receive this exception:

`Exception Type: NoReverseMatch at /admin/login/

Exception Value: Reverse for ‘home’ with arguments ‘()’ and keyword argumen= ts ‘{}’ not found. 0 pattern(s) tried: [] `

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
pydannycommented, Jun 20, 2017

Does your URL start with https? Because if it doesn’t, you will have problems in production.

3reactions
pydannycommented, Jun 20, 2017

Django and especially Cookiecutter Django are designed to break if run as http in production. We purposefully do this because it’s a security issue.

Figure out why the site isn’t loading as https. Once that’s addressed, your current problem will mostly likely go away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't login after moving site to production server - MSDN
I'm using the ASP.NET membership functionality for my site with forms authentication. It works fine locally, but when I transferred the site to ......
Read more >
Login issues to production server | SAP Community
I get the following error while logging into the production server especially between 4PM and 7 Pm of the day through VPN connection....
Read more >
Users unable to login to production app - Need help
Looks like a server issue. Backend is fine and new sign ups are able to login and access the app but existing users...
Read more >
Security problem Users could not Login to Production ...
Security problem Users could not Login to Production Environment ... I created an application with security on group level, everything is good.
Read more >
Symfony authentication - can't get past login page in production
It seems as though when it is submitting to login_check it redirects straight back to /login. I've tried clearing and warming the production...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found