This is a Django Scaffold App for Lab Exercises in Info3
git clone git@github.com:htw-imi-info3/django_lab_scaffold.git django_lab_studybuddy
cd django_lab_studybuddy
cd studybuddy_site
You do not need to use a virtual environment - see venv - but you need to install the requirements and know in wich environment they are.
virtualenv .venv_studybuddy
source .venv_studybuddy/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py loaddata studybuddy_app/fixtures/user.yaml
python manage.py loaddata studybuddy_app/fixtures/meetup.yaml
python manage.py runscript -v2 link_fixtures
the added superuser will be admin with password geheim12.
or, start with adding a superuser and add data yourself using the admin app
python manage.py createsuperuser
python manage.py runserver
You can check out (or use) the Makefile for a bunch of useful commands.
classDiagram
class Meetup{
title
location
start_time
duration
rsvp(user)
}
note for User "from the django admin app"
class User{
username
password
first_name
last_name
...
}
Meetup o--o User : participants