Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
| A warning occurred (42 apples) | |
| An error occurred |
| import unittest | |
| from flask import Flask, make_response | |
| from pymongo import MongoClient | |
| from pymongo.errors import ConnectionFailure | |
| from mockupdb import go, MockupDB, OpQuery | |
| def make_app(mongodb_uri): | |
| app = Flask("my app") |
| from . import sqlinjection | |
| from flask import Flask, request, json, Response, jsonify, render_template, url_for, redirect | |
| import mysql.connector | |
| @sqlinjection.route('/SQLInjection', methods = ['GET','POST']) | |
| def SQLinjection(): | |
| if request.method == 'POST': | |
| idMovie = str(request.form['idMovie']) | |
| try: | |
| cnx = mysql.connector.connect(user='root', database='MovieTheatre', password="codecode") |
Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
###Let's install Vagrant###
###Select a Vagrant Box from https://vagrantcloud.com###
#add it to your list of boxes
vagrant box add hashicorp/precise32
#create a new folder for your project & init vagrant