Creating a Django project with the tutorial given on the official website of Django.
• Key Features • Installation • Run it • How to use it • Credits
- A public site that lets people view polls and vote in them.
- An admin site that lets you add, change, and delete polls.
- Donwload Python 3 from https://www.python.org/downloads/.
- 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 -VOnce you have pip installed, update pip with this command
# Update pip
$ pip install -U pip- Download or clone this repository in your folder
# Clone this repository
$ git clone https://github.com/luisfelipe7/Django-SimpleProgram-To-Learn- Go into the repository
# Go into the repository
$ cd Django-SimpleProgram-To-Learn- 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 - With the activated environment, install the requirements:
# Install requirements
$ pip install -r requirements.txt- Run it.
- Configure your database and sync your models
# Apply Migrations
$ python manage.py migrate- Create a superuser for admin views
# Create a superuser
$ python manage.py createsuperuser- Run your development server
# Run a development server
$ python manage.py runserverEnter to these URL's:
Thanks to Django for the tutorial given on the official website.
GitHub @luisfelipe7 ·
