iPortfolio_demo.mp4
Create a .env
file inside src/config
and paste this content and modify it based on your project:
SECRET_KEY=<YOUR_SECRET_KEY>
DEBUG=False
ALLOWED_HOSTS=*
POSTGRES_ENGINE=django.db.backends.postgresql
POSTGRES_DB=<YOUR_DATABASE_NAME>
POSTGRES_USER=<YOUR_DATABASE_USER>
POSTGRES_PASSWORD=<YOUR_DATABASE_PASSWORD>
POSTGRES_HOST=db
POSTGRES_PORT=5432
CORS_ALLOWED_ORIGINS=http://localhost http://0.0.0.0
CSRF_TRUSTED_ORIGINS=<https://*.your_domain.com> http://0.0.0.0
SUPERUSER_USERNAME=<YOUR_SUPERUSER_USERNAME>
SUPERUSER_PASSWORD=<YOUR_SUPERUSER_PASSWORD>
SUPERUSER_EMAIL=<YOUR_SUPERUSER_EMAIL>
- Install
docker
anddocker compose
- In directory that
docker-compose.yml
exists run:
docker-compose up --build -d
- For stopping server run:
docker-compose down
- Install make.
- Clone the project.
- Create
.env
file insrc/config
path. - Modifiy
.env
file based on your database information. - Create a virtual environment
python -m venv venv
. - Activate the environment
source venv/bin/activate
- In the root directory of project
cd
tosrc
and run:
make all
- Create a superuser with specified
SUPERUSER_USERNAME
&SUPERUSER_PASSWORD
info in.env
file:
make createsuperuser
- Run server:
make run
- Open up your browser in
localhost:80/admin
. - Use your credentials to login and add all of your information.