Meta tags:
description= 3 posts published by txcom2003 during April 2017;
Headings (most frequently used words):
django, app, data, model, creating, sasuke, kun, wordpress, create, and, install, with, postgresql, setup, python, virtual, environment, archive, recent, posts, archives, categories,
Text of the page (most frequently used words):
#django (37), create (13), project (13), #python (12), 2011 (10), april (9), 2012 (9), for (9), env1 (9), install (9), data (8), app (8), wordpress (7), manage (7), and (7), december (7), 2017 (7), virtual (7), environment (7), model (7), this (6), linux (6), models (6), postgresql (6), myapp (6), contrib (6), get (5), database (5), january (5), march (5), 2014 (5), 2015 (5), the (5), pip (5), djangouser (5), sasuke (4), kun (4), categories (4), october (4), november (4), 2008 (4), september (4), need (4), that (4), make (4), mysite (4), postgres (4), site (3), com (3), may (3), june (3), august (3), from (3), package (3), following (3), home (3), sudo (3), changes (3), comment (3), txcom2003 (3), server (3), settings (3), nano (3), will (3), design (2), with (2), bar (2), log (2), sign (2), subscribed (2), subscribe (2), already (2), account (2), mysql (2), language (2), framework (2), code (2), 2007 (2), february (2), 2010 (2), july (2), 2013 (2), 2025 (2), how (2), coding (2), workon (2), deactivate (2), current (2), dependencies (2), created (2), mkvirtualenv (2), test (2), source (2), profile (2), command (2), export (2), virtualenvwrapper (2), add (2), apt (2), example (2), setup (2), mint (2), working (2), one (2), leave (2), migrate (2), default (2), name (2), django_project_db (2), user (2), localhost (2), post (2), admin (2), step (2), schema (2), import (2), class (2), true (2), our (2), into (2), creating (2), archive (2), started, like, collapse, subscriptions, view, reader, report, content, privacy, have, now, free, website, blog, top, windows, visual, story, telling, version, control, unity, uncategorized, support, stock, market, ruby, research, regular, expression, programming, php, objective, nintendo, 3ds, music, mongo, mac, networking, life, japanese, iphone, game, facebook, developer, education, pattern, cooking, college, igniter, banking, 2020, 2024, 2026, archives, indikator, ekonomi, learning, learn, query, metrics, selection, assistant, art, spending, money, recent, posts, search, inezha, bloglines, newsgator, yahoo, zhua, xia, xian, guo, youdao, google, feed, rss, remove, rmvirtualenv, available, environments, exit, info, about, installed, freeze, activate, anvironment, skip, done, time, execute, workon_home, virtualenvs, project_home, devel, usr, local, bin, setuptools, virtualenv, here, when, multiple, projects, perhaps, isolate, needed, each, dependency, does, not, other, stop, running, runserver, 8000, initialize, change, databases, engine, backends, password, host, 5432, startproject, adapter, psycopg2, connect, psql, switch, non, superuser, can, createuser, interactive, guide, you, quickly, installing, apply, migration, makemigrations, utf, __future__, unicode_literals, mymodel, foo, integerfield, textfield, blank, null, meta, db_table, my_model_tbl, often, store, define, first, then, propagate, creation, using, commands, inside, before, installed_apps, auth, contenttypes, sessions, messages, staticfiles, load, setting, startapp, called, divide, several, small, apps, group, related, functionality, used, complete, maintain, aspect, welcome, dream, high,
Text of the page (random words):
april 2017 sasuke kun wordpress sasuke kun wordpress dream high home welcome archive archive for april 2017 create django app and data model april 23 2017 txcom2003 1 comment creating django app to manage a project django divide the project into several small django apps django app is a group of related functionality used to complete or maintain one aspect of a site the following command will create django app called myapp python manage py startapp myapp to make django load the app we need to add app name in django setting nano mysite settings py installed_apps django contrib admin django contrib auth django contrib contenttypes django contrib sessions django contrib messages django contrib staticfiles project app myapp creating data model we often need to store our data into database in django we need to define our data model first then make django to propagate data model creation changes to database schema by using django commands in this example we will create data model inside of django app that we created before create data model nano myapp models py coding utf 8 from __future__ import unicode_literals from django db import models class mymodel models model foo models integerfield default 0 bar models textfield blank true null true class meta db_table my_model_tbl make django migration python manage py makemigrations myapp apply changes to database schema python manage py migrate myapp categories django framework install django with postgresql april 22 2017 txcom2003 leave a comment this post will guide you quickly step by step installing django and postgresql on linux mint install postgresql server sudo apt get install postgresql switch account to postgres and create db user for django project create non superuser that can create db sudo i u postgres createuser djangouser p interactive connect to postgresql server as djangouser and create db for django project psql u djangouser h localhost d postgres w create database django_project_db create django environment and install postgres db adapter for python mkvirtualenv django project pip install django psycopg2 create django project django admin startproject mysite change django project db settings cd mysite nano mysite settings py databases default engine django db backends postgresql name django_project_db user djangouser password djangouser host localhost post 5432 initialize db data for django project python manage py migrate test by running the server python manage py runserver 0 0 0 0 8000 categories django linux setup python virtual environment april 17 2017 txcom2003 leave a comment when working on multiple python projects perhaps we need to isolate package dependencies that needed for each project so that dependency changes on one project does not make other project stop working here s example how to setup python virtual environment on linux mint sudo apt get install python pip pip install setuptools virtualenv virtualenvwrapper add following code in profile export workon_home home virtualenvs export project_home home devel source usr local bin virtualenvwrapper sh execute following command source profile done it s time to test create virtual environment for project 1 eg env1 skip this if env1 already created mkvirtualenv env1 activate virtual anvironment eg env1 workon env1 install package dependencies to current environment eg django env1 pip install django to get info about installed package env1 pip freeze deactivate to exit from current virtual environment env1 deactivate get available virtual environments workon remove virtual environment rmvirtualenv env1 categories linux python rss feed google youdao xian guo zhua xia my yahoo newsgator bloglines inezha search for recent posts the art of spending money ai models selection for coding assistant mysql s 9 query metrics learning how to learn indikator ekonomi archives june 2026 september 2025 january 2025 august 2024 march 2020 september 2017 april 2017 december 2015 november 2015 march 2015 february 2015 january 2015 december 2014 october 2014 june 2014 may 2014 april 2014 december 2013 january 2013 december 2012 november 2012 october 2012 september 2012 august 2012 july 2012 may 2012 april 2012 march 2012 december 2011 november 2011 october 2011 september 2011 august 2011 july 2011 june 2011 may 2011 april 2011 march 2011 december 2010 january 2010 december 2008 march 2008 february 2008 january 2008 november 2007 october 2007 categories ai banking c c c code igniter college cooking database design pattern django education facebook developer framework game and cg iphone japanese language language life linux linux and networking mac os mongo music mysql nintendo 3ds objective c php programming python regular expression research ruby stock market support uncategorized unity version control visual story telling windows top create a free website or blog at wordpress com subscribe subscribed sasuke kun wordpress sign me up already have a wordpress com account log in now privacy sasuke kun wordpress subscribe subscribed sign up log in report this content view site in reader manage subscriptions collapse this bar design a site like this with wordpress com get started
|