R
Railway7mo ago
mohd

hi i have error with my proj in your site can you help the delopy is donr but i cant open the site

https://sdk-site-production.up.railway.app/ can i contact with any one of the support so he can help me
25 Replies
Percy
Percy7mo ago
Project ID: 0aea055f-ae86-4a34-bd15-f169c0c2a1ac
mohd
mohd7mo ago
0aea055f-ae86-4a34-bd15-f169c0c2a1ac this is the id iam using django
mohd
mohd7mo ago
GitHub
GitHub - mohammedalsamki/SDk-Site
Contribute to mohammedalsamki/SDk-Site development by creating an account on GitHub.
Brody
Brody7mo ago
mohd
mohd7mo ago
how can i do it ? ? here it is Operations to perform: Apply all migrations: accounts, admin, app, auth, contenttypes, course, payments, quiz, result, sessions Running migrations: No migrations to apply. ? so ? no one will answer ?
Brody
Brody7mo ago
this is community support, please be patient please read this docs page https://docs.railway.app/guides/fixing-common-errors
mohd
mohd6mo ago
how can i add it i am using django
Adam
Adam6mo ago
Please read the docs page Brody listed
mohd
mohd6mo ago
i did pro but what port and host should i add to the variabales ?
Adam
Adam6mo ago
No description
mohd
mohd6mo ago
is it Like this Host = 0.0.0.0 Port = PORT ? with ` or without
Adam
Adam6mo ago
No. Please read the docs page
mohd
mohd6mo ago
but they didnt provide me with any port
Adam
Adam6mo ago
That's right,
No description
mohd
mohd6mo ago
[Region: us-west1] ========================= Using Detected Dockerfile ========================= context: 94ff7705955ba8eb2fe612d890ea2ac3 PORT variable must be integer between 0 and 65535 i got this error
Adam
Adam6mo ago
Do not set the port environment variable
mohd
mohd6mo ago
so just the host ?
Adam
Adam6mo ago
No, don't set either
mohd
mohd6mo ago
so what i do ?
Adam
Adam6mo ago
Run your app with gunicorn, as it says in the docs
mohd
mohd6mo ago
how can i run it is there a shell ?
Adam
Adam6mo ago
No, set your start command in Railway's settings to the gunicorn start command
mohd
mohd6mo ago
where i can find that in the setting ?
Adam
Adam6mo ago
in the service settings
mohd
mohd6mo ago
ok i have to edit this to my app name gunicorn main:app or leav it as it is ? i edit this to the start comand and it work "startCommand": "gunicorn SMS.wsgi:application", but the style didnt load i used python3 manage.py collectstatic and it the same the style didnt work any idea ? /usr/local/lib/python3.10/site-packages/whitenoise/base.py:115: UserWarning: No directory at: /app/app/staticfiles/ warnings.warn(f"No directory at: {root}") these are the static setting STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') 'whitenoise.middleware.WhiteNoiseMiddleware', # WhiteNoise after SecurityMiddleware STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' the style is working now i see this ** Forbidden (403) CSRF verification failed. Request aborted. More information is available with DEBUG=True.