An open API service indexing awesome lists of open source software.

https://github.com/devvsima/salamis-project

Django clothing store\ Магазин одежды
https://github.com/devvsima/salamis-project

django django-magazine django-project django-rest-framework market postgresql python sqlite

Last synced: 3 months ago
JSON representation

Django clothing store\ Магазин одежды

Awesome Lists containing this project

README

        

# Clothing store \ Магазин одежды

Technologies used:
Django, PostgreSQL


## How to install?

```bash
git clone https://github.com/devvsima/salamis-project.git
cd salamis-project
```
### Virtual environments ".venv"

Linux:
pip3 install -r requirements.txt
```bash
python3 -m venv .venv
source .venv\bin\activate
```
Windows
```bash
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
```
`.venv` you can change it to another name

### Configure environment variables
Copy file `.env.dist` and rename it to `.env`
```
$ cp .env.dist .env
```
Than configure variables
```bash
$ vim .env
# or
$ nano .env
```
### .env settings:
server_debug=True
server_port=80
server_ip=138.197.184.125
server_domain=devsima.site

`server_debug` - True/False debug mode

`server_port` - port django

`server_ip` - your server ip

`server_domain` - domen example - "salamis.shop"

Dababase postgres

`DB_NAME` - database name

`DB_HOST` - database host

`DB_PORT` - database port

`DB_USER` - user with access to the database

`DB_PASS` - database password


### Once you have filled the .env with your config, you can run the project.

Making migrations:
```bash
python manage.py makemigrations
python manage.py migrate
```

Сreate admin user:
```bash
python manage.py createsuperuser
```

Start Django:
```bash
python manage.py runserver
```