Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Django Template

About The Project

This project was completed as part of Writing your first Django app form Django documentation. I am tasked to make full use of Django and Python knowledge and its accompanying documentation to create an APIs for polls and vote.

Technologies

This project was created with:

  • Python
  • Django
  • PostgreSQL

Installation

Run Locally

Clone the project

git clone https://github.com/SupTarr/Python-Django-Template

Set up Python and packages

To install Python on your machine go to Python Download.

py --version

To install virtualenv via pip

py -m pip install --user virtualenv

To create a virtual environment for your project, open a new command prompt, navigate to the folder where you want to create your project and then enter the following:

py -m virtualenv .

To activate the environment, run:

.\Scripts\activate.bat

In the command prompt, ensure your virtual environment is active, and execute the following command:

pip install -r requirements.txt

Set up Django and run server locally

Create a mysite directory in your current directory.

django-admin startproject mysite

To create your app, make sure you’re in the same directory as manage.py and type this command:

py manage.py startapp app_name

Verify it’s working with the following command:

python manage.py runserver

About

Make full use of Django and Python knowledge and its accompanying documentation to create an APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages