Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install DJango
#5
(Jul-29-2018, 10:13 PM)Atsuko_Zeppeli Wrote: How can I get access to the command prompt
It's called cmd in Windows,command line is a important part to know when doing programming.
cmd/powershell is in my option not good at all,so i use cmder.
You can look at this for pip which most work Python 3.6/3.7 and pip installation under Windows

A quick demo,and virtual environment(build into Python 3.6 -->) is natural part to use when doing web-development.
# Make enviroment
C:\code
λ python -m venv dj_env

# Cd in
C:\code
λ cd dj_env

# Activate
C:\code\dj_env
λ C:\dj_env\scripts\activate

# Check pip
(dj_env) C:\code\dj_env\myproject1
λ pip -V
pip 10.0.1 from c:\dj_env\lib\site-packages\pip (python 3.7)

# Install Django
(dj_env) C:\code\dj_env
λ pip innstall django

# Make project
(dj_env) C:\code\dj_env
λ django-admin startproject myproject1

# Cd in
(dj_env) C:\code\dj_env
λ cd myproject1\

# Run server check browser with address given
(dj_env) C:\code\dj_env\myproject1
λ python manage.py runserver
Performing system checks...
July 31, 2018 - 16:39:09
Django version 2.0.7, using settings 'myproject1.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Reply


Messages In This Thread
How to install DJango - by Atsuko_Zeppeli - Jul-29-2018, 05:27 PM
RE: How to install DJango - by buran - Jul-29-2018, 07:24 PM
RE: How to install DJango - by Atsuko_Zeppeli - Jul-29-2018, 10:13 PM
RE: How to install DJango - by rabbitqiu - Jul-31-2018, 06:43 AM
RE: How to install DJango - by snippsat - Jul-31-2018, 02:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Newbie to Python (Attempting to install DJango on a VPS) jarjar95 0 1,535 May-04-2021, 03:51 PM
Last Post: jarjar95
  How to install Django coder 1 2,559 Nov-01-2017, 03:37 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020