Skip to main content

Command Palette

Search for a command to run...

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" !

Published
โ€ข2 min read
The Beginning Steps: Preparing Your Django Blog's Work Atmosphere
M

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.

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

First, let's create a .gitignore file to inform Git about the files it should ignore.

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. ๐ŸŽ‰๐Ÿฅณ๐Ÿฅณ

I

Even i am doing the blog as my first project to learn, i hope to connect and just be friends.

3
M

My pleasure ๐Ÿ˜Š

M

I just noticed your name ๐Ÿ˜.

Hello Saitama sensei ๐Ÿซก๐Ÿ‘Š

1
I

Marwan Fazora hey yeah, i texted you on Instagram if you available there let me know

1

Building Your Blog from Scratch: A Django Journey

Part 1 of 1

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! ๐Ÿš€๐ŸŒŸ