Python Django | Bootstrap

Source: Internet
Author: User
1. Under the Ubuntu12 want to install SCIM, IBUs all unloaded, the results did not succeed ... Give up for a period of time want to use English update found English can't keep up, finally still silently IBUs installed back ...
sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase
sudo apt-get install Ibus-pinyin ibus-pinyin-db-android
After starting IBUs, set the input method of the IBUs preferences at the keypad identification, and finally set the language support for the system to IBUs

2. As a little rookie, continue to follow the cattle website to learn Django:
2.1 Download Bootstrap design package (http://twitter.github.io/bootstrap/)
2.2 Put the pressurized bootstrap.min.css under the static/css of the project and configure the settings.py{of the project
Staticfiles_dirs = (
# Put strings here, like "/home/html/static" or "c:/www/django/static".
# Always use forward slashes, even on Windows.
# Don ' t forget to the use of absolute paths, not relative paths.
'/media/data/mydocuments/python_ubuntu/django/myproject ' +static_url,)
}
With urls.py{
Urlpatterns+=staticfiles_urlpatterns ()
}
(Want to follow the Cattle People Guide Os.path.dirname (__file__), has not been successful, So run settings.py file want to print, found is empty, to check the data found that if the script is running relative path, then is empty directory, if it is run with the full path, then the output is the full path, can only say that their study is very sloppy)
2.3 Continue learning to implement form validation
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.