Skip to content

Commit

Permalink
Update howtouseit.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Mar 12, 2015
1 parent 8ffe79a commit a736508
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/howtouseit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ The app needs to be added to the ``INSTALLED_APPS`` in your Django project's set
Also in the Django settings, create a database configure Django so it can connect to it. You have a choice of two different databases when using this application, MySQL and PostgreSQL.

The settings below refer to using MySQL as your database.
Using MySQL
~~~~~~~~~~~

Add a database connection string like this to your ``settings.py``.

.. code-block:: python
Expand All @@ -46,7 +49,10 @@ This will create the MySQL database.
$ mysqladmin -h localhost -u root -p create calaccess
The settings below refer to using PostgreSQL as your database.
Using PostgreSQL
~~~~~~~~~~~~~~~~

Add a database connection string like this to your ``settings.py``.

.. code-block:: python
Expand All @@ -67,15 +73,15 @@ This will create the PostgreSQL database.
$ createdb calaccess
Loading the data
----------------

Now you're ready to sync the database tables.

.. code-block:: bash
$ python manage.py migrate
Loading the data
----------------

Once everything is set up, this management command will download the latest bulk data release from the state
and load it in the database. This'll take a while. Go grab some coffee.

Expand Down

0 comments on commit a736508

Please sign in to comment.