The McMaster Geeks official website,
- A main CSS file for all pages
- Home page with basic information
- Should contain information about incoming events
- A navigation menu
- A template for community pages
Should host basic information about the community, will not be changing frequently.
- An events page with link to each event(?)
- Links to our sponsors
Maybe a brief bio for each, provided by each?
- A newsletters page with links to each newsletter/article
- Ability to use markdown when posting.
-
Member sign ups
Member will sign up to the mailing list. More details can be added later. Can be integrated with discord bot registration.
- docker
- docker-compose
-
Install the required packages.
-
Change the postgres password in the
docker-compose.yml
file. This is the password for the postgres database user. -
Start the service using
docker-compose up -d
while in the same directory asdocker-compose.yml
-
Create the database in Postgress:
- Connect to the database:
docker exec -ti website_db_1 psql -U postgres
. - Create the database:
CREATE DATABASE NAME;
where NAME is the name of the database. - Create the user:
CREATE USER myprojectuser WITH PASSWORD 'password';
- Set the default encoding to UTF-8 for django.
- Give permission to the user for the database:
GRANT ALL PRIVILEGES ON DATABASE myproject TO myprojectuser;
- Change the postgres credentials for django.
- Edit
NAME
,USUER
, andPASSWORD
in theDATABASES
dictionary indjango/geeks_website/settings.py
. Where NAME
is the database name,USER
is the user name,PASSWORD
is the password. All set earlier in the databse setup.
- Edit
- Connect to the database:
-
Change the django secret key:
- Start the docker-compose project immediately and use docker to generate the secret key.
-
Use
docker exec django_container python manage.py shell -c 'from django.core.management import utils; print(utils.get_random_secret_key())'
- Copy the output and replace
SECRET_KEY
with it.
- Copy the output and replace
-
- Start the docker-compose project immediately and use docker to generate the secret key.
-
Run
docker exec -ti geeks-website_django_1 python manage.py makemigrations
-
Run
docker exec -ti geeks-website_django_1 python manage.py migrate
-
Run
docker exec -ti geeks-website_django_1 python manage.py collectstatic
-
Run
docker exec -ti geeks-website_django_1 python manage.py createsuperuser
to create the admin. -
Run
docker-compose restart django
-
Edit the nginx config file to suite the project.
-
Enjoy the website!
More to be added!