Skip to content

DevXtechnic/ojt10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

🚀 Django Starter Project

A beginner-friendly Django project setup with virtual environment configuration, migrations, superuser creation, and local development server setup.


📌 Features

  • Django project initialization
  • Virtual environment setup
  • Database migrations
  • Django admin panel
  • Local development server
  • Beginner-friendly workflow

🛠️ Installation Guide

1️⃣ Clone the Repository

git clone https://github.com/DevXtechnic/ojt10.git
cd ojt10

🐍 Create & Activate Virtual Environment

Install Required Packages

pip install virtualenv django

Create Virtual Environment

virtualenv env

OR

python -m virtualenv env

Activate Virtual Environment

Linux / macOS

source env/bin/activate

Windows

env\Scripts\activate

⚡ Create Django Project

django-admin startproject firstproject

🗄️ Run Database Migrations

python manage.py migrate

👤 Create Admin Superuser

python manage.py createsuperuser

Follow the prompts to create your admin credentials.


▶️ Run Development Server

python manage.py runserver

Now open your browser and visit:

http://127.0.0.1:8000/

🔐 Django Admin Panel

Access the admin dashboard here:

http://127.0.0.1:8000/admin

Login using the superuser credentials you created earlier.


📂 Project Structure

ojt10/
│── env/
│── firstproject/
│── manage.py
│── db.sqlite3

📚 Useful Django Commands

Command Description
python manage.py runserver Start development server
python manage.py migrate Apply database migrations
python manage.py makemigrations Create migration files
python manage.py createsuperuser Create admin user
python manage.py startapp appname Create a new Django app

🧠 Tech Stack

  • Python
  • Django
  • SQLite
  • Virtualenv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages