A unique website with many features that introduces users to the latest phones and leads them to the best with the best offer.
python -m venv venv
Now you should activate your venv. So in the main root of project you should type this command in your Terminal or Console:
source venv/bin/activate
./venv/Scripts/activate
After activating venv you should install the requirements.txt packages. So type this command in your Terminal or Console:
pip install -r requirements.txt
for more details about google auth please read this Docs.
In smartTech/settings.py in databse section import your own information (USER, PASSWORD) and create database called smarttech in your local databse
python manage.py migrate
Configuration of database almost done.
go to folder /smartTech Data/ and insert data based on the following pattern:
- smarttech_mainpage_smartphone.sql
- smarttech_mainpage_smartphonedescription.sql
- smarttech_mainpage_smartphoneimgurl.sql
- smarttech_mainpage_offer.sql
- smarttech_mainpage_post.sql
- smarttech_mainpage_postdescription.sql
python manage.py runserver
http://127.0.0.1:8000/
OR
http://localhost:8000/
If you want to access database by admin default of django type this command in your Terminal or Console:
python manage.py createsuperuser
and then set username and password and go to http://localhost:8000/admin finally login and enjoy