CareersFlux is a project using Django Framework of our group in the Information System Security subject
- Clone the project:
git clone https://github.com/HiepThanhTran/CareersFlux-Website.git
- Create Virtual Environment:
python -m venv venv
- Activate the environment
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies from requirements.txt
pip install -r requirements.txt
- 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',
},
}
- 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