-
Notifications
You must be signed in to change notification settings - Fork 244
FAQ (Frequently Asked Questions)
The accounts app contains most of the # and # functionality. The views are all class based and can be easily extended. There are two places you can start:
-
src/accounts/forms.py
: You can add extra fields like captchas here -
src/accounts/views.py
: You can change the functionality like sending confirmation emails here
-
Brand Name: Edit
src/templates/_brandname.html
. Or use a one-liner:echo "Fantasy Quidditch" > src/templates/_brandname.html
-
Logo: Change
src/static/site/img/logo.png
. Or use a one-liner:curl -o src/static/site/img/logo.png http://icons.iconarchive.com/icons/iconka/harry-potter/32/broom-icon.png
-
Banner: Change
src/static/site/img/banner.jpg
. Or use a one-liner:curl -o src/static/site/img/banner.jpg https://farm8.staticflickr.com/7153/6709315743_5412d64169_o_d.png
-
Bootstrap Theme: Change
src/static/bootstrap/css/bootstrap.min.css
. Or use a one-liner:curl -o src/static/bootstrap/css/bootstrap.min.css http://bootswatch.com/paper/bootstrap.min.css
You can reduce the height of the jumbotron, say add this to the end of in main.css
to make the cover image half the height of the browser window:
.corporate-jumbo { height: 50%; }
In production you will want to use the production settings.py
. Make sure that your wsgi.py
picks up the right settings. You can do this in two ways:
-
Set the environment variable
DJANGO_SETTINGS_MODULE
to point tomy_proj.settings.production
-
Edit or copy the
wsgi.py
with the following line:os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_proj.settings.production")
[Thanks to abadger1406 for this question]