Home > Backend Development > Python Tutorial > python django | bootstrap

python django | bootstrap

巴扎黑
Release: 2016-12-09 10:39:36
Original
1698 people have browsed it

1. I wanted to install SCIM under Ubuntu12 and uninstalled ibus, but it failed. . . After giving up for a while and trying to update in English, I found that I couldn’t keep up with English. Finally, I silently installed ibus 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
Later start ibus, at the keypad logo Set the input method of preferences of ibus, and finally set the language support of system to ibus

2. As a newbie, continue to learn django from the awesome website:
2.1 Download the bootstrap appearance design package (http://twitter.github.io /bootstrap/)
2.2 Place the compressed bootstrap.min.css under the static/css of the project, and configure the project’s settings.py{
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 use absolute paths, not relative paths.
  '/media/DATA/MyDocuments/python_ubuntu/ django/myproject'+STATIC_URL,)
}
Follow urls.py{
urlpatterns+=staticfiles_urlpatterns()
}
(I want to follow the expert’s guidance os.path.dirname(__file__), but it has not been successful, so I want to run the settings.py file When printing, I found that it is empty. I checked the information and found that if the script is run with a relative path, then it is an empty directory. If it is run with a full path, then the full path where it is is output. I can only say that my learning is very sloppy. )
2.3 Continue learning and implement form verification

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template