Title: "Railway Management System" Author: "Vraj Mistry & Ekansh Verma" Date: "26 June 2020"
. refers to Project Directory i.e. current working directory
1. ./railway/views.py : Contains important methods which return HttpResponse object
2. ./Project_1/urls.py : Map url to methods in views
3. ./static : Css and Images
4. ./templates : HTML pages
5. ./Project_1/settings.py: Store database details, template path, static path.
- Open ubuntu command prompt
- Start mysql as
mysql -u <your_user> -p
- Create database
raildb
ascreate database raildb;
- Select database as
use raildb;
- Use
commandlist.sql
file in the main repository to create and populate tables. Runsource <path>/MyRailway/commandlist.sql
Go to the TestSite directory and run python manage.py runserver
After starting the server go to the https://127.0.0.1:8000
i.e. homepage of the website.