How to create Django project Step 2


Creating a project

From the command line, cd into a directory where you’d like to store your code, then run the following command
$ django-admin.py startproject perfumes
 

 

 

The development server

Let’s verify your Django project works. Change into the outer perfumes directory, if you haven’t already, and run the following commands:
$ python manage.py runserver
 

 

 

 

 

 

Creating models

To create your app, make sure you’re in the same directory as manage.py and type this command:
$ python manage.py startapp perfum
 
 

Comments

Popular posts from this blog

Basic Git Command for first time github user

Python IMAP list response, listing mailboxes, mailbox status, selecting_mailbox, searching messages, search criteria, fetching messages, whole messages, uploading messages, moving and copying messages, deleting messages, delete mailbox,search with uid