Skip to content

Creating a Django project with the tutorial given on the official website of Django

Notifications You must be signed in to change notification settings

luisfelipe7/Django-Python-SimpleProgram-To-Learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Markdownify
Learning Django

Creating a Django project with the tutorial given on the official website of Django.

  Key FeaturesInstallationRun itHow to use itCredits

Key Features

  • A public site that lets people view polls and vote in them.
  • An admin site that lets you add, change, and delete polls.

Installation

  1. Donwload Python 3 from https://www.python.org/downloads/.
  2. Install Pip with this link: https://pip.pypa.io/en/stable/installing/ , if you don't know if you have pip, type this command
# Verify pip
$ pip -V

Once you have pip installed, update pip with this command

# Update pip
$ pip install -U pip
  1. Download or clone this repository in your folder
# Clone this repository
$ git clone https://github.com/luisfelipe7/Django-SimpleProgram-To-Learn
  1. Go into the repository
# Go into the repository
$ cd Django-SimpleProgram-To-Learn
  1. Create a virtual environment
# Install virtualenv 
$ sudo pip install virtualenv 
# Create a virtual environment with Python3, env is the name of the environment
$ virtualenv env --python=python3 
# Activate your environment
$ cd env
$ source bin/activate 
  1. With the activated environment, install the requirements:
# Install requirements
$ pip install -r requirements.txt
  1. Run it.

Run it

  1. Configure your database and sync your models
# Apply Migrations
$ python manage.py migrate
  1. Create a superuser for admin views
# Create a superuser
$ python manage.py createsuperuser
  1. Run your development server
# Run a development server
$ python manage.py runserver

How to use it

Enter to these URL's:

Credits

Thanks to Django for the tutorial given on the official website.


GitHub @luisfelipe7  · 

About

Creating a Django project with the tutorial given on the official website of Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published