Skip to content
View gist:3380826
<!-- 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();
View gist:3380824
<!-- 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();
View gist:2970737
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');
View gist:2970734
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');
View gist:2913770
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).
View gist:2782765
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()))
View gist:2759141
<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{
View gist:2759125
{% 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 %}
View gist:2713654
[14:22:18] bcorrales:askbot-mac $ python manage.py runserver
Validating models...
************************
* *
* Askbot self-test *
* *
************************
View gist:2713570
[13:55:29] bcorrales:askbot-mac $ python manage.py migrate --all
************************
* *
* Askbot self-test *
* *
************************
Something went wrong with that request. Please try again.