bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Django/Deploy Django
Django•Deploy Django

Deploy Django - django.config

Provider-Specific Settings

We have chosen AWS as our hosting provider, and Elastic Beanstalk as a service to deploy the Django project, and it has some specific requirements.

.ebextension Folder

It requires that you create a folder on the root level of your project called .ebextensions :

my_tennis_club
 .ebextensions/
 members/
 my_tennis_club/
 mystaticfiles/
 productionfiles/
 db.sqlite3
 manage.py
 requirements.txt

Create django.config File

In the .ebextensions folder, create a file called django.config :

my_tennis_club
 .ebextensions/
 django.config

Open the file and insert these settings:

my_tennis_club/.ebextensions/django.config :

option_settings:
 aws:elasticbeanstalk:container:python:
 WSGIPath: my_tennis_club.wsgi:application

Note

These steps are specific for AWS and Elastic beanstalk, but every provider has some provider-specific settings.

The next step is to wrap all the dependencies into one .zip file, which you will learn in the next chapter .

Previous

Deploy Django - Create Requirements

Next

Deploy Django Project - Create zip File

This chapter

Overview
6

Lessons

12m

Read time

1. Deploy Django - Choose Provider2. Deploy Django - Create Requirements3. Deploy Django - django.config4. Deploy Django Project - Create zip File5. Deploy Django - Elastic Beanstalk6. Deploy Django - Update Project

On this page

Provider-Specific Settings.ebextension FolderCreate django.config File