As Django is entirely a Python Web framework, Django requires Python. It works with Python versions from 2.5 to 2.7 (due to backwards incompatibilities in Python 3.0, Django does not currently work with Python 3.0).
Steps:-
1) Install Python 2.5 or later from http://www.python.org.
2) Remove any earlier version of Django you already have.
3) Download and Install the current version of Django from https://docs.djangoproject.com/en/1.4/misc/distributions/.
4) Open your command prompt
>>>>>cd c:\django\bin> python setup.py install
5) Django folder will automatically be copied into your python\sitepackage folder.
>>>>>cd C:\Python27\Lib\site-packages\django\bin> django-admin.py
If you get this:
Usage: django-admin.py 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, t
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--version show program's version number and exit
-h, --help show this help message and exit
Type 'django-admin.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django]
cleanup
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
runfcgi
runserver
shell
sql
sqlall
sqlclear
sqlcustom
sqlflush
sqlindexes
sqlinitialdata
sqlsequencereset
startapp
startproject
syncdb
test
testserver
validate
>>>you are done with your settings.....enjoy...:-)
Steps:-
1) Install Python 2.5 or later from http://www.python.org.
2) Remove any earlier version of Django you already have.
3) Download and Install the current version of Django from https://docs.djangoproject.com/en/1.4/misc/distributions/.
4) Open your command prompt
>>>>>cd c:\django\bin> python setup.py install
5) Django folder will automatically be copied into your python\sitepackage folder.
>>>>>cd C:\Python27\Lib\site-packages\django\bin> django-admin.py
If you get this:
Usage: django-admin.py 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, t
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--version show program's version number and exit
-h, --help show this help message and exit
Type 'django-admin.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django]
cleanup
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
runfcgi
runserver
shell
sql
sqlall
sqlclear
sqlcustom
sqlflush
sqlindexes
sqlinitialdata
sqlsequencereset
startapp
startproject
syncdb
test
testserver
validate
>>>you are done with your settings.....enjoy...:-)
No comments:
Post a Comment