Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8078005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:39:18+00:00 2026-06-05T15:39:18+00:00

I am sure many Django developers must come across this issue when using the

  • 0

I am sure many Django developers must come across this issue when using the social-auth.
Initially when you develop it, you would like to test it on your local server, hence you would redirect the domainname in your etc/hosts.

I came along this in the documentation:

https://github.com/omab/django-social-auth#facebook

If you define a redirect URL in Facebook setup page, be sure to not
define http://localhost:8000 because it won’t
work when testing. Instead I define http://myapp.com and setup a
mapping on /etc/hosts or use dnsmasq.

From my understanding you can not define any ports in /etc/hosts.

Hence defining this entry there:

127.0.0.1       example.com

still doesn’t hit my Django server that runs at 127.0.0.1:8000.

How do you guys do this?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:39:19+00:00Added an answer on June 5, 2026 at 3:39 pm

    I have solved the redirection problem by following the steps here: https://serverfault.com/questions/397364/how-to-setup-named-virtual-hosts-in-nginx

    In short, you need an entry in /etc/hosts as I have above plus nginx proxy between.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure this is the kind of problem other have solved many times before.
I am not professional programmer so i can not be sure about this.How many
Since I'm sure many people have different standard, I've made this post a community
I am sure many of you would have seen Jamie's Receipe app. In that,
I had no issue with Django + uWSGI + Cherokee. BUt I would like
I'm sure many of you have visited amazon.com. When you do, amazon creates a
I am not sure if many of you are familiar with the box2d physics
Many of my views fetch external resources. I want to make sure that under
Many GDI+ classes implement IDisposable, but I'm not sure when I should call Dispose.
How can i make sure my file serving is reliable and scalable? How many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.