This file contains hidden or 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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script> | |
<script> | |
$(function(){ | |
/** | |
* Algoritmo para validar cedulas de Ecuador | |
* @Author : Victor Diaz De La Gasca. | |
* @Fecha : Quito, 15 de Marzo del 2013 | |
* @Email : [email protected] | |
* @Pasos del algoritmo |
This file contains hidden or 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
misitio | |
-misitio | |
--_init_.py | |
--settings.py | |
--models.py | |
--urls.py | |
--views.py | |
-manage.py | |
-db.sqlite3 |
This file contains hidden or 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
from django.conf.urls import patterns, url | |
from app import views | |
urlpatterns = patterns('', | |
url(r'^$', views.app_index, name='app_index'), | |
) |
This file contains hidden or 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
from django.conf.urls import patterns, include, url | |
from django.conf import settings | |
from django.contrib import admin | |
admin.autodiscover() | |
urlpatterns = patterns('', | |
url(r'^admin/', include(admin.site.urls)), | |
url(r'^', include('misitio.apps.main.urls')), | |
) |
This file contains hidden or 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
INSTALLED_APPS = ( | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'misitio.apps.main', | |
) |
This file contains hidden or 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
STATICFILES_DIRS = ( | |
os.path.join(BASE_DIR, 'misitio/static'), | |
) |
This file contains hidden or 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
from django.conf.urls import patterns, include, url | |
#Importamos los settings | |
from django.conf import settings | |
from django.contrib import admin | |
admin.autodiscover() | |
urlpatterns = patterns('', | |
url(r'^admin/', include(admin.site.urls)), | |
url(r'^', include('misitio.apps.main.urls')), |
This file contains hidden or 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> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>{% block title %}Mi App con Django 1.6{% endblock title %}</title> | |
</head> | |
<body> | |
{% block body %} | |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
from django.conf.urls import patterns, include, url | |
from tutorial1.apps.main import views | |
urlpatterns = patterns('tutorial1.apps.main.views', | |
url(r'^$', 'app_home', name="url_home"), | |
url(r'^usuario/login/$', 'app_login', name="url_login"), | |
url(r'^usuario/logout/$', 'app_logout', name="url_logout"), | |
) |
OlderNewer