Django Stack: Django, python and SQLite3 as Database
-
Install python for respective OS: Click here
-
Install pip for respective OS: Click here
-
Install Django for respective OS: Click here
Navigate to project folder where settings.py present and do following changes in code (present at the end of settings.py file)
Enter your email and password of gmail account from which mail has to be send
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your_password'
Note :
-
Allow EMAIL_HOST_USER to allow less secure apps to send mail(gmail account), since this website is on localhost now. You won't have to allow less secure apps to access EMAIL_HOST_USER once SSL certificate is enabled for this website.
-
Since this website is running on local server therefore there isn't SSL certificate for this website yet.
-
Reciever's email(gmail accounts) list is set in the code itself.
-
Open command prompt
-
Navigate to project folder where manage.py present
-
Run following command
python manage.py runserver
-
Open a browser.
-
Search for: 127.0.0.1:8000/enterphone
You now have website running on your browser