Skip to content

Instantly share code, notes, and snippets.

View byroncorrales's full-sized avatar

Byron Corrales byroncorrales

View GitHub Profile
<!-- Start cars loop -->
<?php
$count = 0;
$separator = 0;
$cat_selected = get_category($cat);
$args = array( 'post_type' => 'car','cat'=>$cat_selected->cat_ID );
$loop = new WP_Query( $args );
echo '<div class="cars-list allcars grid_12">';
while ( $loop->have_posts() ) : $loop->the_post();
<!-- Start cars loop -->
<?php
$count = 0;
$separator = 0;
$cat_selected = get_category($cat);
$args = array( 'post_type' => 'car','cat'=>$cat_selected->cat_ID );
$loop = new WP_Query( $args );
echo '<div class="cars-list allcars grid_12">';
while ( $loop->have_posts() ) : $loop->the_post();
if (file_exists(dirname(__FILE__) . '/local-config.php')){
include(dirname(__FILE__) . '/local-config.php');
define ('WP_LOCALE_DEV',True);
}
else{
define ('WP_LOCALE_DEV',False);
// ** Ajustes de MySQL. Solicita estos datos a tu proveedor de alojamiento web. ** //
/** El nombre de tu base de datos de WordPress */
define('DB_NAME', 'bdserver');
if (file_exists(dirname(__FILE__) . '/local-config.php')){
include(dirname(__FILE__) . '/local-config.php');
define ('WP_LOCALE_DEV',True);
}
else{
define ('WP_LOCALE_DEV',False);
// ** Ajustes de MySQL. Solicita estos datos a tu proveedor de alojamiento web. ** //
/** El nombre de tu base de datos de WordPress */
define('DB_NAME', 'bdserver');
south.exceptions.GhostMigrations:
! These migrations are in the database but not on disk:
<registro: 0005_auto__add_autor__add_libro>
! I'm not trusting myself; either fix this yourself by fiddling
! with the south_migrationhistory table, or pass --delete-ghost-migrations
! to South to have it delete ALL of these records (this may not be good).
urlpatterns = patterns('agualiweb.actividades.views',
url(r'^$', ListView.as_view(model=Actividad,
template_name="actividades/list.html",
queryset=Actividad.objects.filter(fecha_inicio__gte=datetime.date.today()))
<script type="text/javascript">
$(function() {
$elem = $('#actionbuttons');
// detectar el scroll de la ventana y fixear el elemento
$(window).bind('scroll', function() {
var windowTop = $(this).scrollTop();
if(windowTop>=240){
$elem.addClass('fixed');
}else{
{% block extra_header %}
<script type="text/javascript">
$(document).ready(function(){
$('#id_birthdate_month option:first').text('Mes');
$('#id_birthdate_day option:first').text('Dia');
$('#id_birthdate_year option:first').html('A&ntilde;o');
$('#id_nombre').focus();
});
</script>
{% endblock %}
[14:22:18] bcorrales:askbot-mac $ python manage.py runserver
Validating models...
************************
* *
* Askbot self-test *
* *
************************
[13:55:29] bcorrales:askbot-mac $ python manage.py migrate --all
************************
* *
* Askbot self-test *
* *
************************