You're missing a comma after my app inside installed_apps. You can load bootstrap from cdn inside head, before your custom style sheet. Not a problem there.
Pip install crispy forms. They'll end up in your site-packages folder. No need to download it and put it inside your project. Run collectstatic command to collect any css or js files that package has and put them inside your static folder On Wednesday, 24 February 2016, <clarksonchri...@gmail.com> wrote: > I have set up a page and have implemented bootstrap using the CDN code > that is recommended to access the online bootstrap server: > > for the CSS: > > <link rel="stylesheet" > href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" > integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" > crossorigin="anonymous"><link rel="stylesheet" > href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" > > integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" > crossorigin="anonymous"> > > Javascript: > > <script > src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" > integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" > crossorigin="anonymous"></script> > > However eventually my site will have to go live and I'm not certain that > this code will suffice when that happens and I feel I should download the > actual bootstrap code. > > Furthermore if I download the bootstrap code properly and put it in a > hypothetical media folder called "css2" such that it won't interfere with > my own custom css files, where do I then put crispy_forms. > > As of now I am holding them in the downloaded crispy forms files within > "media"- on the same level as "myproject" but the "{ load crispy_forms}" > tag doesn't look in the media folder because the "CRISPY_TEMPLATE_PACK = > 'bootstrap3'" does not specify a path to look for the crispy forms > content... the crispy forms website tells to look up the django > documentation for how to organise my media folder but searching the website > under "cripy forms" returns nothing..... > > Finally, I have added crispy forms to my installed apps: > > INSTALLED_APPS = > ('django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','myproject.myapp''crispy_forms', > ###Registered > ) > > However when i migrate and run the server I get an error: > > ImportError: No module named myappcrispy_forms > > so I rearranged the order of the modules and then got this error: > > ImportError: No module named crispy_forms > > > 1. Should i download bootstrap properly or do the CDNs suffice? > 2. Where do I store the bootstrap code and how will it affect my own > CSS code? > 3. How do register the module crispy_forms? and where do I store the > crispy forms folder there is little documentation on this? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','django-users%2bunsubscr...@googlegroups.com');> > . > To post to this group, send email to django-users@googlegroups.com > <javascript:_e(%7B%7D,'cvml','django-users@googlegroups.com');>. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/7605da4a-e6e9-446a-9016-cce4e6e9071e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/7605da4a-e6e9-446a-9016-cce4e6e9071e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHqTbjm3r%3DjSYqdD2vqBEooZTd86ZvkzejCrTkF%3Dm_fdF-XftQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.