Skip to main content

Posts

Showing posts from February, 2024

Django application from scratch to deploy with apache2

Setting Up My Environment To start developing my Django application, I need to have Python installed on my system. If it's not installed yet, I can download it from the official website here . Once Python is installed, I can proceed to install Django. It's recommended to use a virtual environment to avoid conflicts with other projects. I will use virtualenv. To install virtualenv, I use the following command: diego@diego-romero.xyz:~/blog/django-scartch-to-deploy$ pip install virtualenv After installing virtualenv, I create a new virtual environment with the following command: diego@diego-romero.xyz:~/blog/django-scartch-to-deploy$ python -m virtualenv venv This creates a new folder named venv in the current directory. To activate the virtual environment, I use this command: diego@diego-romero.xyz:~/blog/django-s...