To get started with this template:
- Click "use template" to create your own repository with the same files and directory structure.
- Clone the repository to your machine.
- Open terminal/powershell
- Navigate to the repository and create a new virtualenvironment called
venv
- Activate your new
venv
- Install the project dependencies using:
pip install -r requirements.txt
To configure the database:
- Type
psql
then hit enter. - Type
CREATE DATABASE nameofyournewdatabase;
then hit enter. - Type
\l
then press enter to confirm your new database is there and ready to go. - Type
\q
to escape the psql shell. - Create a new superuser - you should be familiar with how to do this (hint, it was in the django tutorial :) )
- Then update the settings.py to use whatever you just named your database and your username.
- Type
python3 manage.py runserver
and open up http://localhost:8000/event-finder/ to confirm all is well!
Once you are set up and ready to go, these are your tasks:
- Add a new "venue" field to the Event model
- Create a many to many relationship between the events and categories
- Modify the index page to show the events with their categories.
- Modify the events page to show all the event information, including the categories.
- Create a page that has a form to create a new event. This event should then appear on the index page.
Once you have completed these tasks you can start working on:
- The My Account page. We are not doing anything with users until next week, but you can definitely get the my account page started and styled by just using some dummy data.
- Make it responsive - put those css and bootstrap skills to the test!
- Add filters for location and category to the index page.