- Go to pythoneverywhere.com
- create account and login
- Go to consoles
- Select bash console
- Create virtual environment for python
mkvirtualenv --python=python3.8 envname
- Your environment will be activated and in bash you will see the envname in parenthesis
- Install django
pip install -U django==3.0.3
- check django path
which django-admin.py
- install necessary packages
pip instal xyz
- Clone git repo
git clone repo.git
- Go to dashboard of pythoneverywhere.com and go to Web
- Select create new web app
- next
- select manual configuration
- next next done !
- here you will see the url for your project clik and you will see hello world page which is default for pyton
- config webapp
- setvirtualenv path which u find in console using
which django-admin.py
- set source code
/home/username/projectname
- static files
- set
/static/admin/
as/home/jspw/.virtualenvs/blog/lib/python3.8/site-packages/django/contrib/admin/static/admin
- set
/static/
as your project static folder path as mine is/home/jspw/shifat.com/blog/static
- set
- set
Virtualenv
dir as/home/username/.virtualenvs/env_name
- Edit WSGI configuration file as the file given below
- Done ! Clik on the reload in the webapp page then go to the website url and boom!!!
Note : Chekc settings.py file and you have allowed your host url.