![]() ![]() This code will add 10 entries to the table. I put this script in a Django project folder which has "Pages" application with "Page" model. delete () for i in range ( 0, 10 ): p = Page ( title = 'test title' + str ( i ), slug = 'test-slug' + str ( i ), description = 'a sample description of an article bla foo bar', text = data ) p. The CD and DVD images should be available from Slackware's FTP/HTTP mirrors in a few days in the meantime get the new Slack via BitTorrent: (3,714MB).''' from pages.models import * Page. Now you are ready to create a Django project and run it on your machine, using the virtual environment. Here are some of the advanced features of Slackware 12.0: runs the 2.6.21.5 version of the Linux kernel system binaries are linked with the GNU C Library, version 2.5 X11 7.2.0 Apache 2.2.4 web server with Dynamic Shared Object support, SSL, and PHP 5.2.3 the udev dynamic device management system updated versions of the Slackware package management tools." Read the rest of the release announcement for full details. In order to do this, you need to create a database on your MySQL instance as well as a MySQL user profile that Django can use to connect to the database. So, without further ado, announcing Slackware version 12.0! Since we've moved to supporting the 2.6 kernel series exclusively (and fine-tuned the system to get the most out of it), we feel that Slackware 12.0 has many improvements over our last release and is a must-have upgrade for any Slackware user. Step 1 Creating the Database Django supports a number of popular database management systems, but this guide focuses on connecting Django to a MySQL database. This directory will contain all the files required for this project. Next, run the following commands to create a directory named /djangorecipeapi and navigate into that directory. ![]() pip install django djangorestframework 2. # -*- coding: utf-8 -*- from os import environ environ = 'settings' from settings import * data = '''Slackware Linux 12.0 has been released: "Well folks, it's that time to announce a new stable Slackware release again. Open your terminal and run the pip command below to install django and djangorestframework on your local machine. ![]()
0 Comments
Leave a Reply. |