Giter Site home page Giter Site logo

placesweb's Introduction

placesWeb with Django Framework and Google Appengine Infrasctructure

Using Django project Django with Google App Engine Flexible Environment. It uses the Writing your first Django app as the example app to deploy.

Template

This uses the django App Engine Standard enviroment as a templateRunning Django in the App Engine Standard Environment tutorial for instructions for setting up and deploying this sample application.

App Engine instance

Google Cloud SQL instance: polls-instance

#command to run on linode server environment using uwsgi uwsgi --http :8080 --home /home/django/Env/places/ --chdir /home/django/placesWeb/ --module mysite.wsgi

#Kill process running with uwsgi kill pidof uwsgi

#Activate Virtual enviroment inside project source ./bin/activate

#Deactivate deactivate

#All dependencies should be installed on Env virtual environment #Dependencies needed so far

pip install --upgrade django-crispy-forms pip install djangorestframework pip install markdown pip install django-filter pip install MySQL-python

#SERVER #Uwsgi #Configuration vim /etc/uwsgi/sites/placesweb.ini #Run uwsgi sudo service uwsgi start sudo service uwsgi stop vim /etc/uwsgi/sites/placesweb.ini

[uwsgi] project = placesWeb base = /home/django

chdir = %(base)/%(project) home = %(base)/Env/places module = mysite.wsgi:application

master = true processes = 2

socket = %(base)/%(project)/%(project).sock chmod-socket = 666 vacuum = true

#Run nginx sudo service nginx start sudo service nginx stop vim /etc/nginx/sites-enabled/places server { listen 80; server_name placestime.com;

location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
    root /home/django/placesWeb;
}

location / {
    include         uwsgi_params;
    uwsgi_pass      unix:/home/django/placesWeb/placesWeb.sock;
}

}

#Linode configuration https://www.linode.com/docs/web-servers/nginx/deploy-django-applications-using-uwsgi-and-nginx-on-ubuntu-14-04

placesweb's People

Contributors

mmzepedab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.