Welcome to the Learning Log!
-
Clone the repository:
git clone [email protected]:bnjtgly/learning_log.git
-
Navigate into the project directory:
cd learning_log
-
(Optional) Create a virtual environment:
python3 -m venv env
-
Activate the virtual environment (skip this step if not using a virtual environment):
source env/bin/activate
-
Install dependencies:
pip install django djangorestframework
-
Ensure you're in the project directory.
-
Apply migrations:
python manage.py migrate
-
(Optional) Create a superuser for accessing the Django admin interface:
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Open your web browser and go to
http://127.0.0.1:8000/
to view the project. Once the server is running, you can access the Django admin interface by navigating to http://127.0.0.1:8000/admin in your web browser.
- For production deployment, make sure to set
DEBUG = False
insettings.py
and configure your server accordingly. - For more detailed instructions and documentation, refer to the Django Documentation.