Skip to content

hdevlin2913/CareersFlux-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CareersFlux - Career Consulting

CareersFlux is a project using Django Framework of our group in the Information System Security subject

Installation

  1. Clone the project:
git clone https://github.com/HiepThanhTran/CareersFlux-Website.git
  1. Create Virtual Environment:
python -m venv venv
  1. Activate the environment
source venv/bin/activate   # On Windows: venv\Scripts\activate
  1. Install dependencies from requirements.txt
pip install -r requirements.txt
  1. Makemigration and migrate database:
python manage.py makemigrations
python manage.py migrate

Note: Make sure you connect to your database configured in the settings.py file:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.<ENGINE>',
        'NAME': '<DATABASE_NAME>',
        'USER': '<DATABASE_USER>',
        'PASSWORD': 'DATABASE_PASSWORD>',
        'HOST': '<YOUR HOST>',
        'PORT': '<YOUR PORT>'
    }
}

Or you can use sqlite3:

DATABASES = {
    'default': {
         'ENGINE': 'django.db.backends.sqlite3',
         'NAME': BASE_DIR / 'db.sqlite3',
     },
}

Run locally

  • After that just run project in localhost with the following command in terminal:

HTTP Protocol

python manage.py runserver

HTTPS Protocol (For Login/Signup with Facebook)

python manage.py runsslserver