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\ Магазин одежды
- Host: GitHub
- URL: https://github.com/devvsima/salamis-project
- Owner: devvsima
- Created: 2023-12-12T14:39:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-09T13:19:42.000Z (10 months ago)
- Last Synced: 2024-08-09T14:49:20.178Z (10 months ago)
- Topics: django, django-magazine, django-project, django-rest-framework, market, postgresql, python, sqlite
- Language: HTML
- Homepage: http://salamis.shop
- Size: 4.89 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```