Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere do I install Twitter Bootstrap for Django - main or static folder?
    primarykey
    data
    text
    <p>I'm new to this, and experimenting with a Django site that has both a main folder and a static media folder. I'm trying to install django-bootstrap, but not sure how to go about it. </p> <p>I'm using the instructions in <a href="https://github.com/earle/django-bootstrap" rel="noreferrer">this Django Bootstrap page</a>. </p> <p>First, do I run </p> <pre><code>pip install -e git+git://github.com/earle/django-bootstrap.git#egg=bootstrap </code></pre> <p>from the terminal in the main folder, or static media folder? </p> <p>Second, where do I insert the usage code? </p> <pre><code>from bootstrap.forms import BootstrapForm, Fieldset class LoginForm(BootstrapForm): class Meta: layout = ( Fieldset("Please Login", "username", "password", ), ) username = forms.CharField(max_length=100) password = forms.CharField(widget=forms.PasswordInput(), max_length=100) </code></pre> <p>The above is obviously only for login fields, but will I need to include that import language in many files, or just one main one? </p> <p>EDIT for clarity: My host is WebFaction, which uses a Domain + Webapp = Website structure for site hosting. One of their recommended methods for Django installs is to set up the main Django site in one webapp, and a static media folder in another: see <a href="http://docs.webfaction.com/software/django/config.html#serving-django-static-media" rel="noreferrer">here</a> for details.</p> <p>I am not the site creator or installer, but have copied the site over into a test version so I can mess with its design while the programmer is unavailable for an extended period. I'm looking into Django Bootstrap as a way to make it easier to redesign the site. My skills are obviously limited, but I'm willing to read/learn! </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload