Django is a dev framework for building web apps that uses Python. It has many great features (db api, auto admin interface, templates, cache framework, etc.). Installing the framework on Windows take a few steps to get going and has a few prerequisites. The below steps assume you don’t have Python or Django currently installed. This guide was created on Windows 7 (64 bit). Now let’s get to it:
- Download Python: http://www.python.org/download/releases/3.3.3/
- Install Python (to c:\python)
- Go to the pip download area: http://www.pip-installer.org/en/latest/installing.html#using-the-installer
- Right click, download / save ez_setup.py to c:\python
- In cmd prompt: cd\python
- Run: python.exe ez_setup.py
- From the same link, download get-pip.py
- In the cmd prompt, run python.exe get-pip.py
- When finished, in cmd, navigate to: \python\scripts (where pip lives now)
- Now run pip install Django
- To see if Django was installed correctly, at a cmd prompt run:
python -c “import django; print(django.get_version())”
This should return 1.6.1 (or similar). - Add c:\python\scripts to your windows environment path
- Close / reopen a cmd prompt (to reflect the addition to your PATH variable)
- Now you can navigate to any folder (ie: c:\projects) and run:
django-admin.py startproject thenextbigidea - Your project was created! To test:
- Navigate to c:\projects\thenextbigidea and run:
python manage.py runserver - In your browser, visit: http://localhost:8000/
So that’s just the start. Visit https://docs.djangoproject.com to continue your journey!
Reblogged this on Sutoprise Avenue, A SutoCom Source.
LikeLike