ismail-s / fireblog Goto Github PK
View Code? Open in Web Editor NEWA basic blog (in Python)
Home Page: https://ismail-s.github.io/fireblog
License: GNU General Public License v2.0
A basic blog (in Python)
Home Page: https://ismail-s.github.io/fireblog
License: GNU General Public License v2.0
With pages that display multiple posts, the amount of posts to display on a page is currently hardcoded. This can be made to be configurable as a setting.
Alternatively, it could be made configurable on the page itself, but that seems overly complex IMO, or to put it better, I don't want that feature atm.
If this could be done successfully, it could allow for moving the themes into separate python packages.
Instead of just redirecting to the homepage, we should be using javascript to poll the homepage repeatedly until it comes back up. With some status message saying how many times we have polled or something like that.
Create a setting for the max number of items in the RSS feed.
Line 30 in 7fcead8
This is a bit of a generic issue, but there are various places in the blog where things can mess up in ways that won't be nicely handled. For example, when checking for updates, the git commands can fail. It would be nice to check for these issues, and at least pretty print them, or something.
Atm, when updating, new packages aren't being installed. Ideally, we would install them in the background first, then once they are installed, we offer the update. Or something like that. I need to think about how to structure the whole process.
https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android?hl=en
Can be done as a setting.
Now that I am using uwsgi as the default server, we can't afford to have mismatches due to different worker processes using their own internal caches.
The script can be improved to make the initial data better, and we can prompt the user for an initial admin email address
See https://github.com/jek/blinker. I am still debating the idea of plugins.
When adding or deleting a post, the corresponding element in the cache is deleted, which is correct.
However, we should also invalidate the cache elements for the previous and next posts under certain conditions:
Ideally the fix for this would be done in conjunction with switching to firing off events when adding/deleting posts.
Need to be able to change blog title, theme.
Or at least, call them in a way which doesn't conflict with how uwsgi runs the web app. atm when there are issues with the settings db, uwsgi doesn't let stdout/stdin work for this function.
When running ìnitialize_fireblog_db
, it says at the end to run pserve development.ini
. this should be changed to the equivalent uwsgi comnmand.
Keep track of deps, to ensure that any updates to a package don't mess things up. Atm, this isn't done, any version is accepted for (nearly) all packages.
Look into adding gravatar support, downloading the images on the server side and directly including them in the Web page.
Running alembic migrations and the initialize_fireblog_db script should be consolidated into one setup process.
Maybe use https://github.com/nvdv/vprof to find slow parts.
Atm, whenever personatestuser.org goes down, the tests fail. It would be much better to instead mock out the functionality. This would probs also speed up the tests.
Line 185 in 8166ade
I think maybe the GPL v2.
When updating, any new deps need to be installed first. I see 2 ways of doing this:
The latter sounds easier to do, IMO, and it is done at a point when it is expected that things will take some time. Also, in the future, we could send updates on the progress of the update whilst it is happening to the admin who initiated it.
This is required for nice auto updates.
In various places, there are imports with try...except
to deal with Python 3.2. We should have a single file to deal with this.
A simple way may be to have the code on pypi. Then, whenever a new version is put on pypi, we update and restart.
If possible, having some sort of graceful restart would be really nice, but is not necessary at this point.
Once uwsgi integration has been achieved, then work can start on restarting the blog programmatically.
By a simple theme, I mean as just raw html. Basically the opposite of what a theme normally would be.
This is unfortunately necessary as it will be discontinued.
title="blah"
Yes, this will slow things down a bit, but it is important.
See webhelpers2
Atm, there is initialize_fireblog_db
and uwsgi
, one for upgrading/checking/setting up db and one for running the website. It would be good to combine the 2 into one grand command which takes as input an ini file and does whatever it is told to do.
Well, when I say all, I am excluding when within a textarea ofc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.