Skip to content

jrtorsa/First-Django-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

First-Django-App

My first Django app.

Setting up the environment:

You need to create a virtual environment in order to run the most updated version of Django. Follow this steps.

#to get the most recent version of pip.
python3 -m pip install --upgrade pip

#to locate where is the virtual env.
which virtualenv

#to locate the folder of your current version of pyhton.
which python3

Access the folder in which you want to run the virtual env.

virtualenv -p /usr/local/bin/python3 venv

#this command inits the virtual env.
source venv/bin/activate

#Checking the python version
python -V

#Deactiviting your virtual env.
deactivate

#If you want to delete your virtual env.
rm -rf venv

Setting up Django.

I GUESS you have to pip install django for everytime you do it in a virtual env.
Try - python -m django --version - just to check. type - django-admin - You will see for the subcommands.

To start a project.

  • django-admin startproject 'name of project' Important! Access the folder of your projecto, then run:
  • python3 manage.py runserver

About

My first Django app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published