New python executable in pulaupulaumedia\Scripts\python.exe
Installing setuptools, pip...done. PS C:\Windows\system32> .\pulaupulaumedia\scripts\activate (pulaupulaumedia) PS C:\Windows\system32> workon The term 'workon' is not recognized as the name of a cmdlet, function, script fi le, or operable program. Check the spel ling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:7 + workon <<<< + CategoryInfo : ObjectNotFound: (workon:String) [], CommandNotFoun dException + FullyQualifiedErrorId : CommandNotFoundException (pulaupulaumedia) PS C:\Windows\system32> virtualenvwrapper-powershell --version The term 'virtualenvwrapper-powershell' is not recognized as the name of a cmdle t, function, script file, or operable p rogram. Check the spelling of the name, or if a path was included, verify that t he path is correct and try again. At line:1 char:29 + virtualenvwrapper-powershell <<<< --version + CategoryInfo : ObjectNotFound: (virtualenvwrapper-powershell:Stri ng) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException (pulaupulaumedia) PS C:\Windows\system32> pip install django Downloading/unpacking django Installing collected packages: django Successfully installed django Cleaning up... (pulaupulaumedia) PS C:\Windows\system32> d: (pulaupulaumedia) PS D:\> cd django (pulaupulaumedia) PS D:\django> django-admin Usage: django-admin subcommand [options] [args] Options: -v VERBOSITY, --verbosity=VERBOSITY Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output --settings=SETTINGS The Python path to a settings module, e.g. "myproject.settings.main". If this isn't provided, the DJANGO_SETTINGS_MODULE environment variable will be used. --pythonpath=PYTHONPATH A directory to add to the Python path, e.g. "/home/djangoprojects/myproject". --traceback Raise on exception --no-color Don't colorize the command output. --version show program's version number and exit -h, --help show this help message and exit Type 'django-admin help <subcommand>' for help on a specific subcommand. Available subcommands: [django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata makemessages makemigrations migrate runfcgi runserver shell sql sqlall sqlclear sqlcustom sqldropindexes sqlflush sqlindexes sqlinitialdata sqlmigrate sqlsequencereset squashmigrations startapp startproject syncdb test testserver validate Note that only Django core commands are listed as settings are not properly conf igured (error: Requested setting INSTALL ED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.). (pulaupulaumedia) PS D:\django> django-admin startproject pulaupulaumedia (pulaupulaumedia) PS D:\django> dir Directory: D:\django Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 10/7/2014 3:30 PM pulaupulaumedia (pulaupulaumedia) PS D:\django> cd pulaupulaumedia (pulaupulaumedia) PS D:\django\pulaupulaumedia> dir Directory: D:\django\pulaupulaumedia Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 10/7/2014 3:30 PM pulaupulaumedia -a--- 10/7/2014 3:30 PM 258 manage.py (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py startapp invent ory (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py runserver Performing system checks... System check identified no issues (0 silenced). You have unapplied migrations; your app may not work properly until they are app lied. Run 'python manage.py migrate' to apply them. October 07, 2014 - 15:32:57 Django version 1.7, using settings 'pulaupulaumedia.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py migrate Operations to perform: Apply all migrations: admin, contenttypes, auth, sessions Running migrations: Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying sessions.0001_initial... OK (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py runserver Performing system checks... System check identified no issues (0 silenced). October 07, 2014 - 15:36:38 Django version 1.7, using settings 'pulaupulaumedia.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [07/Oct/2014 15:36:52] "GET / HTTP/1.1" 200 1759 [07/Oct/2014 15:36:52] "GET /favicon.ico HTTP/1.1" 404 1936 [07/Oct/2014 15:38:53] "GET /admin HTTP/1.1" 301 0 [07/Oct/2014 15:38:53] "GET /admin/ HTTP/1.1" 302 0 [07/Oct/2014 15:38:53] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1918 [07/Oct/2014 15:38:54] "GET /static/admin/css/login.css HTTP/1.1" 200 940 [07/Oct/2014 15:38:54] "GET /static/admin/css/base.css HTTP/1.1" 200 13995 [07/Oct/2014 15:38:54] "GET /static/admin/img/nav-bg.gif HTTP/1.1" 200 265 (pulaupulaumedia) PS D:\django\pulaupulaumedia> easy_install mysql_python Searching for mysql-python Reading https://pypi.python.org/simple/mysql_python/ Best match: MySQL-python 1.2.5 Downloading https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2 .5.win32-py2.7.exe#md5=6f43f42516ea26e79 cfb100af69a925e Processing MySQL-python-1.2.5.win32-py2.7.exe creating 'c:\users\alvian\appdata\local\temp\easy_install-o2cft3\MySQL_python-1. 2.5-py2.7-win32.egg' and adding 'c:\user s\alvian\appdata\local\temp\easy_install-o2cft3\MySQL_python-1.2.5-py2.7-win32.e gg.tmp' to it Moving MySQL_python-1.2.5-py2.7-win32.egg to c:\windows\system32\pulaupulaumedia \lib\site-packages Adding MySQL-python 1.2.5 to easy-install.pth file Installed c:\windows\system32\pulaupulaumedia\lib\site-packages\mysql_python-1.2 .5-py2.7-win32.egg Processing dependencies for mysql-python Finished processing dependencies for mysql-python (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py syncdb (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py syncdb Operations to perform: Apply all migrations: admin, contenttypes, auth, sessions Running migrations: Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying sessions.0001_initial... OK You have installed Django's auth system, and don't have any superusers defined. Would you like to create one now? (yes/no): yes Username (leave blank to use 'alvian'): alvian Email address: alviandk@gmail.com Password: Password (again): Superuser created successfully. (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py runserver Performing system checks... System check identified no issues (0 silenced). October 07, 2014 - 16:56:30 Django version 1.7, using settings 'pulaupulaumedia.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [07/Oct/2014 16:56:43] "GET / HTTP/1.1" 200 1759 [07/Oct/2014 16:56:43] "GET /favicon.ico HTTP/1.1" 404 1936 [07/Oct/2014 16:56:49] "GET /admin HTTP/1.1" 301 0 [07/Oct/2014 16:56:49] "GET /admin/ HTTP/1.1" 302 0 [07/Oct/2014 16:56:49] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1918 [07/Oct/2014 16:56:50] "GET /static/admin/css/login.css HTTP/1.1" 200 940 [07/Oct/2014 16:56:50] "GET /static/admin/css/base.css HTTP/1.1" 200 13995 [07/Oct/2014 16:56:50] "GET /static/admin/img/nav-bg.gif HTTP/1.1" 200 265 [07/Oct/2014 16:56:57] "GET /static/admin/img/nav-bg-reverse.gif HTTP/1.1" 200 1 78 [07/Oct/2014 16:56:57] "POST /admin/login/?next=/admin/ HTTP/1.1" 302 0 [07/Oct/2014 16:56:58] "GET /admin/ HTTP/1.1" 200 2882 [07/Oct/2014 16:56:58] "GET /static/admin/css/dashboard.css HTTP/1.1" 200 434 [07/Oct/2014 16:56:58] "GET /static/admin/img/icon_changelink.gif HTTP/1.1" 200 119 [07/Oct/2014 16:56:58] "GET /static/admin/img/icon_addlink.gif HTTP/1.1" 200 119 [07/Oct/2014 16:56:58] "GET /static/admin/img/default-bg.gif HTTP/1.1" 200 836 (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py makemigrations Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "C:\Windows\system32\pulaupulaumedia\lib\site-packages\django\core\manage ment\__init__.py", line 385, in execute_ from_command_line utility.execute() File "C:\Windows\system32\pulaupulaumedia\lib\site-packages\django\core\manage ment\__init__.py", line 354, in execute django.setup() File "C:\Windows\system32\pulaupulaumedia\lib\site-packages\django\__init__.py ", line 21, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Windows\system32\pulaupulaumedia\lib\site-packages\django\apps\regist ry.py", line 108, in populate app_config.import_models(all_models) File "C:\Windows\system32\pulaupulaumedia\lib\site-packages\django\apps\config .py", line 197, in import_models self.models_module = import_module(models_module_name) File "C:\Python27\Lib\importlib\__init__.py", line 37, in import_module __import__(name) File "D:\django\pulaupulaumedia\inventory\models.py", line 5, in <module> class Locationn(models.Model): File "D:\django\pulaupulaumedia\inventory\models.py", line 6, in Locationn name = models.Charfield(max_length=250) AttributeError: 'module' object has no attribute 'Charfield' (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py makemigrations Migrations for 'inventory': 0001_initial.py: - Create model Locationn (pulaupulaumedia) PS D:\django\pulaupulaumedia> python manage.py migrate invento ry Operations to perform: Apply all migrations: inventory Running migrations: Applying inventory.0001_initial... OK (pulaupulaumedia) PS D:\django\pulaupulaumedia>
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.
CODING FOR ABSOLUTE BEGINNERS: How to Keep Your Data Safe from Hackers by Mastering the Basic Functions of Python, Java, and C++ (2022 Guide for Newbies)
The Advanced Roblox Coding Book: An Unofficial Guide, Updated Edition: Learn How to Script Games, Code Objects and Settings, and Create Your Own World!