A clean and modular Django web application template—ideal for building full-featured websites, REST APIs, or multi-page applications.
- 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)
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
-
Clone the repository
git clone https://github.com/ManibalaSinha/django.git cd django -
Create and activate a virtual environment
python3 -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate
-
Install requirements
pip install -r requirements.txt
-
Configure environment variables Create a
.envfile:DEBUG=True SECRET_KEY=your-secret-key DATABASE_URL=sqlite:///db.sqlite3 -
Apply database migrations
python manage.py migrate
-
Create a superuser
python manage.py createsuperuser
-
Run the development server
python manage.py runserver
Visit http://127.0.0.1:8000/
- 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- 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
Contributions are welcome! Please:
- Fork the repo
- Create a feature branch:
git checkout -b feature/your-feature - Commit changes:
git commit -m "Add your feature" - Push:
git push origin feature/your-feature - Open a pull request
- Author: Manibala Sinha – manibalasinha1@gmail.com
- License: MIT