Skip to main content

Posts

Showing posts with the label django

Create a File Sharing Website in Django

Django is a popular web framework of Python for Web developers. It is used for Backend work. We can create a large project using the Django framework. Most companies like Instagram, Spotify, Mozilla, Pinterest, Disqus, etc are using Django for their Backend. It helps to create a Complex website. In this post, I will create a File Share Website using the Django framework. Let's Go. Our Project structure:- Follow these steps to create & configure our project:- Step 1 - Create a project using this command ( django-admin startproject filesharing  ) Step 2 - Go inside to our project and create an app in this project ( python manage.py startapp main ) Step 3 - Open project's settings.py file and add the main app in INSTALLED_APPS section. Step 4 - Create an urls.py file in our main app and add it to project's urls.py file , like this from django . contrib import admin from django . urls import path , include urlpatterns = [     path ( 'admin/' , admin . site