Python Any Where
Go to;
https://www.pythonanywhere.com/
Go to Console --> Bash
Enter the following for path
Create virtual envrolment:
copy the todoproject link in github
https://github.com/muhammedya/todoapp
Go to manage.py file using below step;
Install django.
after install go to side bar --> in dash board --> web --> add new web app --> next --> select Manual config --> 3.6
got to dashboard --> web --> WHI conficaration --> open Django ozhikeyulla ella files ul delete cheyyuka..
codes mathram un ude cheyyuka
path and project name add from console.
the pathe can get in Console --> Bash console --> type: pwd
copy paste
we can get new page and
tododatabase
go to files--> moviehub --> movie--->...--> moviepro --> Settings.py
/home/muhammedyaseen/todoapp/todo/todopro/todopro/settings.py
save
go to database
save
final update
for taking link: go files --> ..virtualenvs --> test (for confirm, this have bin/ and lib/ file.) eg: /home/muhammedyaseen/.virtualenvs/test
copy the lonk and pase on go to Web --> Virtualenv:
add static path
go to files --> /home/moviehub/moviehub/moviepro/static
when you are already migrates, you can delete auther vise no need.
go to console --> mysql -->
Again go to console --> Bash console 23909061
When server link alredy done change it.
or
or
Go to web ---> click Reload username.pythonanywhere.com
Go to click hosted link, username.pythonanywhere.com eg. http://muhammedyaseen.pythonanywhere.com/
paw login password:Yaseenpwa@mar2022 for muhammedyaseen Vertual envrolment:test SQLpassword:Todo@123456
paw login password: moviepaw@mar2022 for moviehub Vertual envrolment:movie SQLpassword:Movie@1234
user name: travelapp@hi2.in pawsd login password: Travel@1234 Vertual envrolment:test SQLpassword:Tyaseen@1234
paw login password: bROADWAY@1234 for shoping Vertual envrolment:shop SQLpassword:Broad@1234
admin
username: broadway
email:
pasw:way@1234
c.paw:way@1234
admin
Username (leave blank to use 'travelappyaseen'): travel
Email address: travelapp@hi2.in
pasw:tapp@1234
c.paw:tapp@1234
Go to Console --> Bash
Enter the following for path
pwd
Create virtual envrolment:
mkvirtualenv test --python=/usr/bin/python3.6
copy the todoproject link in github
https://github.com/muhammedya/todoapp
git clone https://
Go to manage.py file using below step;
(test) 10:16 ~ $ ls README.txt todoapp (test) 10:17 ~ $ cd todoapp (test) 10:19 ~/todoapp (main)$ ls todo (test) 10:20 ~/todoapp (main)$ cd todo (test) 10:20 ~/todoapp/todo (main)$ ls todopro (test) 10:21 ~/todoapp/todo (main)$ cd todopro (test) 10:21 ~/todoapp/todo/todopro (main)$ ls db.sqlite3 manage.py static templates todoapp todopro (test) 10:21 ~/todoapp/todo/todopro (main)$
Install django.
pip install django
pip install mysql-connector-python
pip install pillow
pip install mysqlclient
after install go to side bar --> in dash board --> web --> add new web app --> next --> select Manual config --> 3.6
got to dashboard --> web --> WHI conficaration --> open Django ozhikeyulla ella files ul delete cheyyuka..
codes mathram un ude cheyyuka
# +++++++++++ DJANGO +++++++++++ # To use your own django app use code like this: import os import sys # ## assuming your django settings file is at '/home/moviehub/mysite/mysite/settings.py' ## and your manage.py is is at '/home/moviehub/mysite/manage.py' path = '/home/moviehub/moviehub/moviepro' if path not in sys.path: sys.path.append(path) # os.environ['DJANGO_SETTINGS_MODULE'] = 'moviepro.settings' # ## then: from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
the pathe can get in Console --> Bash console --> type: pwd
copy paste
Database
Go to Database --> password and confirm pasword.(shoul not same as login psw)we can get new page and
tododatabase
go to files--> moviehub --> movie--->...--> moviepro --> Settings.py
/home/muhammedyaseen/todoapp/todo/todopro/todopro/settings.py
ALLOWED_HOSTS = ['*'] # Application definition
go to database
save
final update
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'muhammedyaseen$tododatabase', 'USER': 'muhammedyaseen', 'PASSWORD': 'Todo@1234', 'HOST': 'muhammedyaseen.mysql.pythonanywhere-services.com', } }
Vetual envrolment and Static files adding
add vetual envrolment : testfor taking link: go files --> ..virtualenvs --> test (for confirm, this have bin/ and lib/ file.) eg: /home/muhammedyaseen/.virtualenvs/test
copy the lonk and pase on go to Web --> Virtualenv:
add static path
/static/
when you are already migrates, you can delete auther vise no need.
go to console --> mysql -->
show databases;
Again go to console --> Bash console 23909061
python manage.py makemigrations python manage.py migrate python manage.py runserver
When server link alredy done change it.
python manage.py runserver 8001
or
python manage.py runserver 5000
or
python manage.py runserver 5001
Go to web ---> click Reload username.pythonanywhere.com
Go to click hosted link, username.pythonanywhere.com eg. http://muhammedyaseen.pythonanywhere.com/
paw login password:Yaseenpwa@mar2022 for muhammedyaseen Vertual envrolment:test SQLpassword:Todo@123456
paw login password: moviepaw@mar2022 for moviehub Vertual envrolment:movie SQLpassword:Movie@1234
user name: travelapp@hi2.in pawsd login password: Travel@1234 Vertual envrolment:test SQLpassword:Tyaseen@1234
paw login password: bROADWAY@1234 for shoping Vertual envrolment:shop SQLpassword:Broad@1234
admin
username: broadway
email:
pasw:way@1234
c.paw:way@1234
admin
Username (leave blank to use 'travelappyaseen'): travel
Email address: travelapp@hi2.in
pasw:tapp@1234
c.paw:tapp@1234
No comments