This is my first Web Project Based on Django and Vue Realized Redirect from IP Adress to Domain https://ithillel-leonid.ogir-ok.com/
- Bootstrap
- Vue.js
- Pinia
- JavaScript
- SSL Certificate
- clone it
git clone https://github.com/edonssfall/IMDB.git
- copy
example.dev.py
todev.py
and fill it
DATABASES = {
'default': {
'NAME': 'DB Name',
'USER': 'DB User',
'PASSWORD': 'DB Password'
}
}
CELERY_BROKER_URL = 'redis://redis:port/celery_tasks'
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '<your app id goes here>'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = '<your app secret goes here>'
SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile',
]
STATIC_ROOT = '/folder/for/static'
- copy
.env.example
to.env
and fill it.env
SECRET_KEY='secret_key_for_django'
db.env
POSTGRES_PASSWORD=DB_PASSWORD
POSTGRES_DB=DB_NAME
- check client/src/constance.js on host-name
export let DjangoAPIHost = 'http://localhost:8000/';
//export let DjangoAPIHost = 'http://fill.your.address/';
- run
docker-compose up
- makemigrations and create super user
docker exec -it docker_web_name bash
./manage.py migrate
./manage.py createsuperuser