jeudi 13 août 2015

django deployment using ubuntu ec2 (bitnami)

I'm trying to deploy my django app. I have it hooked up to an Ubuntu ec2 with bitnami on a amazon EC2 server.

1. How do I access my local deployment of the app inside my ec2?: I connect to my ec2 via my macbook terminal. I run python manage.py runserver inside the terminal and it says it's connected to the localhost of the ec2. Great. But how do I access the localhost of the ec2 at the 127.0.0.1:8000 website when I only can talk to it through terminal?

2. I'm having trouble setting up my templates: I keep getting the error Template does not exist

The template-loader postmortem showed:

Django tried loading these templates, in this order:

Using loader django.template.loaders.filesystem.Loader:

Using loader django.template.loaders.app_directories.Loader:

/opt/bitnami/apps/django/lib/python2.7/site-packages/http://ift.tt/1hAv5aE (File does not exist)

/opt/bitnami/apps/django/lib/python2.7/site-packages/http://ift.tt/1L9LU61 (File does not exist)

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire