0% found this document useful (0 votes)
5 views3 pages

Dockerizing a Django Project Guide

The assignment requires setting up a basic Django application and Dockerizing it using Docker Compose. Key tasks include cloning a Django project, creating a Dockerfile and docker-compose.yml for the app and PostgreSQL, and ensuring proper database configuration. Deliverables include a public GitHub repository with the project files, a README with setup instructions, and a screen recording explaining the project features.

Uploaded by

Edusa 99
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Dockerizing a Django Project Guide

The assignment requires setting up a basic Django application and Dockerizing it using Docker Compose. Key tasks include cloning a Django project, creating a Dockerfile and docker-compose.yml for the app and PostgreSQL, and ensuring proper database configuration. Deliverables include a public GitHub repository with the project files, a README with setup instructions, and a screen recording explaining the project features.

Uploaded by

Edusa 99
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

🧪 Assignment: Dockerize a Basic Django Project

✅ Objective
Your task is to set up a basic Django application and Dockerize it so that it can be easily run
using Docker Compose.

📌 Requirements
​ 1.​ Django Project

​ •​ Clone the basic Django project from [Link]


​ •​ run the django server in ur local.

​ 2.​ Dockerization

​ •​ Create a Dockerfile that:

​ •​ Uses an official Python base image.

​ •​ Installs dependencies from [Link].

​ •​ Runs migrations and starts the Django development server.

​ •​ Create a [Link] file to:

​ •​ Run the Django app container.

​ •​ Run a PostgreSQL container as the database.

​ •​ Configure environment variables using .env file.

​ 3.​ Database Configuration

​ •​ Configure Django to connect to the PostgreSQL container via Docker Compose


networking.

​ 4.​ Startup

​ •​ On running docker-compose up, the app should:

​ •​ Migrate the database.

​ •​ Be accessible at [Link]
​ 5.​ Bonus (Optional)

​ •​ Add a [Link] or similar script to handle database startup timing.

​ •​ Add Django admin and create a superuser via Docker.

​ •​ Include Swagger or simple auto-generated API docs.

​ •​ Add volumes for code hot-reloading in development mode.

📁 Deliverables
​ •​ A public GitHub repository with:

​ •​ Django project and app

​ •​ Dockerfile

​ •​ [Link]

​ •​ .[Link]

​ •​ [Link] with:

​ •​ Setup instructions

​ •​ API usage or endpoints

​ •​ Any assumptions or design decisions

Submission Requirements:

●​ Submit your code via GitHub or as a zip file.​


Screen record your assignment(either 2.a or 2.b. or 2.c) submission explaining
your project features, technologies and stacks.

●​ Upload the Recording to your Drive.

●​ Rename your video file with your name as prefix in it. (e.g:
rohan_flutter_assignment)​
Note: If multiple links are required, paste the links corresponding to their
Label/Title
●​ Example: ​
project-features : [Link]
project-technical : [Link]

●​ Include a README file explaining:


○​ How to set up the project.
○​ Key features implemented.
○​ Any limitations or assumptions made.

Evaluation Criteria:

●​ Completeness of the implementation.


●​ Code quality and adherence to best practices.
●​ User experience and UI design.
●​ Security and handling of sensitive information.

Deadline: 5 Days.

If you have questions or need clarification!

You might also like