BCS Create Django Admin

To create and administration site for you models you must first establish a super user by issuing the following command in the project directory. [codesyntax lang=”bash”] python3 manage.py createsuperuser [/codesyntax] The results of issuing the command is as follows. Superuser created successfully is the desired result. Modify the admin.py in your application directory to reflect […]

BCS Create Django Application

Return to the project location in terminal and issue the following command. [codesyntax lang=”python”] django-admin startapp blog [/codesyntax] In the terminal application change directories to current application sub directory. Modify models.py to define the tables in question. All the associated field descriptions can be reviewed by clicking here. After the tables have been defined use […]

BCS Create Django Site with MySQL Backend

For those times when Django site need to support MySQL this tutorial may be helpful. The first task is to create the Django project. Go to the command prompt and issue the following command. [codesyntax lang=”bash”] django-admin startproject mysite [/codesyntax] The result may be observed in the following screen shot. Next we should allow the […]

BCS Advantages, Using Anaconda Stack

A primary advantage to using the Anaconda stack for developing Python application is the ease in which the entire stack may be updated. When successfully installed the following script may be used to update the entire stack. [codesyntax lang=”bash”] conda update conda conda update python conda update spyder [/codesyntax] For windows these command may be […]

BCS Install Anaconda on Ubuntu

Anaconda is the preferred approach for Python development on the Linux platform. To install Anaconda visit the web site and download the latest version. Click here for the Linux download. The resulting shell script is lengthy and upon download completion the script must be marked as an executable file. Execution of the script is the […]

BCS Django Twitter Bootstrap

Django and the Twitter Bootstrap offers the ultimate environment for web development for multiple devices. Create the project. [codesyntax lang=”bash”] django-admin startproject yourAppName [/codesyntax] Allow the appropriate access by updating the following in settings.py file. [codesyntax lang=”bash”] ALLOWED_HOSTS = [‘109.203.114.78’, ‘localhost’, ‘archbrooks.us’] [/codesyntax] Now configure the desired database.  Special imports are required for MySQL. [codesyntax […]

BCS Linux Mint Installation

Linux Mint is the operating system for choice for software development platform. Primary IDE include Eclipse for JavaFX, PhP and c++.  Anaconda along with Spyder is available for Python development. Wt (pronounced witty) is available for web application development. A Grails stack is also available for additional Java application development. LAMP is also operational. This […]

BCS Anaconda Updates

To keep your Anaconda (python) up to date use these commands.  Answer Yes and All to any prompts and let the system provide the update. [codesyntax lang=”dos”] conda update –all [/codesyntax] To remove tars and packages no longer used by the installation issue the command below. [codesyntax lang=”dos”] conda clean –tarballs –packages [/codesyntax] Answer Yes […]

BCS Django Tutorial 01

Python version 3.5.x does not employ the normal MySQL databases.  Eclipse Neon 4.6 supports PyDev plugin for Python and Django.  I recommend using Eclipse for project creations.  When I authored this article initially Python 3.5.x and Eclipse Neon 4.6 were not available.  The screenshot below show the types of project supported by Eclipse. To create […]