Ce guide vous expliquera comment installer le projet, installer les dépendances nécessaires, effectuer les migrations de base de données et lancer le serveur de développement pour commencer à travailler sur le projet.
Avant de commencer, assurez-vous d'avoir les éléments suivants installés sur votre système :
- Python 3.9.2
- Pip (le gestionnaire de paquets Python)
- Installer virtualenv :
- Windows :
pip install virtualenv
- Linux :
python3 -m pip3 install virtualenv
- Windows :
- Creer et activer un environnement virtuel de développement :
- Windows :
virtualenv venv ./venv/Scripts/activate
- Linux :
python3 -m venv venv source venv/bin/activate
- Windows :
- Cloner le projet sur votre ordinateur :
- Windows :
git clone https://github.com/Dylan245-droid/djangi-cms-starter.git
- Linux :
git clone https://github.com/Dylan245-droid/djangi-cms-starter.git
- Windows :
- Windows :
cd djangi-cms-starter pip install -r requirements.txt
- Linux :
cd djangi-cms-starter pip3 install -r requirements.txt
- Windows :
python manage.py makemigrations python manage.py migrate
- Linux :
python3 manage.py makemigrations python3 manage.py migrate
- Windows :
python manage.py runserver
- Linux :
python3 manage.py runserver 0.0.0.0:8000
Félicitations, vous pouvez maintenant commencer à travailler sur le projet. Acceder à votre projet depuis le navigateur de la manière suivante :
- Windows :
http://127.0.0.1:8000
- Linux :
http://[votre_adresse_ip]:8000
Consulter la documentation de Django-CMS : https://docs.django-cms.org/en/latest/ pour vous aider à prendre en main la technologies et ses fonctionnalités.