To develop a website to display details about the places around my house.
Creating Repository:
First, a path to make a folder where git needs to be created is identified.
Fork the repository (https://github/gowriganeshns/places-around-me)
Clone the repository
After cloning the folder with the repository name places-around-me will be created
Write the following commands
cd serverside
django-admin startproj myproj
>Then move into the folder myproj where manage.py file is located. Now give the commands to create myapp
python3 manage.py startapp myapp
.Then change the necessary settings in the settings.py.
from pathlib import Path
import os
ALLOWED_HOSTS = ['*']
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'myapp'
]
STATICFILES_DIR=[
os.path.join(BASE_DIR,'static')
]
>Now go to /home/sec/FWAD/ex04/places-around-me/myproj and type the following commands
1. mkdir static
2. cd static
3. mkdir html
4. cd html
5. touch garden.html
6. touch ground.html
7. touch home.html
8. touch lake.html
9. touch park.html
10.touch map.html
>Select the image file required for the project, go to imagemap.org and use the tools provided to create html code for image mapping, and paste the code in map.html
- map.html
- park.html
- lake.html
- home.html
- ground.html
- garden.html
Lake Interface:
Imagemap interface has been created succesfully.
The program for implementing image maps using HTML is executed successfully.