R
Railway

✋|help

Django Railway admin console

CCoolCheetah9/10/2023
Hi!

I've had a really good time using Railway thus far, sea-change from setting up an EC2 instance for my Django app. I've been able to deploy to Railway and the endpoints work fine. It's just that the admin console on my app does not.

Based on my searches in the discord, I installed the railway cli, linked it with the project, and am now running runserver locally. Same issue with not being able to go to the admin console. Here's the logs:
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

[10/Sep/2023 19:16:31] "GET / HTTP/1.1" 404 179
[10/Sep/2023 19:16:31] "GET /favicon.ico HTTP/1.1" 404 179
[10/Sep/2023 19:16:35] "GET /admin HTTP/1.1" 301 0
[10/Sep/2023 19:16:35] "GET /admin/ HTTP/1.1" 302 0
[10/Sep/2023 19:16:35] "GET /admin/login/?next=/admin/ HTTP/1.1" 500 145


It's not clear to me why this is. I have a railway.json in my project, per the django template. Would anyone have any pointers/places to look? Thanks!
CCoolCheetah9/10/2023
cdabaea8-43dd-4022-9a65-cb266054c331
Mmi1knc0okies9/10/2023
if you are running the server locally and you cannot get to it from localhost:8000/admin then you must of deleted the path in your urls.py

Looking for more? Join the community!