Editing
Django App Prerequisites for AWS Elastic Beanstalk
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Create a virtual Python environment for the Django project == Install `virtualenv` if needed: <syntaxhighlight lang="bash"> $ which virtualenv $ pip install virtualenv </syntaxhighlight> Create the virtual Python Environment<ref>[http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-common-steps.html#python-common-setup-venv Setting up a virtual Python environment] (AWS documentation)</ref> <syntaxhighlight lang="bash"> $ virtualenv -p python3.4 /path/to/project_venv </syntaxhighlight> Where `/path/to/project_env` is a path unique to the project. Start the virtual environment: <syntaxhighlight lang="bash"> $ . /path/to/project_venv/bin/activate </syntaxhighlight> Confirm the Python version: <syntaxhighlight lang="bash"> $ python --version </syntaxhighlight> Leave the virtual environment: <syntaxhighlight lang="bash"> $ deactivate </syntaxhighlight> == Create a Django application locally == * Install all prerequisites necessary for the Django app, e.g. Python, pip, Django, etc. * See [[Working With Django Projects, The Basics]] * Run and test the Django application locally, e.g. with `python manage.py runserver`. == Install AWS Elastic Beanstalk CLI <ref> [http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-common-steps.html#python-common-installing-ebcli Installing the AWS Elastic Beanstalk CLI] (AWS documentation)</ref> == Install the AWS Elastic Beanstalk cli: ''N.B. See [[Troubleshooting_Deploying_a_Django_Application_With_Elastic_Beanstalk#Errors_installing_awsebcli_on_Mac_OS_for_Python_2.7|the Troubleshooting article]] for issues installing `awsebcli` on Mac OS X.'' <syntaxhighlight lang="bash"> $ pip install awsebcli </syntaxhighlight> Confirm the installation with `eb --version` At this point the directory is ready to have an Elastic Beanstalk application created with `eb init`. See [[Deploying a Django app on AWS]]. == Notes == === See also === * [http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-common-steps.html Common Steps for Deploying Python Applications] - AWS Elastic Beanstalk documentation * [http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/installing-python.html Installing Python] - AWS Elastic Beanstalk documentation * [[Deploying a Django app on AWS]] === References === <references /> [[Category:Django]][[Category:AWS]][[Category:Elastic Beanstalk]][[Category:Web Development]]
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information