This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render | |
from django.http import HttpResponse, JsonResponse, HttpResponseRedirect | |
from pullrss.models import RSSData | |
import feedparser | |
from django.db import IntegrityError | |
from time import mktime | |
from datetime import datetime | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals | |
from django.db import models | |
from django.utils import timezone | |
# CREATE MODELS HERE | |
class RSSJFeed(models.Model): | |
id = models.AutoField(primary_key=True) | |
time = models.DateTimeField(default=timezone.now) | |
title = models.CharField(max_length=60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a fork from Levelsio's gist. | |
# Check the original gist (PHP) https://gist.github.com/levelsio/6716e7261c73fd873ba2ce1f4a406012 | |
# I just converted it so it can be used with Django. | |
# This is all Python3.6 | |
# // <readme> | |
# /* | |
# This is a lite version of Olark's and Intercom's functionality (without the chat part). | |
# It lets you get feedback from users on your site to your email. | |
NewerOlder