Skip to content

App not launching after adding domain #454

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

Open
nandinigthub opened this issue Feb 15, 2025 · 22 comments
Open

App not launching after adding domain #454

nandinigthub opened this issue Feb 15, 2025 · 22 comments

Comments

@nandinigthub
Copy link

No description provided.

@Yadavanurag13
Copy link

@nandinigthub have u put correct domain in etc/hosts ?

@nandinigthub
Copy link
Author

I did as mentioned in the documentation.

@Yadavanurag13
Copy link

It was working for me. may be you have made some mistake.

@hardcrystal
Copy link

hardcrystal commented Feb 17, 2025

Have the same problem, mention what my mistake is #

Image

Image

Image

Image

Image

@Yadavanurag13
Copy link

try once test.zango.com/login @hardcrystal

@nandinigthub
Copy link
Author

@hardcrystal Did it work? Didn't work for me.

@hardcrystal
Copy link

@Yadavanurag13 @nandinigthub Nope it did not work

Image

Image

@nandinigthub
Copy link
Author

Image
Image
Image
Image

@Yadavanurag13 can you please explain in steps where i am doing wrong ?

@Yadavanurag13
Copy link

Yadavanurag13 commented Feb 18, 2025

@nandinigthub Have you commented IP 0.0.0.0 ? Why

@hardcrystal
Copy link

@Yadavanurag13 have you tried opening your app using your domain in recent times if yes can you mention the steps that you did or was there any change made to the steps that were used to create the domain?

@DevilsAutumn
Copy link
Contributor

DevilsAutumn commented Feb 19, 2025

@hardcrystal @nandinigthub In your etc/hosts file the line: 0.0.0.0 hello.zango.com is starting with a "#" which means its is being interpreted as a comment. Please try removing it, It will work.

@hardcrystal
Copy link

@DevilsAutumn, If you can see my etc/hosts file, I have added two different domains, one starting with a '#' and the other without it. still it didn't work for either of the domains

@DevilsAutumn
Copy link
Contributor

@hardcrystal Can you try putting 127.0.0.1 once instead of 0.0.0.0 ?

@hardcrystal
Copy link

@DevilsAutumn Got a 404 error

Image

Image

@DevilsAutumn
Copy link
Contributor

@hardcrystal Cool, it means its working. If you made your complete app using this tutorial. You should be able to access your app on localhost:8000/hello/world as show here.

@hardcrystal
Copy link

@DevilsAutumn hold as per the tutorial, after creating domain the browser should show this, right?

Image

but anyway ill try what you have mentioned and get back to you

@hardcrystal
Copy link

@DevilsAutumn @nandinigthub I tried to put 127.0.0.1 instead of 0.0.0.0 for a domain in a different app "hello_world" which i created on 17-Feb is working, but this step is not working for a domain in another app "firstapp" for which i changes its domain from test.ab.com to test.zango.com later in day on 17-Feb. ""My only way to explain this"" is, I need wait for roughly 2 days for any to work.

I can back this claim because I made the python files "views.py, urls.py" and json file "policies.json" for the app "firstapp" inside "workspaces" folder on 17-Feb so when i tried to 'Sync Policy' on 17-Feb it didn't work but today i was able to sync it, I tried to do it for the app "hello_world" today(19-Feb) I am not able to 'Sync Policy'

So i would need to wait another 2 day for the to sync policy in "hello_world" app and then i might get the same page as shown in the tutorial.

If i am wrong please mention my mistakes.

Image

Image

@DevilsAutumn
Copy link
Contributor

@hardcrystal are you getting any error on 'sync policy'?

@hardcrystal
Copy link

@DevilsAutumn Yes as I mentioned above, not able to 'sync policy' "HelloWorldViewAccess" for "hello_world" app, for which I created the files mentioned in the tutorial today(19-Feb) but able to do 'sync policy' "firstappviewAccess" for "firstapp" app today for which I created the files mentioned in the tutorial on 17-Feb, see the image below

Image

Image

Image

Image

@DevilsAutumn
Copy link
Contributor

Its definitely not about the day on which the file was created, I'd recommend checking if :

  • all the configurations are correct
  • modules is registered
  • celery is up and running

This problem might also be related to windows. If the issue still persist, let us know, we'll get on to this.

@hardcrystal
Copy link

hardcrystal commented Feb 19, 2025

@nandinigthub @Yadavanurag13 @DevilsAutumn YES, after registering the modules in settings.json, I was able to perform the 'sync policy' process and obtained the expected as mentioned in the tutorial. So, the module must be registered after creating policies.json for everything else to fall into place

Image

@nandinigthub
Copy link
Author

@Yadavanurag13 @DevilsAutumn @hardcrystal worked for me also, thanks everyone:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants