Skip to content

SajjadAhmadizad/django-shopping-website

Repository files navigation

1-Fill these values ​​in settings.py

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'your gmail address'
EMAIL_HOST_PASSWORD = 'XXXXXXXXXXXXXXXX'
EMAIL_PORT = 587

2-Then install the required libraries using the following command :

pip install -r requ.txt

3-Create a sqlite database in the main project path named db.sqlite3

4-Migrate database with using the following command :

python manage.py migrate

5-Create a SuperUser using the following command :

python manage.py createsuperuser

6-run the project with the following command :

 python manage.py runserver

7-go to Admin Page and add some Product, Product Category and etc.

8-Finally, create an instance of the SiteModel and fill the domain_name field in this format: exampledomain.example. This is important for sending emails