Git Product home page Git Product logo

example-news-feed's Introduction

News Feed Example

Steps to Run Example:

Step 1: Create a virtual environment

I included a "requirements.txt" file that you can use to install all the dependencies for running the app.

NOTE: if you already have Django 1.9+ installed, you can probably skip this step.

Simply run:

$ virtualenv venv
$ source venv/bin/activate
$ cd news_feed
$ pip install -r requirements.txt

Step 2: Run the Django app

I also included a very light weight Sqlite Database. No need to 'migrate' anything.

Go into the Django app and run:

$ python manage.py runserver

Step 3: Try out different URLs

There is NO authentication in this system, all you have to do is change the URL to see a different News Feed.

Here are the URLs you can try:

(http://localhost:8000/feed/christy/)[http://localhost:8000/feed/christy/] (http://localhost:8000/feed/bob/)[http://localhost:8000/feed/bob/] (http://localhost:8000/feed/dorthy/)[http://localhost:8000/feed/dorthy/]

There is also an Admin site that you can use to change the data:

(http://localhost:8000/admin)[http://localhost:8000/admin]

To access the admin site:

Username: admin Password: adminadmin

Hope you find this valuable.

example-news-feed's People

Watchers

James Cloos 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.