update settings
This commit is contained in:
parent
ee934d730a
commit
78424c709e
7 changed files with 17 additions and 10 deletions
|
|
@ -34,10 +34,16 @@ EMAIL_HOST_USER = 'andre.kempf.dev@gmail.com'
|
|||
EMAIL_HOST_PASSWORD = 'oyxwawshudwytgud'
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
ALLOWED_HOSTS = [
|
||||
'videoflix-django.andre-kempf.com',
|
||||
'34.65.103.198',
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
]
|
||||
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
'http://localhost:4200'
|
||||
'https://34.65.103.198',
|
||||
'http://localhost:4200',
|
||||
]
|
||||
|
||||
# Application definition
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { CommonModule } from '@angular/common';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { environment } from '../../../../environments/environment.development';
|
||||
import { environment } from '../../../../environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-categories',
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {
|
|||
} from '@angular/core';
|
||||
import { BtnLargeComponent } from '../../../../shared/components/btn-large/btn-large.component';
|
||||
import { MovieService } from '../../../../services/movie.service';
|
||||
import { environment } from '../../../../environments/environment.development';
|
||||
import { environment } from '../../../../environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-hero-banner',
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
export const environment = {
|
||||
baseUrl: 'http://127.0.0.1:8000/',
|
||||
};
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
export const environment = {
|
||||
baseUrl: '',
|
||||
// Development
|
||||
baseUrl: 'http://127.0.0.1:8000/',
|
||||
|
||||
// Live
|
||||
// baseUrl: 'https://videoflix-django.andre-kempf.com',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { catchError, lastValueFrom, map, Observable, of } from 'rxjs';
|
||||
import { environment } from '../environments/environment.development';
|
||||
import { environment } from '../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { lastValueFrom, Observable, of } from 'rxjs';
|
||||
import { environment } from '../environments/environment.development';
|
||||
import { environment } from '../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
|
|
|||
Loading…
Reference in a new issue