Git Product home page Git Product logo

pythonic-news's Introduction

pythonic-news

A Hacker News lookalike written in Python/Django, powering https://news.python.sc

screenshot

Setup for local development

Set up virtual environment

python -m venv venv/
source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Migrate Database

python manage.py migrate

Extra setup work

  • Set DEBUG=True if necessary
  • Add 127.0.0.1 to ALLOWED_HOSTS

Run Django Server

python manage.py runserver

Now you can access the website at 127.0.0.1:8000.

pythonic-news's People

Contributors

imrosca avatar michaelmuggler avatar psyonara avatar sebst avatar vivgui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pythonic-news's Issues

update github description

The description reads "A Hacker News lookalike written in Python/Django, powering https://news.python.sc https://news.python.sc", which is probably due to the two fields "Description" and "Website" right there at the top of the github repository (see screenshot:
pythonic-news-header)

I'd suggest only putting the link into the "Website" section and updating the Description to "A Hacker News lookalike written in Python/Django"

Progressive web app

Hi there thanks for building and hosting the application. I've really enjoyed the content posted so far.

Would you be interested in adding progressive web app functionality to the site?

There is actually a Django package for this django-pwa. Please let me know your thoughts, I'd be happy to submit a pull request :)

Maybe for starters some client side caching of certain static files and the ability to add the page to home screen.

add RSS feed

Seems commented in the source, would be nice for parsing / automation (e.g. send email digest of top commented/voted links)

How to run this project

ERROR: Cannot install -r requirements.txt (line 22), -r requirements.txt (line 3) and colorama<0.4 and >=0.3 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested colorama<0.4 and >=0.3
awsebcli 3.15.3 depends on colorama<0.4.0 and >=0.3.9
docker-compose 1.23.2 depends on colorama<0.5 and >=0.4; sys_platform == "win32"

Isn't it a contradiction?

Please don't use plural for single items

When browsing Pythonic News on the web I often see things like “1 comments”. Please take the trouble to use singular when there is only 1 item, and plural otherwise (0 or more than 1).

Website inaccessible

The website https://news.python.sc/ is inaccessible: "504 Gateway Time-out".
I regret it as it was a really good working python news aggregator.
I hope it will come back.

If you need help, I could try to help you

how to deploy locally?

Here are the steps I followed in ubuntu18 python3.6.8:

python -m venv venv
source venv/bin/activate
python manage.py migrate
python manage.py runserver

In hnclone/settings.py i changed:

ACCEPT_UNINVITED_REGISTRATIONS = True

When I hit register I see

Server Error (500)

Is there a way to increase the length limit of the url being submitted?

I initially got 500 error, but it turns out to be database problem.

However, it seems that the length of the submitted url is limited, it will be cut off if it is too long. For example:

http://www.rfi.fr/cn/%E4%B8%AD%E5%9B%BD/20200212-%E4%B8%96%E5%8D%AB%E7%BB%84%E7%BB%87-%E5%8E%9F%E6%9C%AC%E6%9C%89%E6%9C%BA%E4%BC%9A%E9%98%B2%E6%AD%A2%E6%96%B0%E5%86%A0%E7%97%85%E6%AF%92%E5%90%91%E4%B8%96%E7%95%8C%E6%89%A9%E6%95%A3

Is there a way to increase the length limit to say 500?

Navigation to go to previous 30 news

A navigation should be added next to more at the bottom of the page . In this way users can easily switch from previous 30 to next 30 news. I would like to work on this feature.

Design

Hi. If you're interested in updating the design away from the classic hackernews style and towards a more modern/accessible look, let me know. I'd love to contribute.

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.