Commit e69342a8 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

indicated that the macOS portion has already been written; changed deployment...

indicated that the macOS portion has already been written; changed deployment section to indicate how to run with new production settings file
parent 878a2776
......@@ -16,8 +16,6 @@ Please visit the [SRCT Wiki]( for more information on
## Setting everything up for development
These instructions are for Ubuntu and Debian, or related Linux distributions. (If you'd like to help write the instructions for Mac OSX, please do!)
### Prerequisities and Package Installation
First, install python, pip, and git on your system. Python is the programming language used for Django, the web framework used by Roomlist. 'Pip' is the python package manager. Git is the version control system used for SRCT projects.
......@@ -135,8 +133,6 @@ Exit the mysql shell by typing `exit`.
Now, to configure your newly created database with the project settings, and set up your project's cryptographic key, copy the in settings/ to Follow the comment instructions provided in each file to set your secret key and database info.
Also copy to You won't need to make any changes here off the bat. See more information about this file under the 'Deployment' section.
Run `python makemigrations` to create the tables and rows and columns for your database. This command generates sql code based on your database models. If you don't see output noting the creation of a number of models, add the app name to the end of the command, e.g. `python makemigrations housing`.
Then run `python migrate` to execute that sql code and set up your database. Migrations also track how you've changed your models over the life of your database, which allows you to make changes to your tables without screwing up existing information.
......@@ -151,10 +147,6 @@ The project includes a json file to load majors into the database. Run `python m
To add all freshman housing, with the virtual environment enabled, run `python shell < housing/`. It will take a couple of minutes, but this script will create every building, floor, and room in your database.
## Starting search
To start off indexing your models for searching, run `python update_index`.
## Starting up the test server
With your virtual environment active, run
......@@ -258,7 +250,7 @@ Roomlist's urls are set to be cached for periods of time set so that ordinary us
## Deployment
A number of deployment-related settings have been moved from to in settings/ for ease of use. Make sure to never have DEBUG mode on when running your project in deployment.
Configure and use `` instead of `` in the production environment, to turn on caching, turn off debug mode, set up email, support https, and a whole lot more. To use this settings file, pass an additional argmument when running the project. `python runserver --settings=settings.production`
### 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