- Frontend: customizations
- Database models: all datas
- Set up: docker environment
- Frontend: bootstrap template
- Set up: django project & github repo
Welcome to my Portfolio Website! Here is the Django CV page project for the technical lecture of Advanced Web Programming. Main purpose is the learning and practicing;
- Django in backend applications,
- Docker container and enviroment,
- Bootstrap which is a framework of CSS.
Take a look at my learning journey for Django & Bootstrap & Docker; and feel free to send feedback!
- Django in backend applications,
- Docker container and enviroment,
- Bootstrap which is a framework of CSS.
Take a look at my learning journey for Django & Bootstrap & Docker; and feel free to send feedback!
- Virtual environment setup:
python3 -m venv environment_name
- To activate the virtual environment (Windows):
environment_name/Scripts/activate
- To activate the virtual environment (Linux / MacOS):
source environment_name/bin/activate
- Install dependencies:
pip install -r requirements.txt
or
pip3 install -r requirements.txt
- Run:
python manage.py runserver
or
python3 manage.py runserver
- Note: For deactivating python enviroment:
deactivate
or in MacOS / Linux:
source deactivate
Build and run the app:
docker-compose up --build
or
docker compose up --build
- Build and run the app in the background:
docker-compose up --build -d
- See current runs with container IDs:
docker ps
- Stop the run:
docker stop <container_id>
- Stop and remove the run:
docker-compose stop <container_id>
- About migrations:
- Create a new migration from models;
docker-compose run app python3 manage.py makemigrations
- Apply migrations to database;
docker-compose run app python3 manage.py migrate
- Create superuser with docker:
docker-compose run app python3 manage.py createsuperuser
This project is licensed under the MIT License - see the LICENSE file for details.