The Beginning Steps: Preparing Your Django Blog's Work Atmosphere
Hello my friends, Welcome to the first post of "Building Your Blog from Scratch: A Django Journey" !

First, Let's talk a little bit about Django
Django, a powerful Python web framework, excels in rapid development, security, and scalability. It boasts a 'batteries-included' approach, offering built-in features like an ORM, secure authentication, and an admin interface. It's favored for creating APIs due to its clean design and efficiency, making it ideal for building robust web applications with seamless APIs for data integration and communication.
Enough of this theoretical talk about Django. Let's start the real work now. 馃
First, let's start by setting up the working environment.
I have previously written an article detailing how to set up the working environment. You can read it here.
Let's quickly prepare the work environment now.
# Create work directory
mkdir fazora_tech
cd fazora_tech
# Create and activate virtual environment
virtualenv venv -p 3.9
source venv/bin/activate
# install django
pip3 install django
# start a new project
django-admin startproject fazora_tech
# create main app
cd fazora_tech
python3 manage.py startapp blog
As mentioned earlier, for detailed steps on creating a new project, you can refer to the previous article: A Beginner's Guide to Create Your First Django Project
Let's now link our project to GitHub:
First, let's create a .gitignore file to inform Git about the files it should ignore.
Create a
.gitignoreYou can use any online .gitignore generator like: https://www.toptal.com/developers/gitignore/
just type
djangoand click create.Copy the content and paste it into
.gitignorefile
Now go to your Github account and create a new repo.
lets create a local repo too:
git init .
Now lets link local and remote repositories and push or project to GitHub:
git add .
git commit -m "First Commit"
git remote add origin https://github.com/marawan6569/Fazora-tech-blog.git # Your repo link
git branch -M main
git push -u origin main
We're finally done. You can now run the project:
python3 manage.py runserver

Congratulations! The project is now running successfully. We're one step closer to creating our own blog using Django. 馃帀馃コ馃コ
About the author
I am Marwan Fazora, a proficient full-stack web developer with a strong command of Python and Django. Possessing expertise in both front-end and back-end development, I specialize in crafting secure and high-performance web applications. I am eager to collaborate and contribute to transforming conceptual ideas into tangible solutions.
Comments
Join the discussionEven i am doing the blog as my first project to learn, i hope to connect and just be friends.
My pleasure 馃槉
I just noticed your name 馃榿.
Hello Saitama sensei 馃馃憡
Marwan Fazora hey yeah, i texted you on Instagram if you available there let me know
Building Your Blog from Scratch: A Django Journey
Get ready for a Django adventure! Together, we'll create 'Fazora-Tech' Blog with diverse user roles. Join me as we turn Django's magic into a blog-building thrill ride! 馃殌馃専




