Skip to content

Installation

laDanz edited this page Jun 8, 2016 · 9 revisions

install git, python(v2.7), python-django(v1.4), tidy, python-lxml i'm suggesting using a Debian 7 VM(http://www.debian.org/distrib/). for production use: apache2, libapache2-mod-wsgi

install requirements: pip install -r requirements

  1. git clone https://github.com/laDanz/BuLiTipp

  2. create BuLiTipp/BuLiTipp/BuLiTipp/local_settings.py with DATABASE_NAME="/some/absolut/path/database.db"

  3. locate manage.py

  4. do ./manage.py syncdb
    expected output:

Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table BuLiTippApp_news
Creating table BuLiTippApp_spielzeit
Creating table BuLiTippApp_spieltag
Creating table BuLiTippApp_verein
Creating table BuLiTippApp_spiel
Creating table BuLiTippApp_tipp
Creating table BuLiTippApp_kommentar
Creating table BuLiTippApp_meistertipp
Creating table BuLiTippApp_herbstmeistertipp
Creating table BuLiTippApp_absteiger
Creating table BuLiTippApp_tabelle

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 'user'):
E-mail address: [email protected]
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

    • build-in server:
      • run server: ./manage.py runserver
    • production server:
      • copy BuLiTipp/misc/install/sites-enabled/* to your /etc/apache2/sites-enabled
      • edit paths to match your clone location
      • make sure your apache2 user (in debian: "www-data") has access to your database file and its containing directory
  1. go to http://localhost:8000/ or http://localhost:8000/admin

Clone this wiki locally