Skip to content

ManibalaSinha/django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Django Project

A clean and modular Django web application template—ideal for building full-featured websites, REST APIs, or multi-page applications.


Key Features

  • Modular app structure using Django's apps/ layout
  • User authentication with login, logout, and signup
  • Admin interface ready for data management
  • Integrated static/media handling
  • Example CRUD views and templates
  • Optional REST API using Django REST Framework (DRF)

Project Structure

django/
├── apps/                
│   ├── accounts/        ← Auth (user signup/login)
│   ├── core/            ← Core pages (home, about, contact)
│   └── posts/           ← Example blog/post CRUD module
├── project_name/        
│   ├── settings.py      
│   ├── urls.py          
│   └── wsgi.py          
├── static/              ← CSS, JS, images
├── media/               ← User-uploaded media
├── templates/           ← Shared HTML templates
├── requirements.txt     ← Python dependencies
└── manage.py            ← Django CLI entry point

Setup Instructions

  1. Clone the repository

    git clone https://github.com/ManibalaSinha/django.git
    cd django
  2. Create and activate a virtual environment

    python3 -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
  3. Install requirements

    pip install -r requirements.txt
  4. Configure environment variables Create a .env file:

    DEBUG=True
    SECRET_KEY=your-secret-key
    DATABASE_URL=sqlite:///db.sqlite3
    
  5. Apply database migrations

    python manage.py migrate
  6. Create a superuser

    python manage.py createsuperuser
  7. Run the development server

    python manage.py runserver

    Visit http://127.0.0.1:8000/


Usage Overview

  • Admin interface: /admin/
  • Auth: /accounts/login/, /accounts/signup/, /accounts/logout/
  • Posts app: /posts/ (list), /posts/<id>/ (detail), plus create/edit/delete

Add new apps easily via:

python manage.py startapp your_app_name

Optional Enhancements

  • Add Django REST Framework for API support
  • Integrate Bootstrap or Tailwind CSS for UI styling
  • Configure media storage via AWS S3
  • Add CI/CD pipeline using GitHub Actions
  • Deploy to Heroku or DigitalOcean

Contributing

Contributions are welcome! Please:

  1. Fork the repo
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Commit changes: git commit -m "Add your feature"
  4. Push: git push origin feature/your-feature
  5. Open a pull request

Author & License


About

django project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published