user-changeable:
- title
- category
- preview card
- price
- product color
- device storage size
- count of products
hidden:
- card id
- views *the more views on your card, the higher it is in the list
- owner
- Install python 3.11.0 and git
- Create python venv in directory
...\somedir\emarket
python -m venv path\to\myenv
- Clone this repo with command
git clone https://github.com/blago-white/emarket.git
from the...\somedir
-
Сreate a file .env in the root of the project and fill it with your data
SECRET_KEY=... POSTGRES_HOST=... POSTGRES_USER=... POSTGRES_PASSWORD=... POSTGRES_TEST_PASSWORD=... POSTGRES_DB=... POSTGRES_PORT=... EMAIL_HOST_USER=... EMAIL_HOST_PASSWORD=... DEFAULT_FROM_EMAIL=$EMAIL_HOST_USER
- Activate the venv from
...\somedir\emarket
with command:venv\Scripts\activate
on windows orsource venv/bin/activate
in linux - Run
pip install -r requirements.txt
from...\somedir\emarket
to install dependencies - Run migrations with:
python emarket\manage.py makemigrations --setting=emarket.testsettings
python emarket\manage.py migrate --setting=emarket.testsettings
- Run the testserver from
...\somedir\emarket
python emarket\manage.py runserver --setting=emarket.testsettings --insecure
- ✨Perfectly!Go to localhost and enjoy the site!