Skip to content

ashleyvargas/Poll_App

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poll_app

This is a basic app used to learn django.

#Installation of Requiremets

  1. Apache2

Run the following command in terminal to install

 $ sudo apt-get install apache2
  1. mysql-server

Run the following commands in terminal

$ sudo apt-get install mysql-server
  1. python2.7

Run the following commands in terminal

$ sudo apt-get install python
  1. python-pip

Run the following commands in terminal

$ sudo apt-get install python-pip
  1. python-mysqldb

Run the following commands in terminal

$ sudo apt-get install python-mysqldb
  1. django

Run the following commands in terminal

$ sudo pip install django==1.7

##Steps for Installation -:

  1. Fork this repository and clone the forked repository

    $ git clone 'link to your forked repository'

  2. Create a database for LibreHatti.

    $ mysql -u root -p $ create database mysite; $ quit

  3. Edit settings.py file in mysite/polls directory. Things to be edited are:

Line No 60 : DATABASES

NAME : mysite
USER : Your MySQL username
PASSWORD : Your MySQl password
  1. Go to the project directory and run the following commands.

    $ cd mysite $ python manage.py migrate $ python manage.py runserver 127.0.0.1:8090

  2. Open 'localhost:8090' in your browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.8%
  • HTML 14.2%