This file contains 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
Quick Start Guide | |
================= | |
Download TaskBuster Django Project Boilerplate | |
---------------------------------------------- | |
First, you need to download the BoilerPlate from GitHub. | |
This file contains 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
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) |
This file contains 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
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: |
This file contains 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
{% 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> |
This file contains 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
{% 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> |
This file contains 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
# -*- 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") |
This file contains 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
# -*- 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() |
This file contains 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
# -*- 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) |
This file contains 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
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') | |
""" |
This file contains 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
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction |
NewerOlder