Commit 2826e405 authored by David Haynes's avatar David Haynes 🙆
Browse files

Updated Readme with proper mysql and cache documentation

parent 1e9680b7
......@@ -32,7 +32,7 @@ This retrieves links to the most up-to-date and secure versions of your packages
you install python and git.
Now, we're going to copy down a copy of the Roomlist codebase from git.gmu.edu, the SRCT code respository.
Now, we're going to clone down a copy of the Roomlist codebase from git.gmu.edu, the SRCT code respository.
Configure your ssh keys by following the directions at git.gmu.edu/help/ssh/README.
......@@ -114,7 +114,11 @@ Exit the mysql shell by typing `exit`.
Now, to configure your newly created database with the project settings, copy the secret.py.template in settings/ to secret.py. Follow the comment instructions provided in each file to set your secret key and database info.
Run `python manage.py makemigrations` and `python manage.py migrate` to configure something called 'migrations', which allow you to make changes to the tables in your database without screwing up existing information. Then run `python manage.py createsuperuser` to create an admin account, using the same username and email as you'll access through CAS. Finally, run `python manage.py syncdb` to set up all the tables in your empty database.
Run `python manage.py makemigrations` and `python manage.py migrate` to configure something called 'migrations', which allow you to make changes to the tables in your database without screwing up existing information.
Then run `python manage.py createsuperuser` to create an admin account, using the same username and email as you'll access through CAS.
Finally, run `python manage.py syncdb` to set up all the tables in your empty database.
## Starting up the test server
......@@ -124,6 +128,10 @@ With your virtual environment active, run
Head over to localhost:8000 and see the site!
### Notes on Cacheing
Roomlist's urls are set to be cached for periods of time set so that ordinary user experience will not be impacted, but a substantial load will be lifted from a deployment server. However, this can be annoying when you're making and want to check small changes rapidly on development. You can edit the respective apps' urls.py files and remove the cacheing configurations, but make sure that you do not include such edits in any pushes!
## Deployment
### Docker
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment