Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install DJango
#1
I looked for some tutorial for install Django and connect it with Python, But the message that appears on my application its different to what I looked in this tutorial, the message is the next

"Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> "

What Can I do in this situation to configure Python and install Django
Reply
#2
This depends on your python version/OS/32 or 64 bit, etc.
The good news - your python installation is correct and it works. What you see is the python interpreter prompt (i.e. interactive mode in python).
exit the interactive mode and return to command prompt and follow next steps from their tutorial
https://docs.djangoproject.com/en/2.0/intro/install/
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(Jul-29-2018, 07:24 PM)buran Wrote: This depends on your python version/OS/32 or 64 bit, etc.
The good news - your python installation is correct and it works. What you see is the python interpreter prompt (i.e. interactive mode in python).
exit the interactive mode and return to command prompt and follow next steps from their tutorial
https://docs.djangoproject.com/en/2.0/intro/install/

How can I get access to the command prompt
Reply
#4
you can use exit() back to command
you have already install python,then input command ===>pip install django
django will be installed auto
Reply
#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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Newbie to Python (Attempting to install DJango on a VPS) jarjar95 0 1,527 May-04-2021, 03:51 PM
Last Post: jarjar95
  How to install Django coder 1 2,551 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