Smack | DM FOR NODE RENT
Smack | DM FOR NODE RENT
RRailway
Created by Smack | DM FOR NODE RENT on 3/14/2024 in #✋|help
wkhtmltopdf / qtwebkit
f0d00a68-5db3-4665-bf82-a4919d539271
4 replies
RRailway
Created by Smack | DM FOR NODE RENT on 1/19/2024 in #✋|help
Django | python manage.py flush
That worked great. Way easier than I expected. Thanks for the blazing fast support @Brody
13 replies
RRailway
Created by Smack | DM FOR NODE RENT on 1/19/2024 in #✋|help
Django | python manage.py flush
Aah, I see. I'll try setting that up
13 replies
RRailway
Created by Smack | DM FOR NODE RENT on 1/19/2024 in #✋|help
Django | python manage.py flush
Ok, I tried it. I get some error that it is unable to find my module "daphne". I also tried the same command over on my dockerized environment running locally, and the command works immediately (I ran this directly via the terminal window of the container inside the Docker App) Error:
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'daphne'
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'daphne'
13 replies
RRailway
Created by Smack | DM FOR NODE RENT on 1/19/2024 in #✋|help
Django | python manage.py flush
Oh cool. I'll try that and get back to you
13 replies
RRailway
Created by Smack | DM FOR NODE RENT on 1/19/2024 in #✋|help
Django | python manage.py flush
f0d00a68-5db3-4665-bf82-a4919d539271
13 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Thanks for all the help @Brody 🙂
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
and for potentially helping future developers with similar/same issue. TLDR: 1. React Vite is client side, so you will need to use a public network url to access your backend when doing API calls. 2. Set up django with gunicorn 3. you dont necessarily need the "PORT" variable set on the backend, since gunicorn handles it. And finally my resolution for the 'communication' between them was that I hadn't added the backend public url as an authorized redirect url in the Google Console. So my authentication stopped half way.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Oh yeah, something I'd like to ask. Since I now have a public network url for my backend, how do I keep that inaccessible for other users in the future? I obviously don't want people to be able to open the admin panel for example, or even try and open the url.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
One more re-deploy now after fixing some CORS-issues and we might be good! (except all the other 1k errors and security settings) lol.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Wooo, communication!
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
not sure what differs between this and my local development though, since it works there.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
I mean, it's not a misconfiguration in Railway on my end hehe. I was thinking I might have misunderstood it. Somehow the google login fails, or rather it fails half of the authentication after receiving the authentication code.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Ok, it's not a railway issue. I tested from Thunderclient now and just sent a random API request and it does respond.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
hmm
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Alright. Removed the port, added allowed hosts and logging for gunicorn. still no response to my actions on the frontend, gmm
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
on the backend.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Great. The "PORT" env variable that I set to 8000 would not impact this right?
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
in my api requests from the frontend
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Right. And the 443, I don't need to include that either right, I'll just exclude the port all together?
66 replies