Lesson

Set up your Django Project

Learn Set up your Django Project in SQLPad's Machine Learning Model production with Django and Heroku course with practical examples and guided lessons.

Kickstart your ML production journey by setting up a Django project on a Mac. This step-by-step guide ensures smooth local deployment, laying a strong foundation

We will set up your project and install a few tools and python libraries.

#1. CREATE PROJECT FOLDER

mkdir sentiment_analysis

cd sentiment_analysis

#2. INSTALL PIP (optional)

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

#3. INSTALL VIRTUALENV UTILITY (optional)

pip install virtualenv

#4. INSTALL THE ACTUALL VIRTUAL ENVIRONEMENT

virtualenv -p python3 venv

#5. INSTALL DJANGO

pip install django

#6. START DJANGO PROJECT

django-admin startproject sentiment_analysis .

#7. TEST THE DJANGO INSTALLATION

python manage.py runserver