GlobBar / server

0 stars 0 forks source link
  1. Install Linux, Apache, MySQL https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04

  2. After cloning project Create config from dist file - cd ProjectName cp nightlife/settings.py.dist nightlife/settings.py

  3. in settings.py set database access parameters DATABASES ('USER' : 'userName', 'PASSWORD' : 'upassword' )

  4. Create a virtualenv to isolate our package dependencies locally sudo apt-get install virtualenv virtualenv 'nightlifeenv' source nightlifeenv/bin/activate # On Windows use env\Scripts\activate

  5. sudo apt-get install libmysqlclient-dev

  6. Install dependencies pip install -r requirements.txt

  7. Now sync your database for the first time: python manage.py migrate

  8. We'll also create an initial user named admin with a password of password123. We'll authenticate as that user later in our example. python manage.py createsuperuser

  9. Start server - python manage.py runserver

  10. got to http://mysyte.com (login: admin, password: password123).