diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..6f3a2913e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/NearMe b/NearMe new file mode 160000 index 000000000..0a99e40f9 --- /dev/null +++ b/NearMe @@ -0,0 +1 @@ +Subproject commit 0a99e40f96bbb8f4e67a28efd43b267a4d7f1a20 diff --git a/README.md b/README.md deleted file mode 100644 index 8d5db9b9e..000000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Ex04 Places Around Me -## Date: - -## AIM -To develop a website to display details about the places around my house. - -## DESIGN STEPS - -### STEP 1 -Create a Django admin interface. - -### STEP 2 -Download your city map from Google. - -### STEP 3 -Using `````` tag name the map. - -### STEP 4 -Create clickable regions in the image using `````` tag. - -### STEP 5 -Write HTML programs for all the regions identified. - -### STEP 6 -Execute the programs and publish them. - -## CODE - - -## OUTPUT - - - - - - - -## RESULT -The program for implementing image maps using HTML is executed successfully. diff --git a/anna.png b/anna.png new file mode 100644 index 000000000..5e015015e Binary files /dev/null and b/anna.png differ diff --git a/gill.png b/gill.png new file mode 100644 index 000000000..f5c9f24fc Binary files /dev/null and b/gill.png differ diff --git a/link map.png b/link map.png new file mode 100644 index 000000000..b58ae527a Binary files /dev/null and b/link map.png differ diff --git a/mapapp/db.sqlite3 b/mapapp/db.sqlite3 new file mode 100644 index 000000000..e69de29bb diff --git a/mapapp/manage.py b/mapapp/manage.py new file mode 100644 index 000000000..9219030b8 --- /dev/null +++ b/mapapp/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mapapp.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/mapapp/map/__init__.py b/mapapp/map/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/mapapp/map/admin.py b/mapapp/map/admin.py new file mode 100644 index 000000000..8c38f3f3d --- /dev/null +++ b/mapapp/map/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/mapapp/map/apps.py b/mapapp/map/apps.py new file mode 100644 index 000000000..604c7c7d6 --- /dev/null +++ b/mapapp/map/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class MapConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'map' diff --git a/mapapp/map/migrations/__init__.py b/mapapp/map/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/mapapp/map/models.py b/mapapp/map/models.py new file mode 100644 index 000000000..71a836239 --- /dev/null +++ b/mapapp/map/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/mapapp/map/static/anna.html b/mapapp/map/static/anna.html new file mode 100644 index 000000000..51e159ab2 --- /dev/null +++ b/mapapp/map/static/anna.html @@ -0,0 +1,22 @@ + + + + + + ANNA ARCH + + + +

ANNA ARCH

+
Anna Arch in Arumbakkam is an iconic structure that stands as a testament 
+to Chennai's architectural legacy. Maintenance efforts focus on preserving
+its aesthetic appeal and ensuring the area remains tidy and accessible to the 
+public. Regular inspections are carried out to address wear and tear, keeping 
+the structure in good condition. While there isn’t a formal 
+customer service desk, municipal authorities occasionally install information
+boards to guide visitors. Traffic management around the arch is also prioritized to ensure 
+smooth vehicular movement. Plans for enhanced lighting during the evening hours and periodic
+repainting further contribute to its upkeep, making it a 
+valued part of Chennai’s urban landscape. 
+ + \ No newline at end of file diff --git a/mapapp/map/static/gill.html b/mapapp/map/static/gill.html new file mode 100644 index 000000000..e87e7c17e --- /dev/null +++ b/mapapp/map/static/gill.html @@ -0,0 +1,21 @@ + + + + + + GILL NAGAR PARK + + + +

GILL NAGAR PARK

+
Gill Nagar Park in Chennai is a peaceful community space known 
+for its greenery and well-maintained environment. The park's maintenance
+includes regular cleaning, pruning of plants, and upkeep of walking paths
+and benches. The children's play area and exercise equipment are inspected 
+periodically to ensure safety. while there is no formal customer service desk,
+park staff are friendly and assist visitors when needed. Security measures,
+such as a gated entrance and occasional patrols, ensure a safe environment
+for families and individuals. Overall, Gill Nagar Park is a well-kept 
+urban retreat that serves as a great spot for relaxation and recreation.
+ + \ No newline at end of file diff --git a/mapapp/map/static/map.html b/mapapp/map/static/map.html new file mode 100644 index 000000000..fec69770c --- /dev/null +++ b/mapapp/map/static/map.html @@ -0,0 +1,23 @@ + + +My City + + +

+CMBT +

+

+NAVEEN KUMAR P (24901080) +

+
+ + + vr + rohini + anna + thiru + gill + +
+ + diff --git a/mapapp/map/static/map1.png b/mapapp/map/static/map1.png new file mode 100644 index 000000000..ad3aecb76 Binary files /dev/null and b/mapapp/map/static/map1.png differ diff --git a/mapapp/map/static/rohini.html b/mapapp/map/static/rohini.html new file mode 100644 index 000000000..8051c1eaa --- /dev/null +++ b/mapapp/map/static/rohini.html @@ -0,0 +1,21 @@ + + + + + + ROHINI CINEMAS + + + +

ROHINI CINEMAS

+
Rohini Cinemas in Chennai is renowned for its excellent
+maintenance and customer service. The cinema is kept clean and hygienic, with
+well-maintained seating, air conditioning, and washrooms to enhance the movie-watching experience. 
+Regular checks ensure the sound and screen quality remain top-notch.
+The customer service team is approachable and efficient,assisting patrons with ticket 
+bookings, seating arrangements, and queries. Online and on-site support make
+the process seamless, while staff ensure timely service at concession stands.
+With a focus on comfort and convenience, Rohini Cinemas strives to
+deliver an enjoyable experience for every visitor.
+ + \ No newline at end of file diff --git a/mapapp/map/static/static - Shortcut.lnk b/mapapp/map/static/static - Shortcut.lnk new file mode 100644 index 000000000..b69469825 Binary files /dev/null and b/mapapp/map/static/static - Shortcut.lnk differ diff --git a/mapapp/map/static/thiru.html b/mapapp/map/static/thiru.html new file mode 100644 index 000000000..4bce9a26f --- /dev/null +++ b/mapapp/map/static/thiru.html @@ -0,0 +1,21 @@ + + + + + + THIRU VI KA PARK + + + +

THIRU VI KA PARK

+
Thiru Vi Ka Park in Chennai is a well-maintained public space, offering a 
+serene environment for relaxation and recreation. The park’s
+maintenance includes regular cleaning, landscaping, and upkeep of walking paths, ensuring a pleasant
+experience for visitors.Amenities like seating areas and play zones are periodically 
+inspected and repaired as needed.While there isn't a dedicated customer service team, park staff
+are approachable and assist visitors with any concerns. Security personnel ensure the 
+safety of visitors, and information boards provide guidelines for responsible use of
+the facilities. Overall, Thiru Vi Ka Park is a well-cared-for space that reflects the city's 
+commitment to providing quality public amenities.
+ + \ No newline at end of file diff --git a/mapapp/map/static/vr.htm b/mapapp/map/static/vr.htm new file mode 100644 index 000000000..284c1a21f --- /dev/null +++ b/mapapp/map/static/vr.htm @@ -0,0 +1,17 @@ + + + + + + VR CHENNAI + + + +

VR CHENNAI

+
The maintenance and customer service at VR Chennai Mall are designed to enhance your shopping experience. 
+The mall is well-maintained, ensuring clean and safe environments, with timely upkeep of facilities. 
+The customer service team is approachable and attentive, ready to assist with inquiries,
+resolve issues, and provide directions or support.Their commitment to quality
+ensures a seamless and enjoyable visit for every guest.
+ + \ No newline at end of file diff --git a/mapapp/map/tests.py b/mapapp/map/tests.py new file mode 100644 index 000000000..7ce503c2d --- /dev/null +++ b/mapapp/map/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/mapapp/map/views.py b/mapapp/map/views.py new file mode 100644 index 000000000..91ea44a21 --- /dev/null +++ b/mapapp/map/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/mapapp/mapapp/__init__.py b/mapapp/mapapp/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/mapapp/mapapp/__pycache__/__init__.cpython-312.pyc b/mapapp/mapapp/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 000000000..389074ce4 Binary files /dev/null and b/mapapp/mapapp/__pycache__/__init__.cpython-312.pyc differ diff --git a/mapapp/mapapp/__pycache__/settings.cpython-312.pyc b/mapapp/mapapp/__pycache__/settings.cpython-312.pyc new file mode 100644 index 000000000..846ccafbf Binary files /dev/null and b/mapapp/mapapp/__pycache__/settings.cpython-312.pyc differ diff --git a/mapapp/mapapp/__pycache__/urls.cpython-312.pyc b/mapapp/mapapp/__pycache__/urls.cpython-312.pyc new file mode 100644 index 000000000..7f31a1ebb Binary files /dev/null and b/mapapp/mapapp/__pycache__/urls.cpython-312.pyc differ diff --git a/mapapp/mapapp/__pycache__/wsgi.cpython-312.pyc b/mapapp/mapapp/__pycache__/wsgi.cpython-312.pyc new file mode 100644 index 000000000..ca6d04415 Binary files /dev/null and b/mapapp/mapapp/__pycache__/wsgi.cpython-312.pyc differ diff --git a/mapapp/mapapp/asgi.py b/mapapp/mapapp/asgi.py new file mode 100644 index 000000000..0f4ab4df0 --- /dev/null +++ b/mapapp/mapapp/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for mapapp project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/5.1/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mapapp.settings') + +application = get_asgi_application() diff --git a/mapapp/mapapp/settings.py b/mapapp/mapapp/settings.py new file mode 100644 index 000000000..057bc560c --- /dev/null +++ b/mapapp/mapapp/settings.py @@ -0,0 +1,124 @@ +""" +Django settings for mapapp project. + +Generated by 'django-admin startproject' using Django 5.1.2. + +For more information on this file, see +https://docs.djangoproject.com/en/5.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/5.1/ref/settings/ +""" + +from pathlib import Path +import os +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-*@rkg3*dw4#zgd-y9et*8wroc=rav2p_nai6q)n%#m^%t(v=7x' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = ['*'] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'mapapp.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'mapapp.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/5.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/5.1/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/5.1/howto/static-files/ + +STATIC_URL = 'static/' +STATICFILES_DIRS=[os.path.join(BASE_DIR,'map/static')] + +# Default primary key field type +# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/mapapp/mapapp/urls.py b/mapapp/mapapp/urls.py new file mode 100644 index 000000000..d831c1b2c --- /dev/null +++ b/mapapp/mapapp/urls.py @@ -0,0 +1,22 @@ +""" +URL configuration for mapapp project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/5.1/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/mapapp/mapapp/wsgi.py b/mapapp/mapapp/wsgi.py new file mode 100644 index 000000000..5a2e770ba --- /dev/null +++ b/mapapp/mapapp/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for mapapp project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/5.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mapapp.settings') + +application = get_wsgi_application() diff --git a/rohini.png b/rohini.png new file mode 100644 index 000000000..b9c07407e Binary files /dev/null and b/rohini.png differ diff --git a/thiru.png b/thiru.png new file mode 100644 index 000000000..d2cc17037 Binary files /dev/null and b/thiru.png differ diff --git a/vr.png b/vr.png new file mode 100644 index 000000000..a7b76abf0 Binary files /dev/null and b/vr.png differ