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
Project ID:
0aea055f-ae86-4a34-bd15-f169c0c2a1ac
0aea055f-ae86-4a34-bd15-f169c0c2a1ac
this is the id
iam using django
this is the github link https://github.com/mohammedalsamki/SDk-Site
GitHub
GitHub - mohammedalsamki/SDk-Site
Contribute to mohammedalsamki/SDk-Site development by creating an account on GitHub.
please send your deployment logs https://bookmarklets.up.railway.app/log-downloader/
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 ?
this is community support, please be patient
please read this docs page https://docs.railway.app/guides/fixing-common-errors
how can i add it i am using django
Please read the docs page Brody listed
i did pro but what port and host should i add to the variabales ?
is it Like this
Host =
0.0.0.0
Port = PORT
?
with `
or withoutNo. Please read the docs page
but they didnt provide me with any port
That's right,
[Region: us-west1]
=========================
Using Detected Dockerfile
=========================
context: 94ff7705955ba8eb2fe612d890ea2ac3
PORT variable must be integer between 0 and 65535
i got this error
Do not set the port environment variable
so just the host ?
No, don't set either
so what i do ?
Run your app with gunicorn, as it says in the docs
how can i run it is there a shell ?
No, set your start command in Railway's settings to the gunicorn start command
where i can find that in the setting ?
in the service settings
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.