Python Django 1.7 Ubuntu 14.04 how do I deploy a django site on azure? -


i'm trying deploy django site azure cloud it's not working. far, i've gone through tutorial here (https://github.com/azure/azure-content/blob/master/articles/web-sites-python-create-deploy-django-app.md) no luck.

i created webapp. made django application. i'm using ubuntu 14.04, django 1.7, git, , python 2.7.6.

my root directory local django site is

/home/user/documents/aptana studio 3 workspace/mysite/ 

i went directory , did following commands.

sudo git init sudo git add . sudo git commit -m "comment" sudo git remote add azure https://username@mysite.scm.azurewebsites.net:443/mysite.git sudo git push azure master 

it goes through deployment , shows copying files says after few copies.

remote: omitting next output lines... remote: finished successfully. remote: deployment successful. 

but doesn't show files being uploaded.

in azure portal says website has been deployed, i'm not getting website when go link; instead getting django default website.

what need happen this-

sudo python manage.py runserver 

and have server deploy website @ specified address (https://mysite.azurewebsites.net).

it's not doing that. i'm wondering what's wrong , if guys can help.

so azure webapp site has deploy git repo. choose local git repo. after that, wait load details. follow instructions give if have dependencies make sure pip freeze > requirements.txt , eliminate excess. (you may have search answers on how few of dependencies install correctly [like mysql.connector]). after go directory want put on django webapp made , follow directions provided in azure. put password in.

go dashboard of webapp. click download publish settings give .txt file important information.

download or open filezilla. insert publishurl (some ftp:// url) provided in publish settings.txt file. insert username. insert userpwd. choose connect.

after that, , know band-aid type solution, go djangowebproject , replace settings.py settings.py in directory project. same rest of files in folder (urls.py, wsgi.py, etc)

after can load page, may not have pretty page created.

at point go static folder automatically there , put of static directories in there.

after have nice pretty page (hopefully) matches 1 made. after that, make sure git commit changes local repo , every push after should deploy fine.


Popular posts from this blog