Перейти к содержимому

Django Google Clone Project | Create Apps, URLs, Port 8001 & ALLOWED_HOSTS

CS_Wallah

0:00 / 0:00

Django Google Clone Project | Create Apps, URLs, Port 8001 & ALLOWED_HOSTS

77 просмотров · 9 дней назад
CS_Wallah
15 подписчиков
77 просмотров · 9 дней назад
🐍 *Django Google Clone Project | Create Apps, URLs, Port 8001 & ALLOWED_HOSTS* In this Django tutorial for beginners, we continue building our **Google Clone project using Python and Django**. In this video, we create new Django apps for our Google-style project, create their `urls.py` files, register them in `settings.py`, connect their URLs with the main Django project, and test them using the Django development server. We create *Google Maps* and *Google Photos* apps and learn how multiple Django apps can work together inside one Django project. We also demonstrate how to run *multiple Django development servers at the same time* by using different ports. One server is already running, while another Django server is started on: `127.0.0.1:8001` Finally, we explain Django's *ALLOWED_HOSTS* setting and why it becomes important when deploying your backend to platforms such as AWS or Google Cloud. 📚 *CHAPTERS* 00:00 Introduction — Building a Django Google Clone 00:36 Django MVT: Models, Views & Templates 01:46 Django Project Structure Explained 02:20 Planning the Google Clone Apps 03:07 Activate the Virtual Environment 04:06 Connect the YouTube App to the Project 05:01 Create the Google Maps App 05:35 Create urls.py for Google Maps 06:18 Register Google Maps in settings.py 06:48 Connect Google Maps URLs 07:36 Create Google Maps urls.py 08:43 Run Server & Test the Apps 10:18 Understand views.py, Request & HttpResponse 11:23 Building Real Google-Like Pages with HTML/CSS 12:06 Create the Google Photos App 12:45 Create Google Photos urls.py 13:29 Register Google Photos in settings.py 14:01 Connect Google Photos URLs 15:04 Create Google Photos Views 15:45 Test the Google Photos App 16:13 Run Multiple Django Servers 17:07 Run Django on Port 8001 17:38 Why Multiple Ports Are Useful 17:53 Django ALLOWED_HOSTS Explained 18:13 AWS & Google Cloud Deployment Example 18:33 Conclusion 🔥 *WHAT YOU'LL LEARN* • Django Google Clone Project • Django Apps • Create Django App • Django `startapp` • Google Maps Django App • Google Photos Django App • Django `urls.py` • Django App URLs • Django Project URLs • Django URL Routing • Django `settings.py` • Django `INSTALLED_APPS` • Django Views • Django `views.py` • Django HttpResponse • Django MVT Architecture • Django Project vs Django App • Django Virtual Environment • Django Development Server • Run Django on Port 8001 • Run Multiple Django Servers • Django localhost • Django 127.0.0.1 • Django ALLOWED_HOSTS • Django Deployment • AWS Deployment Concepts • Google Cloud Deployment Concepts • Python Django Web Development 🎯 *DJANGO PROJECT VS DJANGO APP* A Django project is the overall configuration and structure of the website/application. A Django app is a smaller component responsible for a particular feature. In our Google Clone project, we can create separate apps such as: • YouTube • Google Maps • Google Photos • Other Google-style services This makes the project easier to organize and expand. 🗺️ *CREATING THE GOOGLE MAPS APP* We create the Google Maps Django app and then: • Create `urls.py` • Register the app in `settings.py` • Connect the app URLs with the main project • Create/use a view • Run the Django server • Test the application 📸 *CREATING THE GOOGLE PHOTOS APP* We repeat the same Django application structure for Google Photos. This demonstrates an important Django concept: once you understand how one app works, you can create additional apps using the same basic architecture. 🌐 *RUNNING MULTIPLE DJANGO SERVERS* We demonstrate how another Django development server can run on a different port. For example: `127.0.0.1:8001` This allows multiple development servers to run simultaneously as long as they use different ports. 🔐 *DJANGO ALLOWED_HOSTS* The video also explains the purpose of Django's `ALLOWED_HOSTS` setting. During development, you can allow a local host/IP address such as: `127.0.0.1` When deploying your Django backend to a cloud platform such as AWS or Google Cloud, your server may have a specific IP address or hostname that needs to be configured as an allowed host. ☁️ *AWS & GOOGLE CLOUD* We introduce the basic idea of what happens when a Django backend moves from your local computer to a cloud server. This is an important concept to understand before deploying a real Django application. 📚 *DJANGO BEGINNER SERIES* This video is part of the CS_Wallah Django beginner series where we are learning Django step by step by building a practical **Google Clone project**. We will continue adding more functionality and learning Django concepts throughout the project. 🐍 Python 🌐 Django 💻 Web Development 🗄️ Database ☁️ Cloud & Deployment 🤖 AI 🧠 Computer Science Subscribe to CS_Wallah for Python, Django, AI, coding, cybersecurity and Computer Science tutorials. *LEARN. BUILD. THINK.* #Django #DjangoTutorial #Python #DjangoApps #GoogleClone #WebDevelopment #DjangoDeployment