Skip to content

Instantly share code, notes, and snippets.

Quick Start Guide
=================
Download TaskBuster Django Project Boilerplate
----------------------------------------------
First, you need to download the BoilerPlate from GitHub.
Requirements
============
The requirements necessary to use this Django Project Boilerplate are:
- **python3** and **pip3**
- **virtualenv and virtualenvwrapper**
- **Firefox** (to use Selenium's Webdriver in functional Tests)
- **GNU gettext** (to use Internationalization)
Welcome to TaskBuster's documentation!
======================================
This is an awesome **Django Project Boilerplate**!!
With this code you can start a *complex* Django Project
very quickly, with just a few steps!
Some of the TaskBuster Django Project Boilerplate functionalities are:
{% extends "base.html" %}
{% block head_title %}TaskBuster Django Tutorial{% endblock %}
{% block content %}
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
{% load staticfiles %}
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{% block head_title %}{% endblock %}</title>
# -*- coding: utf-8 -*-
from django.test import TestCase
from django.core.urlresolvers import reverse
class TestHomePage(TestCase):
def test_uses_index_template(self):
response = self.client.get(reverse("home"))
self.assertTemplateUsed(response, "taskbuster/index.html")
# -*- coding: utf-8 -*-
from selenium.webdriver.firefox import webdriver
from django.core.urlresolvers import reverse
from django.contrib.staticfiles.testing import LiveServerTestCase
class HomeNewVisitorTest(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.WebDriver()
# -*- coding: utf-8 -*-
from selenium import webdriver
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
self.browser.implicitly_wait(3)
import re
import urllib2
# Abrimos el sitemap - formato xml
f = open('sitemap.xml', 'r')
# Abrimos el archivo donde vamos a guardar los resultados
s = open('urls_sitemap.txt', 'w')
"""
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction