-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to disable get_current_site #11
Comments
I think this is not a problem with |
@hawi74 SITE_ID was disabled because I'm processing multiple domains with this snippet
|
@theromis this is probably because you are stripping the port while Django's get_current_site function never does it. I highly recommend that you use this function as well, instead of directly accessing Site model. You will also have to include the port in your Site instance. Please let me know if that helps. |
@hawi74 Sorry for posting wrong code snippet, here is my actual code used in project:
|
@theromis are you running a single Django app instance that handles multiple domains or separate instance for each domain? Have you tried creating a Site instance for the domain that causes the issue? |
@hawi74 Yes, it handles about 4 different domains and it have them in sites db. rest of it in this snippet, I need different domains to handle different localizations as well. |
getting issue because have to use restful api by IP, in some countries my domain is not resolvable (don't know why)
when requested by IP getting this backtrace:
I think at least wrap it in
try
should be useful featureThe text was updated successfully, but these errors were encountered: