- Create a very simple site that consumes offer svc API as a server-side call and displays deals in an appealing manner.
- About.md
- Website
.
+-- Procfile
+-- Pipfile
+-- requirements.txt
+-- runtime.txt
+-- manage.py
+-- hotel_deals
| +-- settings.py
| +-- urls.py
| +-- wsgi.py
| +-- __init__.py
+-- main
| +-- static
| | +-- css
| | | +-- style.css
| +-- templates
| | +-- hotel_deals
| | | +-- index.html
| +-- apps.py
| +-- form.py
| +-- models.py
| +-- services.py
| +-- urls.py
| +-- views.py
+-- db.sqlite3
Requirements:
After you install the required list.
- We will be using a new directory
hotels
from your home directory.
$ mkdir hotels
$ cd hotel
- Create a virtualenv called
myvenv
.
$ python -m venv myvenv
- Move the project to your main web root directory. for example:
$ pwd
/WWW/django_projects/hotel_deals
- Run the server
python manage.py runserver