Git Product home page Git Product logo

test_trainer's Introduction

TestTrainer website

This project helps user learning through the process of solving different test examns. The site allow user to create custom test and displays some useful statistics about the test learning experience.

Home page https://test-trainer-dub0k.c9.io/ Admin page https://test-trainer-dub0k.c9.io/admin

Requirements

This project use django1.8 and Python3.4 See requirements.txt for more info

Starting django app

#####1) Create virtual env

     $ virtualenv -p /usr/bin/python3.4  env
     $ source env/bin/activate
     $ pip install django
     $ which django-admin

#####2) Start django project

     $ django-admin.py startproject testTrainer
     $ python manage.py migrate
     $ python manage.py createsuperuser
     $ python manage.py runserver  $IP:$PORT

#####3) Create repo

     $ git init
     $ git add .
     $ git remote add origin https://github.com/DuB0k/test_trainer.git
     $ git commit -m "First commit"
     $ git push -u origin master

Django steps

#####1) Create the project:

	$ django-admin startproject testTrainer

#####2) Change dir to the django root directory:

     $ cd testTrainer

#####3) Create tables in the database:

     $ python manage.py migrate
 Note:
 The migrate command looks at the INSTALLED_APPS setting and creates any necessary database tables according to the database settings in your mysite/settings.py file and the database migrations shipped with the app

#####4) Create app tests:

     $ python manage.py startapp tests

#####5) Create tests/models.py with some database content #####6) Install tests app editing INSTALLED_APPS in settings.py #####7) Create database migrations for tests app model

     $ python manage.py makemigrations tests

#####8) Display database sentences of the new migration file created above

     $ python manage.py sqlmigrate tests 0001

#####9) Migrate database

     $ python manage.py migrate

#####10) Create admin user

     $ python manage.py createsuperuser

#####11) Make the tests app modifiable in the admin Edit tests/admin.py

     admin.site.register(Test)

test_trainer's People

Contributors

dub0k avatar

Watchers

 avatar  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.