GithubHelp home page GithubHelp logo

welbornprod / wp_site Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 40.33 MB

Django site for welbornprod.com...

Python 67.27% CSS 5.74% JavaScript 9.75% HTML 15.02% Shell 2.14% Awk 0.09%
python django django-apps personal-website personal-site miscellaneous-scripts highlighting javascript webapps sass

wp_site's Introduction

welborn prod.

Django site for welbornprod.com...

It features a blog app I made to suit my needs, projects, web applications, and miscellaneous scripts that I've written for one reason or another. It's a mixture of Python/Django, HTML/Templates, JavaScript, and SASS/CSS. It uses a Postgres backend to handle all the storage.

Django Apps:

All apps were created from scratch, because in the beginning I didn't see many django apps to suit my specific needs.

Apps:

The apps are web-based applications, and are meant to stand alone. They still depend on the home/main.html template, but work with their own set of tools and models.

Apps/Paste:

The paste app is a paste-bin that uses Ace Editor to provide syntax-highlighted viewing/editing. Pastes expire after a day, unless they are 'on-hold'. They can have parents/replies, which are displayed in the listing and on the paste's view. Pastes can be private (unlisted) or public.

Apps/PhoneWords:

The phonewords app will find common english words that can be formed with a U.S. phone number, or the reverse (words to phone numbers).

Blogger:

The blogger app is a basic blog app, with pagination and a brief index page. This has nothing to do with the more popular django app named 'blogger'.

Downloads:

The downloads app tracks the download count for any file, as long as it is linked to /dl/file. Right now it is coupled with several other apps, to update the download_count on the Project/Misc/etc. objects themselves, instead of just the file name.

Home:

The home app provides a landing page for the site, with featured projects, blog posts, and web apps.

Img:

The img app provides an image uploader/viewer. Only admins can upload an image.

Misc:

The misc app provides a list of 'Misc. Objects', which are miscellaneous scripts/modules that are too small to warrant a full 'Project' page.

Projects:

The projects app provides a list of 'Projects', which are various programs that I've written over the years.

Searcher:

The searcher app allows various models to be searched. It gathers the objects and buids a WpResult based on their attributes defined in app/search.py. It depends on INSTALLED_APPS, and looks for a search.py within the apps. As long as the must-have functions are implemented in search.py the app's models can be searched.

Stats:

The stats app provides view/download counts for the various models found in the other apps. It currently provides the counts for apps, pastes, blog posts, file trackers, images, misc objects, and projects.

Viewer:

The viewer app will display a syntax-highlighted file, and will show extra information if the file is related to a Project/Misc. It also updates the view_count on the Project/Misc/etc. objects for files that are related to these objects.

Wp_Main:

The wp_main app holds many utilities that are used throughout the other apps. Common http responses, response filters, html methods, server-side highlighting methods, tweet tools, and various other utility methods are found here. The main SASS imports are also in wp_main.


Language/Libraries:

Python 3+

...this isn't 100% Python 2 compatible anymore.

Django 1.10.4+ - (django)

...awesome web framework that made this possible

Django Debug Toolbar - (django-debug-toolbar)

...for very useful django debugging info in the browser.

Django Extensions - (django-extensions)

...several extra tools to use with Django's manage tool.

Django Solo - (django-solo)

...provides singleton models, for home config.

Django User Agents - (django-user-agents)

...using it for browser/mobile detection right now.

...I'm using media queries but there are a few things that the user agent is still good for.

Pygments - (pygments)

...used for source code highlighting.

Twython - (twython)

...uses the Twitter API to retrieve latest tweets.

There is a working requirements.txt that lists all the python dependencies more precisely.

Notes:

The site is live, if you'd like to see what I have so far you can do so here:

welbornprod.com

It's running on an Apache server, hosted by WebFaction.

wp_site's People

Contributors

cjwelborn avatar

Watchers

 avatar  avatar

wp_site's Issues

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.