to install this on your project, do:
Steps:
- Clone this repository: hit in your terminal:
git clone git@github.com:dbijaya/bug-free-octo-dollop.git
- Copy the folder named 'django-polls' and then paste outside of your current project directory.
- and hit command:
python -m pip install --user django-polls/dist/django-polls-0.1.tar.gz
. - use Vertual environment (optional, but Recommended)
- you may haven't installed setuptools, if not do install:
pip install setuptools
- don't forget to specify app name 'polls' in your project settings.py file as:
INSTALLED_APPS = [
...
'polls',
]
- also, specify url in 'urls.py' as:
from django.urls import path, include
urlpatterns = [
path('polls/', include('polls.urls'),)
]
- now run,
python manage.py runserver
- locate url:
http://localhost:8000/polls/
with Luck, it should work :)