Skip to content

nikeshh-x/QR_Code_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator (Django)

A simple Django web application to generate QR codes for restaurant menus. Users can enter a restaurant name and menu URL, and the app generates a QR code image for sharing or printing.

Features

  • Input restaurant name and menu URL
  • Generates QR code image
  • Displays QR code in browser
  • Download QR code image

Requirements

  • Python 3.10+
  • Django
  • Pillow (for image handling)
  • qrcode (for QR code generation)

Setup

  1. Clone the repository:
    git clone https://github.com/nikeshh-x/QR_Code_Generator.git
    cd QR_Code_Generator
  2. Create and activate a virtual environment:
    python -m venv venv
    venv\Scripts\activate  # On Windows
  3. Install dependencies:
    pip install -r requirements.txt
    If requirements.txt is missing, install manually:
    pip install django pillow qrcode
  4. Run migrations:
    python manage.py migrate
  5. Start the development server:
    python manage.py runserver
  6. Open your browser and go to http://localhost:8000

Usage

  • Fill in the restaurant name and menu URL in the form.
  • Click "Generate QR Code".
  • The QR code will be displayed and can be downloaded.

Project Structure

qr_code_django/
├── manage.py
├── db.sqlite3
├── cred.txt
├── django_qr/
│   ├── __init__.py
│   ├── asgi.py
│   ├── forms.py
│   ├── settings.py
│   ├── urls.py
│   ├── views.py
│   ├── wsgi.py
├── templates/
│   ├── generate_qr_code.html
│   ├── qr_result.html

License

This project is licensed under the MIT License.

About

Generate QR Code by providing the url

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published