Skip to content

Commit

Permalink
Add Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs committed Apr 29, 2016
1 parent f350625 commit 80fee0e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.sqlite3
static
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ $ python3 -m pip install django

## Initialization

**Only run this command once.**
**Only run this command once or when you pull new commits.**

~~~
$ ./bootstrap.sh
$ python3 manage.py migrate
~~~

Expand Down
20 changes: 20 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
#
# Configure the CSS.

STATIC_FOLDER=static/
TMP_FOLDER=/tmp/
ZIP_FILE=/tmp/bootstrap.zip

curl \
-L \
-o $ZIP_FILE \
https://github.com/twbs/bootstrap/releases/download/v3.3.6/bootstrap-3.3.6-dist.zip
unzip \
$ZIP_FILE \
-d $TMP_FOLDER
mkdir $STATIC_FOLDER
for folder in css fonts js
do
cp -r $TMP_FOLDER/*/$folder $STATIC_FOLDER
done
5 changes: 4 additions & 1 deletion fellowms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
class FellowForm(ModelForm):
class Meta:
model = Fellow
fields = '__all__'
exclude = [
"inauguration_year",
"mentor",
]


class EventForm(ModelForm):
Expand Down

0 comments on commit 80fee0e

Please sign in to comment.