I'm trying to deploy my Django application on github. Files have been uploaded successfully, the url works fine, but when I go the site https://qasim-khan1.github.io/blog/
It doesn't direct me to my landing page. It shows nothing, simply 'Blog' written in bold text.
I think you can not host Django app on GitHub, GitHub doesn't support hosting of dynamic site.
Related
I deployed my app to heroku: https://doggos-only.herokuapp.com/
The images on the Dog Images link work locally, but they do not work on the deployed version. The only useful error I'm getting is: cj_eOAaboi.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
My best guess is that it has something to do with the file path, but I'm not sure. I've tried looking around the web for a solution but have been unable to find one. Looking for any help, here is the repo: https://github.com/jpchato/doggos_only_project
I'm deploying from the deploy_branch in my repo.
That's because media files (Those files uploaded by the user) in heroku are not persistent, that means that after a certain time all the media will be erased.
I strongly suggest you to use a media CDN like cloudinary or amazon s3.
I wrote a post on how to setup a media CDN with cloudinary for free and you can access it right here
Django Tutorial: Set up Media files in Deployment for FREE
I am running aws lambda.
It is deployed with zappa.
Lambda runs a django project.
Django uses django-storages lib to use S3 for storage and serving static files.
I run collectstatic successfully.
I see my admin page with fully loaded js and css.
Next day I come back and see plain html admin page without js and css loaded. I continue navigating through admin page and after some time css and js magically loads. I continue doing some work and css/js again dissapears and admin page becomes plain html again.
Anyone experiencing something similar? Any ideas of why is this happening?
EDIT:
Lambda is invoked through API Gateway
I wonder is there some optional configuration to the dev server to autorefresh page when files changed. I know that django dev server autoreload project when some changes appear but what i am looking for is refreshing the webpage like it is in for example meteor. I was googling a little and find some apps and plugins to ff and chrome.
Django is designed to web development so i suspect that such feature should be in the core of dev server. Is it?
No, dev server is just a simple server that accepts request, passes it to the django app and returns a response from the app. It is something different than you can find in some JavaScript libraries or frameworks, where data are held in browser and you only hot reload the source code and library regenerates the page using the same data.
I'm trying to use django-ios-notifications to server PUSH notifications via APNS (https://github.com/stephenmuss/django-ios-notifications). I've never used Django before. I've followed the instructions on the modules github page, but have'nt been able to get it working. I've done the following;
*installed required package and django
*added 'ios_notifications', to my INSTALLED_APPS settings file
*synced my local MySQL server with django (a load of new tables were created, for both django and django-ios-notifications, so it appears to be installed correctly, which I was thrilled about)
*start django server
However when I go to the modules config page (URL below) I just see the default 'It worked!
Congratulations on your first Django-powered page.' holding page, not the admin page I expected. (the tutorial on the github page descried a form)
http://127.0.0.1:8000/admin/ios_notifications/apnservice/add/
I guess I need to configure something in djange, I read over the first few pages on the django tutorial but I couldn't see any mention of using installed modules. I'm sure this is a very simple problem to solve, so if anyone could point me in the right direction that would be fantastic.
https://github.com/stephenmuss/django-ios-notifications
You don't seem to have activated Django's admin interface, which you need to access the admin forms. There are concise instructions in the documentation. You can switch to a different version of Django in the lower right corner, if you aren't using 1.5.
I have to redirect my default app engine page myAppID.appspot.com to www.myDomain.com.
I have created HTML files for site, created the gwt project in eclipse and deployed that project on google app engine. I have search on the net for 301 redirection, so find that as i am using java so i need a java handler to put in web.xml file or app-engine-web.xml file. I am not a developer just a web designer only know the HTML and CSS as scripting language.
So please if anybody can help me.
For redirect, you can follow the steps in this post on creating python handler and for mapping , follow this google document on deploying application on google apps url