createsuperuser with sqlite

letto4135HOBBY

a year ago

I have a low priority django app that just uses a sqlite db instead of postgres so I have a volume attached to my service for it.

Locally I have linked the service, but when I try and run railway run python [manage.py](manage.py) createsuperuser I get errors.

django.db.utils.OperationalError: unable to open database file

Far as I can tell there is no way to run anything directly on the service, which really sucks because that seems to be why this isn't working.

0 Replies

letto4135HOBBY

a year ago

2299c72c-3f0b-4b23-9a78-e606aad6bd60


a year ago

Far as I can tell there is no way to run anything directly on the service, which really sucks because that seems to be why this isn't working.
Correct, thats why its always best to go with postgres


letto4135HOBBY

a year ago

I have no need for a full on database though and don't really want to pay for one when all I need is sqlite.


a year ago

then your app would need to be able to create its own superuser account


a year ago

some kind of logic that creates a superuser from environment variables if a superuser account doesnt already exist


letto4135HOBBY

a year ago

Ahhhh yeah I’ve done that once before… Forgot about that. Thanks

Hey while you’re here… The $5 plan specifies it comes with $5 of usage, does the $20 plan come with $20 of usage or $5?


a year ago

it doesn't come with any usage 😬


letto4135HOBBY

a year ago

It says all hobby plan features though and hobby plan says $5 included…


a year ago

yeah it's a bit misleading depending on how you interpret that sentence


letto4135HOBBY

a year ago

Yeah seems like a pretty big gray area there… Might want to reword it or specify it somehow for legalese purposes..


a year ago

personally I don't regard credits as a feature


a year ago

but yeah definitely could be worded better


letto4135HOBBY

a year ago

I found a comment on this thread
https://help.railway.app/feedback/allow-ssh-access-to-containers-via-cli-e4985f6f
that say that ability to connect directly to the containers is planned, any idea when it might come about?

You're in on that thread too 😮


a year ago

no ETA sorry