Skip to content

ces131/UbicosAppServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

UbicosAppServer

pythonanywhere configuration: https://www.youtube.com/watch?v=Y4c4ickks2A

  1. Go to the bash and clone the repository: https://github.com/hcilabasu/UbicosAppServer
  2. Create Virtual Environment: mkvirtualenv --python=/usr/bin/python3.6 myenv
  3. Install Django: pip install django
  4. Install corsheaders: pip install django-cors-headers
  5. Under the 'Web' tab, create a new Web-Application and configure the virtual environment just created above
  6. Configure the wsgi.py file by setting up the path for this project ('/home/hcilabasu/UbicosApp/textbook') and also Django_Settings_Module (textbook.settings)
  7. In the Django Project settings.py, add 'hcilabasu.pythonanywhere.com' in ALLOWED_HOST array.
  8. Reload the server.
  9. (setting the static files): https://blog.pythonanywhere.com/60/ 9.a. In pythonanywhere add the following two url-directory pair /static/admin/ - /usr/local/lib/python2.7/dist-packages/django/contrib/admin/media /static/ - /home/hcilabasu/UbicosApp/textbook/app/static
  10. Reload the server.

(pusher library installation)

  1. Go inside the virtual environment using the bash console
  2. pip install pusher
  3. reload the applicatin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 44.6%
  • JavaScript 31.0%
  • Python 12.5%
  • CSS 11.9%