Mood Journal & Vibes
- Create your virtualenv, then
pip install -r requirements.txt(orpip3) cd hackathonpython3 manage.py makemigrations(orpython)python3 manage.py migrate- You will need a user to use the webpage
python3 manage.py runserver.- Go to http://127.0.0.1:8000, if you can login with
JohnDoe/cmput401, we are set to go.
python3 manage.py createsuperuser=> useadmin/admincredentials.python3 manage.py runserver- Now if you go to http://127.0.0.1:8000 it will said you need to log in. DONT LOGIN WITH ADMIN.
- Go to http://127.0.0.1:8000/admin, login with
admin/admin, under AUTHENTICATION AND AUTHORIZATION, add a User. - Use
JohnDoe/cmput401. - Go back, under MOOD_JOURNAL, add a Profile. In
User, selectJohnDoein the drop down menu. Name and Bio you can choose anything. - Now, LOGOUT, then go to http://127.0.0.1:8000 and login with
JohnDoe/cmput401.
