-
Notifications
You must be signed in to change notification settings - Fork 123
Installation using Django dev server
We will install pyDash and run it using Django's internal dev server. This is not recommended for running on external internet facing interfaces/IPs or any type of production like environment
Run:
sudo yum -y install git python-pip
Centos 6
Run:
sudo yum -y install http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo yum -y install git python-pip
Centos 5
Run:
sudo yum -y install http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudo yum -y install git python-pip
Run:
sudo apt-get install git python-pip
Please make sure you change the SECRET_KEY, please see https://docs.djangoproject.com/en/dev/ref/settings/ for more details.
Run:
cd /home
sudo git clone https://github.com/k3oni/pydash
cd pydash
edit pydash/settings.py and change the SECRET_KEY value
sudo pip install -r requirements.txt
sudo ./manage.py syncdb
Enter the user information, to create your login user:
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'root'): admin (Enter your desired username)
Email address: [email protected] (Enter your email address)
Password: xxxxx (Enter your desired password)
Password (again): xxxxx (Enter your password again)
Run:
`sudo ./manage.py runserver`
This will start the server on localhost
and port 8000
.
If you want to run it on all interfaces append 0.0.0.0:8000
, you can as well change the port using 0.0.0.0:80
.