Mastering Django: Project and App Folder Structure 1. Django Project Folder Structure When you create a Django project, it follows a structured format, ensuring an organized development environment. projectname/ │── manage.py # Command-line utility to manage the project │── db.sqlite3 # Default SQLite database file (if used) │── projectname/ # Main project directory containing settings │ │── __init__.py # Marks this directory as a Python package │ │── settings.py # Project-wide configuration settings │ │── urls.py # Main URL routing for the project │ │── asgi.py # Entry point for ASGI-compatible web servers (optional) │ │── wsgi.py # Entry point for WSGI-compatible web servers │── appname/ # A Django app directory (e.g., blog, users, etc.) │ │── __init__.py # Marks this directory as a Python package │ │── admin.py # Configuration for Django admin panel │ │── apps.py # Application configuration │...
1. Introduction Welcome to Mera Kharch: Expense Manager. We value your privacy. This policy explains how we handle your data when you use our mobile application. 2. Data Collection (No Collection) Our app is designed to work Offline. We do NOT collect, store, or transmit any of your personal information, financial records, or sensitive data to our servers or any third parties. All data you enter (Expenses, Income, Categories) stays exclusively on your local device. 3. Permissions The app may ask for the following permission only to provide core features: * Storage/Media: To export your expense reports in CSV/Excel format to your phone's memory. 4. Third-Party Services We do not use any third-party analytics (like Firebase Analytics), advertisements (if applicable), or tracking tools that monitor your behavior. 5. Data Security Since your data is stored locally on your phone (Local Database), its security depends on your device's overall security. We do not have access to your ...
Mastering Django Template Language (DTL): A Step-by-Step Guide Django's Template Language (DTL) is a powerful tool for rendering dynamic data on web pages using HTML templates . This guide will cover how to pass data from views to templates , display variables, use conditional statements, apply loops, and implement filters with practical examples. ✅ 1. Passing Data from Views to Templates 🧠 How to Pass Data: Data is passed using the context dictionary in the render() function. # views.py from django.shortcuts import render # Simple Template Rendering def home(request): return render(request, 'myapp/home.html') # Dynamic Data Rendering def user_info(request): context = { 'name': 'John Doe', 'age': 25, 'fruits': ['Apple', 'Banana', 'Cherry'], 'is_logged_in': True, 'score': 85, 'hobbies': ['Reading', 'Gaming', ...
Comments
Post a Comment