Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Getting started

Fredo Erxleben edited this page Feb 3, 2015 · 1 revision

Requirements

The project works with Python 3.4 and Django 1.6 (All the console commands are working with pycharm IDE 3.4)

Initial Setup

1 Set up the database

  • Run python manage.py syncdb
  • When asked to create a superuser, type yes to create one with the data you want.

2 Get the server started

  • Run python manage.py runserver
  • Go to localhost/kurse/Login (Some objects will get initialized in the background by this step)
  • Go to localhost/admin and login with the data you set up for the superuser earlier

3 **Create an

  • Once you are logged in, click on add (next to organizers list) and fill in the desired
    • The password in this step doesn't matter.
    • Now the organizer is created.
  • Go back to the main admin page and click on users
  • Click on the organizer you just created.
    • There will be the message "inavlid password format or unknown hashing algorithm".
  • At the end of the grey written line under the message, click on this form.
    • There you set up your real password for the organizer
  • Repeat this section for all the organizers you want.
  • Troubleshooting:
    • If you ever have problems with the Debug mode turned on, edit your settings.py to the following: allowed hosts = [*] (only use that for testing, not for production!)

From now on, you can login in as an organizer via localhost/kurse/Login and use the site as you please.

Additional information

If you skipped the step to create a superuser or if you want to create a new one: Run python manage.py createsuperuser and enter data as asked on the console.

If you ever want to delete the database: Delete the file db.sqlite3. (make sure it is NOT a safe delete) Do the same with every object in the migrations folder except __init__.py.

While the server is running without the debug mode being turned on, you can not access the admin backend. That means, you can not create a new organizer.

Clone this wiki locally