In Django the to create a new project use the command:
django-admin.py startproject "Project name"
After this their will a folder created at the same directory with the project name given. And there will 4 files created they are
django_bookmarks/
__init__.py
manage.py
settings.py
urls.py
To run a server using django:
use the command : python manage.py runserver (where we run the browser using localhost:8000 the first django website gets started.)
django-admin.py startproject "Project name"
After this their will a folder created at the same directory with the project name given. And there will 4 files created they are
django_bookmarks/
__init__.py
manage.py
settings.py
urls.py
To run a server using django:
use the command : python manage.py runserver (where we run the browser using localhost:8000 the first django website gets started.)
No comments:
Post a Comment