Giter Site home page Giter Site logo

cop4710's Introduction

COP4710 Project

To sucessfully run this Django project you will need the following programs:

  1. Install Python 3.6.5

  2. Type command on cmd.exe pip install virtualenvwrapper-win

    Note: This installs a virtual enviroment to install python library without needing to mess up your PATH environment variable on windows.

  3. Creating a virtual environment: mkvirtualenv myproject

    Note: This creates a virtual enviroment for a python project. the folder 'myproject' will be under a folder called Envs.

  4. Initializing the virtual environment(VE): workon myproject

    Note: Initializes virtual environment. Doing so will activate any libraries that a user has installed using this virtual environment (such as Django)

  5. Once VE has been initialized, install Django: pip install Django

  6. Install MariaDB

  7. Install on Virtual Enviornment mysqlclient with file

    Note: Once file has been downloaded go to file location and initialize the VE. Run command: pip install <filename>

  • If an error occurs regarding C++ 14.0 dependencies click link to install C++ 14.0 Build Tools
    • If Error persists, Link up C++ 14.0 to your PATH variable:
      1. C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
      2. C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
  1. Go to retroGame/retroGame/settings and change DATABASE to
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'USER': 'root',
        'NAME': '$DATABASE',
        'PASSWORD': '$PASSWORD',
        'PORT': '3306',
        #'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}
  • $DATABASE: Database in your MariaDB server
  • $PASSWORD: Password for the root user
  1. Run the Django Server: python manage.py runserver

Simple Django commands

  • Start the django server on localhost: python manage.py runserver
  • Accessing django shell for database: python manage.py shell
  • If database has changed: python manage.py inspectdb > retoGameWeb/models.py

Django Documentation & Tutorial

cop4710's People

Watchers

James Cloos 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.