Skip to content

HurricaneHackers/hurricanehackers.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hurricanehackers.com

Problem:

Live updates are being made to the google docs: *https://bit.ly/hh-index *https://bit.ly/hh-linklist *https://bit.ly/hh-projects *https://bit.ly/hh-timeline *Add your new collaborative page here: (did I miss any?)

Solution:

Current solution: Useing Flask, Requests and BeautifulSoup to parse the GoogleDocs. Then applying a caching system so we ain't parsing the page upon every request.

Old info below:

Description:

Builds the website from django templates. Uses the django template system to create static files for the website. This allows easy inclusion of common content, but removes the need for (e.g.) PHP includes that don't really do anything dynamic.

Build Requirements: =================== -Python 2.6 (or above): http://www.python.org/getit/ -Django: http://www.djangoproject.com/download/ -Apache (or another http server): http://www.apache.org/dyn/closer.cgi

Build Instructions:

You can build the website for all languages, by doing: $ python build-website.py

Development

Without push access to repository: *fork from https://github.com/HurricaneHackers/hurricanehackers.com/ *submit a pull request *try not to edit code on the server directly, it is better to git clone https://github.com/HurricaneHackers/hurricanehackers.com/ to a local directory and then push back up to github before doing a git pull from github --> server (iniated by git pull command on the server).

With push access to repository: PM @samthetechie on irc or DM/@ on twitter.

Deployment

1st time: $ ssh username@yourserver.com $ cd /var/www $ sudo su (needed for writing to the apache directory depending on your configuration) $ git clone https://github.com/HurricaneHackers/hurricanehackers.com/ $ python build-website.py

updating: $ ssh username@yourserver.com $ cd /var/www $ sudo su (needed for writing to the apache directory depending on your configuration) $ git pull https://github.com/HurricaneHackers/hurricanehackers.com/ $ python build-website.py

.djt Template Code Examples

for loop demo

strings: {# note: not iteritems(); django does this automatically #}

{% for k, v in strings.iteritems %} {{k}} = {{v}} {% endfor %}

accessing "deep" variables directly

{{strings.key1}} {% endblock %}

Known Bugs:

jQuery bug stops the FAQ box from expanding Horrible inline style in certain divs. Any css tweaks welcome :)

About

code for hurricanehackers.com to push to the domain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages