Skip to content

RubenZx/StarWars_Searcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StarWars searcher (Chewy)

    This is a Python/Django app of StarWars using Swapi, it's a website called Chewy where you can see all the data of Swapi with images and different elements. This is a project to learn how to work with django and improve my skills in python.

Getting Started

    Instructions to obtain and run the application in systems with Linux (Ubuntu 18.04.2 LTS)

Prerequisites

     To execute this project you'll need the following requeriments

Python >= 3.6.8
git 

Installing

     To get and install this app you'll have to follow the next steps

git clone https://github.com/RubenZx/StarWars_Searcher.git
cd StarWars_Searcher/StarWars
pip3 install -r requeriments.txt
python3 manage.py makemigrations
python3 manage.py migrate

Usage

     First of all you'll need to create an admin user if you want to access to the admin part of the site, to load data and see what data you have in your database of the site (optional)

python3 manage.py createsuperuser

     Now you are ready to run the aplication

python3 manage.py runserver

     Note: You can load the data in 2 different ways:

  1. Using the following command in the shell:
python3 manage.py load_data
  1. In the admin site there is a button to load_data, that will load/update it

     After this you can open your browser and type the following link localhost:8000. You will see the following sections in your website:

  • Logo, this is the home button
  • Categories, a dropdown where you can see the different sections of the website
    • Films
    • Characters
    • Planets
    • Species
    • Starships
    • Vehicles
  • Historic, another dropdown where you will see the last 10 pages visited in the website
  • Log in, this is a button to go to the admin site
  • Search bar, to look up a film

Main page

Built With

  • Django - The web framework used

About

Django Star-Wars web using Swapi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published