You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute/calaccess_raw.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ Now create the tables and get to work.
127
127
$ python manage.py migrate
128
128
129
129
Once everything is set up, the :ref:`updatecalaccessrawdata` command will download the latest
130
-
bulk data release from `the Secretary of State's website <http://www.sos.ca.gov/campaign-lobbying/cal-access-resources/raw-data-campaign-finance-and-lobbying-activity/>`_ and load it into your location database.
130
+
bulk data release from `the Secretary of State's website <http://www.sos.ca.gov/campaign-lobbying/cal-access-resources/raw-data-campaign-finance-and-lobbying-activity/>`_ and load it into your local database.
131
131
132
132
.. code-block:: bash
133
133
@@ -142,7 +142,7 @@ bulk data release from `the Secretary of State's website <http://www.sos.ca.gov/
142
142
Exploring the data
143
143
------------------
144
144
145
-
Finally, start the development server and visit `localhost:8000/admin/ <http://localhost:8000/admin/>`_ in your browser to inspect the CAL-ACESS data in your Django administration panel.
145
+
Finally, start the development server and visit `localhost:8000/admin/ <http://localhost:8000/admin/>`_ in your browser to inspect the CAL-ACCESS data in your Django administration panel.
Even a development project needs that will run only on your computer needs an account with Amazon Web Services to
120
+
store archived files in its S3 file service. If you don't already have an AWS account, `make one now <https://aws.amazon.com/>`_. `Request <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html>`_ a
121
+
key pair that lets you access its services via Python. Then create a new `S3 "bucket" <http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html>`_
122
+
to store files archived by this project.
123
+
124
+
---------------
125
+
126
+
85
127
Filling in .env for the first time
86
128
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87
129
@@ -101,11 +143,11 @@ Setting Required in development Definition
101
143
db_name Yes Name of your database.
102
144
db_user Yes Database user.
103
145
db_password Yes Database password.
104
-
rds_host Yes Database host location.
105
-
aws_access_key_id No Shorter secret key for accessing Amazon Web Services.
106
-
aws_secret_access_key No The longer secret key for accessing Amazon Web Services.
107
-
aws_region_name No Amazon Web Services region where you resources are located.
108
-
s3_archived_data_bucket No Amazon S3 bucket where archived CAL-ACCESS data will be stored.
146
+
db_host Yes Database host location.
147
+
aws_access_key_id Yes Shorter secret key for accessing Amazon Web Services.
148
+
aws_secret_access_key Yes The longer secret key for accessing Amazon Web Services.
149
+
aws_region_name Yes Amazon Web Services region where you resources are located.
150
+
s3_archived_data_bucket Yes Amazon S3 bucket where archived CAL-ACCESS data will be stored.
109
151
s3_baked_content_bucket No Amazon S3 bucket where the public-facing website will be stored.
110
152
key_name No Name of the SSH ``.pem`` file associated with Amazon Web Services. Should be found in ``~/.ec2``.
111
153
ec2_host No Public address of website's Amazon EC2 instance.
@@ -132,3 +174,36 @@ Or everything in the Fabric environment:
132
174
$ fab printenv
133
175
134
176
---------------
177
+
178
+
Bootstrapping the project
179
+
-------------------------
180
+
181
+
Now that everything is configured, create the database tables.
182
+
183
+
.. code-block:: bash
184
+
185
+
$ python manage.py migrate
186
+
187
+
Once everything is set up, the ``updatedownloadswebsite`` command will download the latest
188
+
bulk data release from `the Secretary of State's website <http://www.sos.ca.gov/campaign-lobbying/cal-access-resources/raw-data-campaign-finance-and-lobbying-activity/>`_ load it into your local database and archive the files on Amazon S3.
189
+
190
+
.. code-block:: bash
191
+
192
+
$ python manage.py updatedownloadswebsite
193
+
194
+
.. warning::
195
+
196
+
This will take a while. Go grab some coffee.
197
+
198
+
---------------
199
+
200
+
Exploring the site
201
+
------------------
202
+
203
+
Finally, start the development server and visit `localhost:8000/admin/ <http://localhost:8000/>`_ in your browser to inspect the site.
0 commit comments