Skip to content

Simple repository to enjoy the week of the Python and Django from TreinaWeb.

Notifications You must be signed in to change notification settings

juancarielo/python-treinaweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python TreinaWeb

Simple repository to enjoy the week of the Python and Django with TreinaWeb. To know more details follow this link: https://lp.treinaweb.com.br/python

Create virtualenv

Creating the virtual environment for this project:

$ python -m venv python_treinaweb_venv

Activate virtualenv

$ source python_treinaweb_venv/bin/activate # Linux or macOS
$ source python_treinaweb_venv/Scripts/activate # Windows

Disable virtualenv

To disable the virtualenv just run:

$ deactivate

Install Django

This will install Django on your virtualenv:

$ pip install Django==2.2.4

Create the project and app

With Django installed, follow this commands:

$ mkdir python-treinaweb && cd python-treinaweb
$ django-admin startproject task_manager
$ python manage.py startapp app

Run the server

$ cd task_manager
$ python manager.py runserver

to install mysqlclient sudo apt-get install python-dev default-libmysqlclient-dev

About

Simple repository to enjoy the week of the Python and Django from TreinaWeb.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published