Coder Social home page Coder Social logo

django-weather-app's Introduction

App to check the weather forecast by Postal/ZIP code


How to Run the Weather App server:

  1. Using CLI, go to the WeatherApp project path (where the manage.py is located): $ cd /c/djangoweather/weather

  2. Start Django web server with this command: $ python manage.py runserver

  3. Now the Django server is running on: http://localhost:8000/


#Additional info to setup the development environment:


How to setup the virtual environment for development:

  1. Create new project directory (this folder will hold 2 things, the virtual env AND the WeatherApp project itself): $ mkdir /c/djangoweather

  2. Move into the project directory: $ cd /c/djangoweather

  3. Install the virtual environment python module: $ pip install virtualenv

  4. Create a virtual environment called 'venv' (last argument of the command): $ python -m venv venv

  5. Turn on the virtual environment (to deactivate the virtual env: $ deactivate): $ source venv/Scripts/activate


How to install Django:

  1. Move into the project directory: $ cd /c/djangoweather

  2. Install Django: $ pip install django


How to create the new WeatherApp project itself (named 'weather'):

  1. Move into the project directory: $ cd /c/djangoweather

  2. Create the new project WeatherApp (named 'weather'): $ django-admin startproject weather


The directory organization would be as follows:

  1. /c/djangoweather/venv
  2. /c/djangoweather/weather
  3. /c/djangoweather/weather/weather
  4. /c/djangoweather/weather/lookup

django-weather-app's People

Contributors

nicolasdiez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.