Тёмный

Deploy Django App to Railway in 5 Minutes 

Desphixs
Подписаться 14 тыс.
Просмотров 33 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 186   
@alessandroolivares714
@alessandroolivares714 2 года назад
damn it bro, the only video in all youtube that managed to explain to the letter the deployment of the app in railway without problems. thank you very much bro
@desphixs
@desphixs 2 года назад
You're very much welcomed brother, I'm happy to help ❤️
@zackplauche
@zackplauche Год назад
@@desphixs Great vid!!!
@sidds09
@sidds09 2 года назад
oh man.. I just tried .. it is so simple. wow thanks a lot.
@desphixs
@desphixs 2 года назад
Bro, it's so easy to deploy project, I'm wowed, they are the best I've seen so far
@OrientalMelodies2010
@OrientalMelodies2010 Год назад
That was exactly what I was looking for... Thanks for the amazing tutorial!
@desphixs
@desphixs Год назад
Happy to help ❤️
@andrecruz8197
@andrecruz8197 Год назад
VOCÊ É UMA LENDA. CHEERS FROM BRAZIL!!!
@caricatureadda3867
@caricatureadda3867 2 года назад
Amazing video brother, clear explanation Thank you!
@desphixs
@desphixs 2 года назад
Thanks alot pal, I'm happy to help 👍🏻❤️
@bariborsaturday
@bariborsaturday Год назад
Nice and clear tutorial, although the static files didn't work in my case. I had to add the WhiteNoise Middleware and all went well.
@desphixs
@desphixs Год назад
Glad it helped! ;)
@abdulkadirduran6297
@abdulkadirduran6297 Год назад
me too. the static files did not work
@advanceprogramming225
@advanceprogramming225 Год назад
same as to u. plase help us @desphixs
@godzilla870
@godzilla870 Год назад
great vid helped me get my project up thank you
@aydnylmaz6161
@aydnylmaz6161 Год назад
Allah razı olsun 10 gündür uğraşıyordum
@desphixs
@desphixs Год назад
Artık mücadele etmediğin için mutluyum dostum. Herhangi bir sorunun olursa bana ulaş
@aydnylmaz6161
@aydnylmaz6161 Год назад
@@desphixs çok teşekkürler, tamamdır 🙏
@Inggaudisudaka
@Inggaudisudaka Год назад
Thanks! I did everything you said and it worked!
@desphixs
@desphixs Год назад
You're welcome!
@Marcompelo
@Marcompelo 2 года назад
Amazing video! Excelent explanation. Thank you!
@desphixs
@desphixs 2 года назад
You're welcome, I'm happy to help ❤️
@Andy009Duncan
@Andy009Duncan Год назад
Thank you for creating this excellent video.
@desphixs
@desphixs Год назад
Glad you enjoyed it!
@valentinsuyarov7345
@valentinsuyarov7345 Год назад
Thanks you helped me a lot
@desphixs
@desphixs Год назад
Glad I could help.
@byanc4573
@byanc4573 Год назад
Very good video, thanks for sharing your knowledge.
@desphixs
@desphixs Год назад
thanks alot for the comment
@leahgrace3426
@leahgrace3426 3 месяца назад
hi, thank you for all your videos, they are so helpful. wanted to ask how would you deploy a fullstack application with both django and react? would you deploy them both on the same platform? what platform would you use? thank you sir
@desphixs
@desphixs 3 месяца назад
It depend on the platform you want to use, if you want to use AWS then yes, you can deploy the both on the same platform. Deploy Django on EC2 and react AWS Amplify
@leahgrace3426
@leahgrace3426 3 месяца назад
@@desphixsare there any free options like railway? if im not wrong AWS will require some cost? could you make a video on this one day sir, would be much appreciated
@mighty-mamad9475
@mighty-mamad9475 Год назад
U r tooooo good man ❤
@desphixs
@desphixs Год назад
thanks alot buddy, really means alot
@godfirstwilfred3900
@godfirstwilfred3900 Год назад
Thank you for the turial. I followed you deligently but mine didn't work. In my deploy log, it show: Operations to perform: Apply all migrations: accounts, admin, auth, contenttypes, sessions Running migrations: No migrations to apply. /bin/bash: line 1: gunicorn: command not found please, this is my first time deploying a webapp, I will appreciate helping me out.
@desphixs
@desphixs Год назад
Let start by checking if you have gunicorn in your requirements.txt file. Do you?? Another thing that might cause that migration error, is deleting your migration folder or Messing with it before deploying? If that's the case clone your project onto your local PC and try running it after making migration and migrate. One more question. Did you site get deployed, like: can you visit your site now using a domain name?? Before seeing the migration error??
@adrianmin713
@adrianmin713 8 месяцев назад
Does the web app still maintain the crud functionality if u deploy like this? Or do u have to set up a new database on railway? Awesome video. I learned a lot.
@desphixs
@desphixs 8 месяцев назад
Yes, it will still maintain the CRUD functionality after deployment, but to preserve your database permanently, you will need to provision a live database
@raju_bugude
@raju_bugude Год назад
Failed to load resource: the server responsed with a status of 503 (). i got his error
@desphixs
@desphixs Год назад
When do you get this error? While trying to access the site? you need to check your deployment log to pinpoint the error
@ayatcasuals2805
@ayatcasuals2805 2 года назад
Hey man. Thanks for this awesome tutorial! But my static files are not loading in the railway app. Can kindly show me how your {% url 'link' %} i set in templates?
@desphixs
@desphixs 2 года назад
My appologies for late reply, if you have not fixed this yet then let's debug it together. 1. For the url link you are talking about, {% url 'name_of_url' %} NOTE: name of url is the path(..., name="name_of_url") 2. Have you run the command *python **manage.py** collectstatic* 3. Are your static root and static url configured in settings.py and project's urls.py Let me know if there is another issue okay?
@ghorzang2681
@ghorzang2681 Год назад
I Host my Project into railway but when I Upload files from my PC the link not find, So where are store my dynamic images and files?
@desphixs
@desphixs Год назад
You need to host your static and media files somewhere else, that's a must or else whenever you re-deploy your site, all your media files (dynamic images and files) would get deleted again.
@victoriduh3130
@victoriduh3130 2 года назад
Do I need to include a static file if it is just an api?
@techwithdenzel
@techwithdenzel Год назад
Hello, thank you for this...
@desphixs
@desphixs Год назад
You're welcome ❤️
@ITSADREX
@ITSADREX Год назад
I endded up getting "Application failed to respond" page what do i do to fix it please
@desphixs
@desphixs Год назад
Check your deploy and build logs the error should be there
@versatg5722
@versatg5722 Год назад
How long does it last. After that hours is runned down
@desphixs
@desphixs Год назад
20 days approximately.
@vinayagamv1745
@vinayagamv1745 2 года назад
Hi, it is deployed but my css is not working i don't know why..
@desphixs
@desphixs 2 года назад
You need to run collect static command before pushing to GitHub and make sure you static url, dirs and root are configured well in the settings.py
@grimma795
@grimma795 2 года назад
It is possible make working media files in deploying on railway?
@desphixs
@desphixs 2 года назад
Hello there, I'm finding it difficult to understand what you meant, do you mean, can you upload media files after deploying to railway?
@grimma795
@grimma795 2 года назад
@@desphixs exactly
@Transmogrify-d5h
@Transmogrify-d5h 7 месяцев назад
hey can i Up a project which contains Django+MySql as backend and Angular as frontend using this ?
@abdulrehmanamer4252
@abdulrehmanamer4252 Год назад
There are some stuff missing in my requirements.txt like psycopg2-binary django-etc. How to have it? Or should i type it manually??
@desphixs
@desphixs Год назад
Yes you can type it manually
@jimmycala
@jimmycala Год назад
it didn't work. In anyway, I need more than 500 hrs for free. The error is with Postgresql I think, "connection to server at "127.0.0.1", port 5432 failed: Connection refused". Thanks.
@asifhossain7921
@asifhossain7921 Год назад
Great video. Just a quick question, does railway deletes static files like heroku every 24 hours like static images and sqlite3 database?
@desphixs
@desphixs Год назад
No they don't, it's remain active. But when your 500 free hour runs out, your site get disabled, you won't be able to access it again, till the next month when the 500hr get refilled again. But you can remove that limitations by verifying you account using your credit card, just make sure that: if the app you're hosting isn't that important or it's just for testing then make sure to disable it yourself or you'd run out of 500 hrs Dyno to host other apps or view hosted app till the next month.
@akhibigodspower4044
@akhibigodspower4044 Год назад
Hi @Desphixs I deployed my app but I am getting "gunicorn: error: argument --error-log-file: expected one argument"
@desphixs
@desphixs Год назад
Hello there, I can't see really debug the error if I can't see the full traceback or error log. Share it using pastebin or GitHub gist.
@maurojunior4218
@maurojunior4218 Год назад
Hello, I'm from Brazil. Thanks for the video. In deploy I have the following error message: do you know what it could be? usage: gunicorn [OPTIONS] [APP_MODULE] gunicorn: error: argument --error-logfile/--log-file: expected one argument
@desphixs
@desphixs Год назад
The line of code in your procfile is it correct? Error seems to be coming from there.
@maurojunior4218
@maurojunior4218 Год назад
@@desphixs web: gunicorn projeto_open_top.wsgi --log-file-
@maurojunior4218
@maurojunior4218 Год назад
@@desphixs look, please. Thanks
@huzaifafaheem6382
@huzaifafaheem6382 Год назад
Hello again! I'm having another issue with Railway. When I installed a cloudfare proxy for railway, I keep getting the error: ""SSL handshake failed Error code 525". I tried all the solutions I could find but to no avail. Any help would be appreciated.
@desphixs
@desphixs Год назад
Error code 525 in Cloudflare typically indicates that the SSL handshake between the Cloudflare proxy server and your origin server failed. This error occurs when the SSL certificate on your origin server is either missing, expired, or not configured correctly. Here are a few steps you can take to troubleshoot and resolve the issue: 1. Verify SSL certificate: Double-check that the SSL certificate on your origin server is valid and properly configured. Ensure that the certificate is not expired and matches the domain you are using. 2. Install a valid SSL certificate: If you don't have an SSL certificate installed on your origin server, you'll need to obtain one. You can either purchase an SSL certificate from a trusted certificate authority or use a free SSL certificate provider like Let's Encrypt. 3. Check SSL certificate configuration: Make sure that the SSL certificate is correctly installed and configured on your origin server. Ensure that the private key, intermediate certificates (if any), and the SSL certificate are properly set up. 4. Verify port settings: Ensure that your origin server is correctly configured to listen on the appropriate SSL/TLS port (usually port 443). 5. Firewall and security settings: Check your firewall or security settings to ensure they are not blocking the SSL handshake. Cloudflare connects to your origin server using specific IP ranges, so make sure those are not blocked by any firewall rules. 6. Cloudflare SSL/TLS settings: Double-check your SSL/TLS settings in the Cloudflare dashboard. Make sure you have selected the appropriate SSL mode (Flexible, Full, Full (Strict)) based on your origin server's SSL configuration. 7. Clear browser cache: Sometimes, the error may be caused by a caching issue. Clear your browser cache and try accessing the website again. 8. Contact Cloudflare support: If you've tried the above steps and the issue persists, reach out to Cloudflare support for further assistance. They can help diagnose the problem and provide specific guidance based on your setup. Remember to always backup any configuration files before making changes to your server or Cloudflare settings.
@sidds09
@sidds09 2 года назад
Thanks a lot. very helpful. How to take care of environment variables (.env file).. does it require any setting in railways. assuming I will push it to github with env file.
@desphixs
@desphixs 2 года назад
Railway have this add variable feature, all you need to do is add your variable there e.g there would be two boxes add SECRET_KEY in the first box, then the one beside it add your secret_key_value as easy as that, you can add multiple
@benzouaouimounir9971
@benzouaouimounir9971 Год назад
why is it saying that my github acc is not verified in the railway website?
@desphixs
@desphixs Год назад
Your GitHub account need to be at least 3 months old
@umerkhetab6260
@umerkhetab6260 3 месяца назад
Facing Nixpacks build failed error
@desphixs
@desphixs 3 месяца назад
A couple of things can be causing this error, can you paste your full build log here.
@MOVIEKICKS
@MOVIEKICKS Год назад
Thank you for the video. Does the Django sqlite database get deployed to railway along w/ the app?
@desphixs
@desphixs Год назад
Yes it does, but it gets cleared after some time
@MOVIEKICKS
@MOVIEKICKS Год назад
@@desphixs thank you! Do I need to pay to prevent it from being cleared?
@hassanabuya
@hassanabuya Год назад
Heyy This was a good tutorial keep it up But how can i connect to a database like mysql, am trying but i get (2002, "Can't connect to local server through socket '/run/mysqld/mysqld.sock'(2)")
@desphixs
@desphixs Год назад
it's very easy to connect MySQL, just create and configure the mysql in your django project, then create an instance or database for MySQL in Railway.
@og_ashura
@og_ashura Год назад
if my api key is stored in an environment on github to avoid it being compromised, would it also be accessible on railway when i host it this way?
@desphixs
@desphixs Год назад
If you have stored your API key as an environment variable in a repository on GitHub, it is important to note that environment variables stored in a GitHub repository are not secure. When you push changes to a public GitHub repository, including environment variables, they can be accessed by anyone who has access to the repository or by automated tools that scan for exposed credentials. When you host your application on Railway, the environment variables set in your GitHub repository will not be automatically accessible to your Railway-hosted application. Railway has its own system for managing environment variables, which is separate from the GitHub repository. To securely manage your API key on Railway, you should use the environment variable management feature provided by Railway. This allows you to set environment variables specific to your Railway project and ensures that they are securely stored and accessible only within your Railway deployment. Here's how you can manage environment variables on Railway: Go to your Railway project dashboard. Select your project. Navigate to the "Settings" tab. Look for the "Environment Variables" section. Add your API key as a new environment variable. By managing your environment variables directly within Railway, you can ensure that your API key remains secure and is not exposed in your GitHub repository, I hope this helps.
@og_ashura
@og_ashura Год назад
@@desphixs i can’t seem to be able to successfully open a railway account, i keep being told that I don’t have enough information of me on GitHub and they are trying to make me subscribe to the team package instead
@gubbu8352
@gubbu8352 Год назад
Nixpacks was unable to generate a build plan for this app. How can i fix this error in Railway Buid
@desphixs
@desphixs Год назад
Have you fixed this yet?? A couple of thing might be wrong and if I can't see your code I can't really debug, seems the error is even from railway and not your code. Is it working yet?
@gubbu8352
@gubbu8352 Год назад
@@desphixs Still not working :(
@bera2856
@bera2856 Год назад
greate video bro
@desphixs
@desphixs Год назад
Thanks alot
@mariaeugenia730
@mariaeugenia730 Год назад
Hola, esto lo puedo con pycharm ahi tengo mi proyecto pero cuando quise hacerlo con heroku ya no era gratis y estoy buscando alternativas. Igual es mi primera vez haciendolo. Me ayudarias. Muchas gracias
@desphixs
@desphixs Год назад
Hola amigo, mis más sinceras disculpas por la respuesta tardía. Sí, por supuesto, hay alternativas a heroku, puede utilizar el ferrocarril, su plataforma de alojamiento es mucho más fácil de usar que heroku. railway.app
@huzaifafaheem6382
@huzaifafaheem6382 Год назад
Could someone help me clarify a question? I've successfully deployed my Django App on Railway using SQLite. Now, let's say a user makes a post request that updates the database. Will these changes be reflected in my GitHub repository? In other words, if I make a new push to my GitHub repo and Railway re-deploys, will it recognize that the existing database file is already up to date and avoid replacing it with the outdated one from GitHub?
@desphixs
@desphixs Год назад
Hi there, I'll be helping answer your question today. When you deploy your website to a live server in our case railway, and a user makes a post on the live website, the post data that the user just created does not get saved in your repository and that is because GitHub is not a database system, when you deploy to railway, a "unique & free" database is assigned to your website and all new posts or comments will be saved on that database, now let's say on your live server you have gotten 35 new posts but on your local development server you have only two posts, if you make some changes to your code, push to GitHub, then deploy to railway, remember that "unique & free" database that was assigned to you? It gets deleted and a new database is assigned to the new deployment you just did. To prevent this and always preserve your new data (posts, comment e.t.c) then you need to provision a live database e.g postgresql, connect it to your project and re-deploy. Now you'd notice that, when there is a new post or comment from users, and you make changes to your website and re-deploy, those data does not get deleted again. That's because the new database that you created is no longer for testing purposes, rather for a real website. GitHub is only used for keeping track of your code, it's like a house holding your code and serving it to railway, then railway is reading the codes there and displaying the appropriate pages and functions e.t.c There is still a lot more on this topic and I'll look into make a full comprehensive tutorial explaining the process of deployment in-depthly
@huzaifafaheem6382
@huzaifafaheem6382 Год назад
@@desphixs I see, Thank you very much! Can I somehow download that unique & free database that was assigned to me so that I can manually push it to github?
@desphixs
@desphixs Год назад
@@huzaifafaheem6382 yes you can, but you cannot just directly download the whole db, there is a way to do it, buts it's tricky. The best way I'd recommend is to use django_import_export package, export all the model objects (posts or comments) from the live server, import it in the local server then re-deploy again, now those files would stay there permanently.
@mighty-mamad9475
@mighty-mamad9475 Год назад
Hi bro .. Bro please help me if u can , i got error when i wanna deploy my project in railway .. it says 'Docker build failed ' .. what should i do to fix it ? I really need it😢
@desphixs
@desphixs Год назад
send me your project link if possible, i cannot really tell what is going on. You can also check the error and build log, copy it, paste it in pastebin.com/ and send me the error and build log, so i can debug the issue.
@mighty-mamad9475
@mighty-mamad9475 Год назад
@@desphixs bro it's ur instagram clone project .. But I made small changes in it.. for example, I changed the registration page and the login page, and made some changes in the frontend.. How can I give you the link? Can I give the link to the project in GitHub? Sorry about my english bro btw😅
@tommygung6324
@tommygung6324 Год назад
does this website support websocket connections???
@desphixs
@desphixs Год назад
No, it doesn't
@tommygung6324
@tommygung6324 Год назад
@@desphixs thx for replying... do you any host that support Websocket connection?
@valentinfigueiredo
@valentinfigueiredo 2 года назад
Hey! I have problem, i have a timeout in my logs, related to my .env file. What can I check to see where is my problem?
@desphixs
@desphixs 2 года назад
Have you checked your build logs??
@valentinfigueiredo
@valentinfigueiredo 2 года назад
@@desphixs yes i have timeout, and my staticfiles dont load, and the website is laggy
@desphixs
@desphixs 2 года назад
@@valentinfigueiredo but the website is opening up in the browser right, it's just that it's laggy?? Did you delete your media files before hosting?? To show your static files you need to run the collectstatic command and it's highly recommended that you use an external platform like aws s3 or azure to host your static and media files. Tell me if there is still any problem??
@valentinfigueiredo
@valentinfigueiredo 2 года назад
@@desphixs yes I did it in the .gitignore. No I don’t use external platform for the staticfiles , is it very usefull?
@desphixs
@desphixs 2 года назад
It's up to you mate, if you can afford to start using aws then go for it, else remain with railway's option
@davidmejia9601
@davidmejia9601 2 года назад
escelent video, but what about the database ?
@desphixs
@desphixs 2 года назад
Thanks. You could host your database on AWS and then add the DB url to Railway busing dj_database_url, i also think that railway hosts databases.
@davidmejia9601
@davidmejia9601 2 года назад
@@desphixs thanks, actually I just installed a pg database but I can't deploy psycopg or mysql dependences to my proyect
@roibeardcoughlan9290
@roibeardcoughlan9290 Год назад
Thanks for the great video, unfortunately my cloudinary credentials are crashing it in the logs. Will update if I ever resolve it.
@desphixs
@desphixs Год назад
Fingers crossed! I can help if you need that...
@roibeardcoughlan9290
@roibeardcoughlan9290 Год назад
The error is Improperly Configured. I have tried a lot of fixes but not the right one yet :)
@atharvashah1362
@atharvashah1362 Год назад
Amazing tutorial. Will database Read/write operations work on the deployed app or do we have to provision Postgres cloud DB instance for it?
@desphixs
@desphixs Год назад
Thanks. The database would read and write operation as it usually happens in the development environment, but the database would get deleted after a day I think, or after your free 500hr runs out, provisioning a postgresl and connecting it is easy, I can make a tutorial if you'd watch it.
@atharvashah1362
@atharvashah1362 Год назад
@@desphixs I will definitely watch it! It is much needed so would love it if you can make a video on it.
@supreme4256
@supreme4256 18 дней назад
Can I deploy in Railway if I have an Integrated Payment Gateway? Please help me clear my doubt . BTW, Im a big fan of your work. Following for a while. ❤❤
@desphixs
@desphixs 18 дней назад
Thanks buddy! To better understand your question, do you mean, can deploy your web app using railway, if you an integrated payment gateway? Please what’s an integrated payment gateway? Is it like a payment method?
@supreme4256
@supreme4256 18 дней назад
@@desphixs Sorry, If i sound wrong, actually Im a beginner and trying to understand the process. My query is suppose I have integrated Stripe as payment method then can I deploy it in 'railway ' ? If it is , then will there be any need of customization to do that?
@desphixs
@desphixs 18 дней назад
@supreme4256 Yes, if you have it integrated stripe as a payment method you can deploy your railway. Here is a breakdown of the process 1. Create a stripe account 2. Verify your stripe account by linked a credit or debit card 3. Choose a plan, maybe the 5$ plan 4. Then follow the steps in the video to deploy your app
@supreme4256
@supreme4256 18 дней назад
@@desphixs Once again I must admit that I have never seen a Mentor/RU-vidr as dedicated as you in terms of supporting followers. God bless you and may keep you in good health to deliver us more knowledge. Thank you.
@1000marcelo1000
@1000marcelo1000 Год назад
Hey there, Desphix! Awesome video! Unfortunately I'm having this error: "Application Error | Is your app correctly listening on $PORT? " Can you help me?
@desphixs
@desphixs Год назад
Have you checked your build logs?? Copy and paste the build log here, so I can see what's wrong. The error should be there.
@1000marcelo1000
@1000marcelo1000 Год назад
@@desphixs The build logs is too large, so i pasted it on Google Docs docs.google.com/document/d/1qSoYA1T8sdU9mPqCo0P57iWqU6LwQ1SJKZfin0Ts_yE/edit?usp=sharing
@desphixs
@desphixs Год назад
Can you also add the deploy logs, I want to see the both. I'm sorry, I could have told you all that at once 🙏🏿
@1000marcelo1000
@1000marcelo1000 Год назад
@@desphixs Yes, for sure! Just added!
@ameliarisner6493
@ameliarisner6493 Год назад
I'm having the same error! Did this get solved?
@pleblira
@pleblira 2 года назад
Thank you
@desphixs
@desphixs 2 года назад
You're very much welcomed ❤️
@mohammadfoisal4873
@mohammadfoisal4873 Год назад
CSRF token not working in Railway...........how can i fix it??
@desphixs
@desphixs Год назад
Did you add the csrf_token in your form?? Or csrf_exempt in your view?
@mohammadfoisal4873
@mohammadfoisal4873 Год назад
@@desphixs yes i have added csrf token in forms,,,i didn't use csrf exempt in any view,,
@desphixs
@desphixs Год назад
So after adding the csrf_token did the error persist?? If yes checkout this thread. It should give you some clue forum.djangoproject.com/t/deploy-a-django-project-on-railway-how-to-fix-the-csrf-verification-failed/16832
@mohammadfoisal4873
@mohammadfoisal4873 Год назад
@@desphixs i have also added csrf trusted origin
@raju_bugude
@raju_bugude Год назад
Application failed to respond . this the response I got after going to website
@desphixs
@desphixs Год назад
Then there is an issue with the deploy, you need to check your deployment logs, you can copy and paste it here if you need assistance detecting the error
@austinhomolka
@austinhomolka Год назад
thank you!
@desphixs
@desphixs Год назад
You're welcome ❤️
@HarshithKumarA
@HarshithKumarA Год назад
Can i edit start command ?
@desphixs
@desphixs Год назад
I would like to understand what you mean by start command??
@ajibadeyakubadebare2169
@ajibadeyakubadebare2169 Год назад
Can I use .env with this tutorial?
@desphixs
@desphixs Год назад
It's better you use the inbuilt railway inbuilt variable config system, it's way easier and better i'd say.
@ajibadeyakubadebare2169
@ajibadeyakubadebare2169 Год назад
@@desphixs I tried it. It worked perfectly fine. Thank you
@magbanum1
@magbanum1 2 года назад
I am not able to see a link to my generated app.
@desphixs
@desphixs 2 года назад
You need to generate a new custom domain from the settings
@MaxWalker676
@MaxWalker676 Год назад
Everything worked perfectly except Django Admin panel - can't open
@MaxWalker676
@MaxWalker676 Год назад
Can someone advise me on this it's giving Error 403 after launching the Website
@desphixs
@desphixs Год назад
So which one is the current problem now?? 1. The admin issue 2. Or the 403 Error
@MaxWalker676
@MaxWalker676 Год назад
@@desphixs Website opens perfectly but when I want to go to admin panel it asks for username and password when I type out them error 403 pops up
@jzvirbulis
@jzvirbulis Год назад
@@MaxWalker676 same here, when i try to log into admin panel I have this error " Forbidden (403) CSRF verification failed. Request aborted.", tied to add CSRF_TRUSTED_ORIGINS, but it didn't fix the problem, maybe someone know how to fix this issue?
@carlamartins6875
@carlamartins6875 2 года назад
Hi great video: but i have a problem: My django version is 3.11.0b5. When im trying to create a user in the django app (register user) in Railway i have an error: Origin checking failed does not match any trusted origins.
@carlamartins6875
@carlamartins6875 2 года назад
never mind i already sorted it out🙂
@desphixs
@desphixs 2 года назад
Great job you've done ❤️🙂
@مهندبدرة
@مهندبدرة Год назад
thx
@مهندبدرة
@مهندبدرة Год назад
Thx
@desphixs
@desphixs Год назад
You're welcome
@albertgubanja
@albertgubanja Год назад
I am meeting an issue with static files. After collecting staticfiles and pushing the project to GitHub, Railway can't find the static files, even if they have been pushed on GitHub. Can anyone help me? In local, everything is working ok.
@desphixs
@desphixs Год назад
Did you run collectstatic before pushing to GitHub?? Also I'd recommend to add whitenoise your middleware section in settings.py
@albertgubanja
@albertgubanja Год назад
@@desphixs I run collectstatic and all the staticfiles are ready in the github repo.
@albertgubanja
@albertgubanja Год назад
@@desphixs , let me call you the best. Everything is ok now after adding the whitenoise to the middleware.
@prismon1266
@prismon1266 2 года назад
Hi Desphix, I had an error. Anytime I try to deploy, I get this error: Undefined is not an object (evaluating 'u.id') How do I fix this
@prismon1266
@prismon1266 2 года назад
Never mind, I fixed it😌
@desphixs
@desphixs 2 года назад
Okay man, if there are any more issues, I'm always here!
@HartMichael-jm4mk
@HartMichael-jm4mk 4 месяца назад
my app kept crashing
@desphixs
@desphixs 3 месяца назад
What’s the deployment error?
@HartMichael-jm4mk
@HartMichael-jm4mk 3 месяца назад
@@desphixs it kept crashing
@HartMichael-jm4mk
@HartMichael-jm4mk 3 месяца назад
@@desphixs /bin/bash: line 1: py: command not found
@lucasobwaku9080
@lucasobwaku9080 2 года назад
How do i Add super user to a deployed django app deployed at railway?
@grimma795
@grimma795 2 года назад
You need download railway CLI. Login in this CLI and just run 'railway run ' for create super user you need 'railway run python manage.py createsuperuser'. You can see every command in docs for railway CLI
@desphixs
@desphixs 2 года назад
Thanks alot for answering his question.
@desphixs
@desphixs 2 года назад
Along side Андрей Челла's comment you can please make reference to the docs here docs.railway.app/develop/cli
@banamwine
@banamwine 2 года назад
@@desphixs Hi, please I installed the railway CLI but when I link my project and run "railway run python manage.py createsuperuser", it returns an error saying "python: can't open file: [Errno 2] No such file or directory exit status 2". Any help would be appreciated.
@speedoodeveloper1675
@speedoodeveloper1675 Год назад
Please I am getting 403 forbidden please how can I solve that
@desphixs
@desphixs Год назад
Do you have csrf_token in your form or csrf_exempt decorator in you view
@speedoodeveloper1675
@speedoodeveloper1675 Год назад
@@desphixs yes I have csrf_token in my project
@desphixs
@desphixs Год назад
My apologies for late reply. If you're still having the error, the checkout this thread, it should give you some clue forum.djangoproject.com/t/deploy-a-django-project-on-railway-how-to-fix-the-csrf-verification-failed/16832
@StudiofrogPl
@StudiofrogPl 11 месяцев назад
terrible audio, to much compression. Good explanation anyway.
@samsunnynewday
@samsunnynewday Год назад
Please I need you to help me with something as soon as possible
@desphixs
@desphixs Год назад
Okay I'd help if I can What's it?
@samsunnynewday
@samsunnynewday Год назад
@@desphixs I need your help in migrating my site to railways
@samsunnynewday
@samsunnynewday Год назад
@@desphixs my system doesn't support pip update installation I need you to help me out if possible?
@abdullahiaaron249
@abdullahiaaron249 Год назад
pls. use normal Nigerian accent bro,nice video, just stop all these ur wanna ,gonna, wanna
@desphixs
@desphixs Год назад
Alright buddy, I'll try to stop it. But I'm used to it already you know, but I'll try to.😅 Thanks alot for your comment, I really appreciate it ❤️
@amira_shmira
@amira_shmira Год назад
When you're trying to deploy an app on Railway the one time they pause deployments 🫠
@desphixs
@desphixs Год назад
If your deployment is paused then there might be an issue you can always restart your deployment
@amira_shmira
@amira_shmira Год назад
@@desphixs railway paused deployments, I wasn’t even able to connect my repo. After that was over I still wasn’t able to deploy due to my account not meeting their “criteria”.
Далее
Deploy a Django web app to Vercel [FREE]
18:21
Просмотров 79 тыс.
НЕ БУДИТЕ КОТЯТ#cat
00:21
Просмотров 588 тыс.
The 4 best ways to deploy a Django application
7:01
Просмотров 119 тыс.
Heroku Is Dead, Here's What I Recommend
11:59
Просмотров 262 тыс.
Deploy Django app to Railway
15:49
Просмотров 5 тыс.
Deploy Django Website To PythonAnywhere
12:03
Просмотров 35 тыс.
Easiest Way To Connect Django To A Postgres Database
7:28
How ChatGPT Built My App in Minutes 🤯
8:28
Просмотров 2,5 млн