by Chayathon Khuttiyanon
Polls application that following Django tutorial document
The application requires
- Python 3.7.2 or newer
- Python add-on modules as in requirements.txt
Open the Terminal and type the following command:
git clone https://github.com/plumest/django-polls.git
Go to django-poll
directory:
cd django-poll
Create virtual environment.
For Windows:
python -m venv venv
For Mac/Linux:
python3 -m venv venv
Activate virtual environment.
For Windows:
venv\bin\activate.bat
For Mac/Linux:
source venv/bin/activate
Install requirements.
(venv) pip install -r requirements.txt
Migrate your database:
(venv) python manage.py migrate
Make sure you have db.sqlite3
file in django-poll
Go to django-poll
directory
Run following command on the Terminal
(venv) python manage.py runserver