Skip to content

Commit

Permalink
Added MySQL database creation to How To Use It docs. Fixes palewire#115.
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Nov 6, 2014
1 parent e187e96 commit 899e71b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/howtouseit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,23 @@ that contains the raw government database it will work with to refine to your Dj
'calaccess_campaign_browser',
)
Make sure you have MySQL installed. If you don't, now is the time to hit Google and figure out how. If
you're using Apple's OSX operating system, you can `install via Homebrew <http://benjsicam.me/blog/how-to-install-mysql-on-mac-os-x-using-homebrew-tutorial/>`_. If you need to clean up after a previous MySQL installation, `this might help <http://stackoverflow.com/questions/4359131/brew-install-mysql-on-mac-os/6378429#6378429>`_.

Then create a new database named ``calaccess``.

.. code-block:: bash
mysqladmin -h localhost -u root -p create calaccess
Also in the Django settings, configure a database connection. Currently this application only supports MySQL backends.

.. code-block:: python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'my_calaccess_db',
'NAME': 'calaccess',
'USER': 'username',
'PASSWORD': 'password',
'HOST': 'localhost',
Expand Down

0 comments on commit 899e71b

Please sign in to comment.