Tutorial of creating a Poll

2009-03-12 Thread Fred Chevitarese

Hello all ...
It´s my first post on here...
So, i´ve got a little problem when i follow the instructions to create
an app on Django.
I´ve created the Poll like the tutorial, and it´s all ok .
But when i try to put this on a view to show in a template i´ve got
the problem.

I´m from Brazil so, my models, views and templates can be in
portuguese but i think that´s not a problem ;)

Let´s see...
Below the Models File ###
#Poll
class enquete(models.Model):
pergunta = models.CharField('Pergunta', max_length = 50)
habilitada = models.BooleanField('Habilitada', default = True)
dataCriacao = models.DateField(verbose_name = 'Criada em',
auto_now = True, auto_now_add = True)

def __unicode__(self):
return self.pergunta
class Meta:
verbose_name = 'Enquete'
verbose_name_plural = 'Enquetes'
#Choice
class respostaEnquete(models.Model):
idPergunta = models.ForeignKey(enquete)
opcao = models.CharField(verbose_name = u'Opção', max_length = 50)
votos = models.IntegerField(verbose_name = u'Número de votos',
default = 0)

def __unicode__(self):
return self.opcao
class Meta:
verbose_name = 'Resposta da enquete'
verbose_name_plural = 'Respostas das enquetes'

## Now, the views file

# -*- coding: utf-8 -*-
from django.http import HttpResponse
from django.shortcuts import render_to_response

from Teccom.conteudo.models import *
def noticiasIndex(request):
#Pegando as notícias ...
noticias = noticia.objects.filter(habilitada = True).all()
#Getting the notices ...
lista = enquete.objects.all() # getting the poll
return render_to_response('principal.html', locals())

## and now, the Template file ;)

  
{% for enquete in lista %}

{{ enquete.pergunta }}

{% if error_message %}{{ error_message }}{% endif %}


{% for resposta in enquete.resposta_set.all %}


{{ resposta.opcao }}
{% endfor %}



{% endfor %}



Like i said, i can´t get the options ( choices ) ... Only the poll
title apears ..

Can anoyone help me?

Thanks and sorry about my english 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Tutorial of creating a Poll

2009-03-13 Thread Fred Chevitarese
Hello ...

I realy don´t know what happening, but, i´ve deleted my models and the
tables in database, redo all the model and this workds now...

There´s my old code...

*class enquete(models.Model):
  pergunta = models.CharField('Pergunta', max_length = 50)
  habilitada = models.BooleanField('Habilitada', default = True)
  dataCriacao = models.DateField(verbose_name = 'Criada em', auto_now =
True, auto_now_add = True)

  def __unicode__(self):
  return self.pergunta
  class Meta:
  verbose_name = 'Enquete'
  verbose_name_plural = 'Enquetes'

class respostaEnquete(models.Model):
  enquete = models.ForeignKey(enquete)
  opcao = models.CharField(verbose_name = u'Opção', max_length = 50)
  votos = models.IntegerField(verbose_name = u'Número de votos', default =
0)

  def __unicode__(self):
  return self.opcao
  class Meta:
  verbose_name = 'Resposta da enquete'
  verbose_name_plural = 'Respostas das enquetes'
   *

There´s something wrong in this code??

This one works

*class enquete(models.Model):
  pergunta = models.CharField('Pergunta', max_length = 200)
  dataCriacao = models.DateTimeField('Criada em', auto_now = True,
auto_now_add = True)

  def __unicode__(self):
  return self.pergunta
  def publicadaHoje(self):
  return self.dataCriacao.date() == datetime.date.today()
  publicadaHoje.short_description = 'Publicada hoje?'

class resposta(models.Model):
  enquete = models.ForeignKey(enquete)
  opcao = models.CharField(verbose_name = u'Opção', max_length = 200)
  votos = models.IntegerField(verbose_name = 'Votos', default = 0)

  def __unicode__(self):
  return self.opcao*

**

*Thanks for help ;) *

**

***

*

2009/3/12 Karen Tracey 

> On Thu, Mar 12, 2009 at 1:47 PM, Fred Chevitarese 
> wrote:
>
>>
>> Hello all ...
>> It´s my first post on here...
>> So, i´ve got a little problem when i follow the instructions to create
>> an app on Django.
>> I´ve created the Poll like the tutorial, and it´s all ok .
>> But when i try to put this on a view to show in a template i´ve got
>> the problem.
>>
>> I´m from Brazil so, my models, views and templates can be in
>> portuguese but i think that´s not a problem ;)
>>
>> Let´s see...
>> Below the Models File ###
>> #Poll
>> class enquete(models.Model):
>>pergunta = models.CharField('Pergunta', max_length = 50)
>>habilitada = models.BooleanField('Habilitada', default = True)
>>dataCriacao = models.DateField(verbose_name = 'Criada em',
>> auto_now = True, auto_now_add = True)
>>
>>def __unicode__(self):
>>return self.pergunta
>>class Meta:
>>verbose_name = 'Enquete'
>>verbose_name_plural = 'Enquetes'
>> #Choice
>> class respostaEnquete(models.Model):
>>idPergunta = models.ForeignKey(enquete)
>>opcao = models.CharField(verbose_name = u'Opção', max_length = 50)
>>votos = models.IntegerField(verbose_name = u'Número de votos',
>> default = 0)
>>
>>def __unicode__(self):
>>return self.opcao
>>class Meta:
>>verbose_name = 'Resposta da enquete'
>>verbose_name_plural = 'Respostas das enquetes'
>>
>> ## Now, the views file
>>
>> # -*- coding: utf-8 -*-
>> from django.http import HttpResponse
>> from django.shortcuts import render_to_response
>>
>> from Teccom.conteudo.models import *
>> def noticiasIndex(request):
>>#Pegando as notícias ...
>>noticias = noticia.objects.filter(habilitada = True).all()
>> #Getting the notices ...
>>lista = enquete.objects.all() # getting the poll
>>return render_to_response('principal.html', locals())
>>
>> ## and now, the Template file ;)
>>
>>  
>>{% for enquete in lista %}
>>
>>{{ enquete.pergunta }}
>>
>>{% if error_message %}{{ error_message }}> p>{% endif %}
>>
>>    
>>{% for resposta in enquete.resposta_set.all %}
>
>
> enquete instances do not have a resposta_set.  They would have a
> resposta_set if:
>
> 1 - the related model's name was resposta, or if
> 2 - you specified 'resposta_set' as the related_name argument to the
> ForeignKey that points to enquete in the model
>
> However the related model is named respostaEnquete, and its ForeignKey to
> enquete (idPergunta) does not have a related_name specified, so the reverse
> relation accessor in enquete objects is named respostaenquete_set (the
> related models name, lowercased, plus '_set').
>
> Karen
>
> >
>


-- 
Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django blog for google app engine

2009-03-13 Thread Fred Chevitarese
Thanks!!

I´ll take a look ... It´s look nice ;)


2009/3/12 Jacob Kaplan-Moss 

>
> On Tue, Mar 10, 2009 at 12:20 PM, Flank  wrote:
> > where can i get open source blog on django for GAE?
>
> App Engine is new enough you'll probably have better luck writing one
> yourself. Here's a place to start:
> http://www.42topics.com/dumps/appengine/doc.html
>
> Jacob
>
> >
>


-- 
Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Flatpages only works when settings.DEBUG = True

2009-06-24 Thread Fred Chevitarese

What you´ve done?
I´m getting this problem and, try all the following steps like you,
but still not working !

Can you help me ??

On 5 maio, 04:07, Ronghui Yu  wrote:
> It works now. That's because a typo error happens in my 404.html page. And
> it introduces 500.Thanks all.
>
>
>
> On Tue, May 5, 2009 at 9:17 AM, Ronghui Yu  wrote:
> > Yes, 404.html and 500.html are there. But they extend from base.html, which
> > depends on some context variables. I will change them to a simple one and
> > see if the problem still there.Thanks
>
> > On Tue, May 5, 2009 at 12:06 AM, Brian Neal  wrote:
>
> >> On May 4, 10:28 am, Ronghui Yu  wrote:
> >> > Hi,All,
>
> >> > I am going to use Flatpages app for those simple pages. And everything
> >> > works fine when settings.DEBUG is True, but when it is turned to False,
> >> > a URL not configured in urlpatterns will trigger 500, not 404.
>
> >> Do you have a 404.html error template? You need to have that before
> >> flatpages will work when DEBUG is False. See the note titled "Ensure
> >> that your 404 template works" in this section:
>
> >>http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/#module-dj...
>
> >> Its also a good idea to have a 500.html error template.
>
> >> Best,
> >> BN
>
> > --
> > ===
> > Regards
> > Ronghui Yu
>
> --
> ===
> Regards
> Ronghui Yu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: DjangoCon '09

2009-07-13 Thread Fred Chevitarese
It apears to be cool!!! I´m in Brazil!

Maybe someone can record and put it on youtube!!

Hugs...

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

2009/7/13 Robert Lofthouse 

>
> Hi all,
>
> DjangoCon '09 will be in Portland, Oregon at the DoubleTree Green
> Hotel ( http://www.doubletreegreen ) between 8th and 12th September.
> The first 3 days are conference days and the last 2 days are sprint
> days. The rate for single/double occupancy rooms at the hotel is $99
> per night.
>
> You can register at the "early bird" rates at
> http://djangocon09.eventbrite.com
> and keep up to date with the latest news at http://www.djangocon.org/
>
> The keynote speakers will be:
>
> Avi Bryant (@avibryant - http://www.avibryant.com/  )
> Ian Bicking (@ianbicking - http://blog.ianbicking.org/
> Ted Leung (@twleung - http://www.sauria.com/blog/ )
>
> DjangoCon '08 was a success at Google HQ in Mountain View (see the
> videos here: http://www.youtube.com/view_play_list?p=D415FAF806EC47A1
> ) and I'm sure we're going to have a lot of fun this time around as
> well.
>
> Hope to see you there!
>
> Regards
>
> Robert Lofthouse (@djangocon/@robertlofthouse)
> DjangoCon/EuroDjangoCon Chairman
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Running the site

2009-07-13 Thread Fred Chevitarese
In tis package, you have the database? If yes, you can setup your
settings.py poiting to this database.

After that, you can run the command python manage.py inspectdb sending the
result to a txt file.
Then, you can "refactory" the models file ;)

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

2009/7/10 kannan4k 

>
> Hi Friends...
>I am new to Django.I Just learning the django now.
>  http://in.pycon.org/2009/ . That  website uses django
>  and the code is here - http://bitbucket.org/lawgon/fossconf/downloads/
>
> In this Source code I din't find the models.py to run the Local
> Server.In what way can i run this package in my local system.
>
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



How to add a new button near to "Add a new article"

2009-07-14 Thread Fred Chevitarese

Hello!
I´m needing to add a button near to the button to add another object.
For example, there´s a app called Articles...
When i´m in the admin interface, i can see all the articles that i
have in the database in a grid. In the top, i have a button to add a
new article.
So, i want to put another button near to this, to call another view
for example. I can put a "link" in the grid that calls the desired
view, but, i really need to put it near to this button.

Can anyone help ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Style sheet not working after shifting from desktop to laptop

2009-07-14 Thread Fred Chevitarese

Use the Chrome Browser to see the source code generated by Django, and
then you can follow the css of your page.

Than, you can see if this is pointing to the rigth place ;)

http://chevitarese.wordpress.com
Fred Chevitarese - GNU/Linux

On Jul 14, 9:55 am, Lakshman Prasad  wrote:
> Either you have a wrong directory pointed to, in your settings.py file for
> static media; or you haven't configured django to serve them.
>
> You need to define MEDIA_ROOT and MEDIA_URL in the settings.py
> appropriately. Once you have done that, you can setup django to serve those
> during development, by using the following pattern in the urls.py.
>
>     urlpatterns += patterns('django.views.static',
>         (r'^app/(?P.*)$', 'serve', { 'document_root':
> settings.DIRNAME,
>                                         'show_indexes': True }),
>     )
>
>
>
>
>
> On Tue, Jul 14, 2009 at 11:22 AM, djangonoob  wrote:
>
> > Hi, I have developed a simple application on my desktop computer
> > successfully using django 1.02, Ubuntu 9.04, python version 2.6.2
>
> > I copied my files over to my laptop computer and did the following:
> > 1) ran the django-admin.py startproject projectName
> > 2) cd to projectName folder, and ran the python manage.py startapp
> > appName.
>
> > After which i copied my application folder over to appName with the
> > same name.
>
> > Than i ran python manage.py runserver on my laptop
>
> > My application works, but than the css style sheet is not working; my
> > application has no style.
>
> > But upon inspecting the source code of the generated page, the  > rel="stylesheet" href="/media_user/css/style.css" type="text/css" />
> > url and others are correct.
>
> > But the style simply does not show.
>
> > Anyone faced this problem before and solve it?
>
> > best Regards.
>
> --
> Regards,
> Lakshmanhttp://uswaretech.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Forms: Set default value

2009-07-15 Thread Fred Chevitarese
You can set the default choice in the model like this.
SEARCH_CHOICES = (
('G', 'google'),
('Y', 'Yahoo'),
('L', 'Live Search'),
)

Now, your model will be set like this...

class anything(models.Model):
 title = models.CharField(max_length = 80)
 search_engine = models.CharField(max_length = 1, choices =
SEARCH_CHOICES, default = 'google')


Hope it help!!

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

2009/7/15 Wiiboy 

>
> Hi,
> I'm defining a form model, and I have a choice field.  I have the
> values in order, and I want one value (in the middle of the values in
> order) to be the default.  How do I do that?
>
> Passing initial= anything doesn't work.
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: DjangoCon '09

2009-07-15 Thread Fred Chevitarese
Yes!! That will be good!!
hello gustavo!! I like your blog very much !!! ;)

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

2009/7/14 Gustavo Henrique 

>
> +1, too
>
> I thinks interesting record in video all about that.
> This important for consolidate the Django with all developers in the world.
>
>
>
> --
> Gustavo Henrique
> Site: http://www.gustavohenrique.net
> Blog: http://blog.gustavohenrique.net
>
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Forms: Set default value

2009-07-15 Thread Fred Chevitarese
I guess you can use the choices in the form that you´ve created!

class AuthorForm(forms.Form):
name = forms.CharField(max_length=100)
title = forms.CharField(max_length=3,
widget=forms.Select(choices=TITLE_CHOICES))
birth_date = forms.DateField(required=False)

Take a look here <http://docs.djangoproject.com/en/dev/topics/forms/modelforms/>

There´s an explanation for what you desire!




2009/7/15 Wiiboy 

>
> Sorry, I was little unclear above.  I need to set the default for a
> form.
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: PyOhio - Python Regional Conference

2009-07-15 Thread Fred Chevitarese
Record this !!! And put on Youtube for us!!! Whe´re in Brazil!!!

Thanks! ;)

2009/7/15 Alex Gaynor 

>
> PyOhio:
> Dates: 25th - 26th July
> More info: http://www.pyohio.org/Home
>
> Later this month will be the 2nd Python regional conference in
> Columbus, OH. This year the conference will feature two full days of
> talks as well as sprints. There will be general web framework talks,
> including one by Mark Ramm (Choosing a web technology stack), general
> Python talks and also two Django talks.
>
> The date of the sprints has yet to be nailed down, but they will
> probably be on the Friday and Saturday of the conference weekend. We
> will be having a Django sprint, which will likely coincide with the
> head of the 1.2 development cycle. The timing makes it a perfect
> opportunity to work on the pony you've always wanted.
>
> If you're interested in attending the Django sprint, please sign up
> for yourself here: http://www.pyohio.org/Sprints/Projects/Django
> (you'll need to be registered and logged in).
>
> For further general sprint information you can go to:
> http://www.pyohio.org/Sprints/
>
> Hope to see you there!
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your
> right to say it." -- Voltaire
> "The people's good is the highest law." -- Cicero
> "Code can always be simpler than you think, but never as simple as you
> want" -- Me
>
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Where is the "Else if"... ?

2009-07-29 Thread Fred Chevitarese
Maybe you have to look on the python documentation.

http://www.python.org/doc/

2009/7/29 Asinox 

>
> Hi guy, im looking for the simpley  if ...else if but i cant see
> in the django documentation 
>
> Thanks :)
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django and ZSI

2009-10-07 Thread Fred Chevitarese
Hello all!! I've been looking for a while in this group, then i find this
message...
Anyone has an example of python/Django with ZSI, suds, Soappy or another
that exists ?
I'm looking for anything but the documentation is not good...

If anyone has a piece of code to take a look it would be appreciated...

Thanks in advance ;)

http://chevitarese.wordpress.com
Fred Chevitarese - GNU/Linux


2009/10/7 Janusz 

>
> HI,
> I have an additional question to this topic: how exactly do you deploy
> ZSI-generated web services from within Django?
> BR/Janusz
>
> On Sep 2, 2:37 am, Julián C. Pérez  wrote:
> > Thanks
> >
> > On Aug 31, 3:22 pm, Antoni Aloy  wrote:
> >
> >
> >
> > > 2009/8/31 Julián C. Pérez :
> >
> > > > Anyone has experience with using web services inDjango??
> > > > I mean, not necessarily withZSIbut others methods...
> >
> > > Yes, we have many of the working. But this is no aDjangoissue is
> > > more a Python programming one. You can access to Soap web services
> > > usingZSI, SUDS, Soappy or whatever you like to use.
> >
> > > Isolate the web service client and use the parts you need. We have
> > > worked withZSImainly, but actually we're moving to Suds.
> >
> > > To act a a server we prefer to simplify and we're using xml over http
> > > or REST services. Both live perfectly withDjango.
> >
> > > --
> > > Antoni Aloy López
> > > Blog:http://trespams.com
> > > Site:http://apsl.net
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: where can I find email alert functionality

2009-10-07 Thread Fred Chevitarese
I'm looking for this too, but had no success... I'll have to made your own
...

http://chevitarese.wordpress.com
Fred Chevitarese - GNU/Linux


2009/10/6 Norman 

>
> hello,
>
> I look for  email alert functionality, where readers sign up to get
> notifications when news happens. But I can't find any suitable django
> app.
>
> So where can I find something like this?
>
> Any snippet or source code?
>
> regards, nomanek
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Model Theory 101 - Video Sharing App

2009-11-12 Thread Fred Chevitarese
Hello ...
I've made one app as you like...

http://code.google.com/p/django-youtube-syncronizer/

;)

http://chevitarese.wordpress.com
Fred Chevitarese - GNU/Linux


2009/8/28 thornomad 

>
> Hi thanks for the response - I had looked at oembed, but it didn't
> seem like it would grab the title, description, play count, etc ...
> which was the information I was going for.  There is also a markdown
> plugin, that seems to work similiar.  If I went the route of just
> posting video (which I may, if I get tired of working on the complex)
> this would work great.  I'm also looked at django-syncr, which is
> similiar to what I am aiming for ...
>
> On Aug 27, 10:08 am, Bill Freeman  wrote:
> > Look at django-oembed.  A CharField will serve for every (supported)
> > provider.
> >
> > On Wed, Aug 26, 2009 at 8:17 PM, thornomad  wrote:
> >
> > > Hi - need some suggestions.
> >
> > > I am trying to put together an app that allows users to submit links
> > > to videos at popular video sharing sites (e.g., youtube, vimeo, etc)
> > > -- the links get submitted, data about the video (title, description,
> > > play count, etc) is collected from the respective site and populates
> > > model fields, and the video entry is queued for review.
> >
> > > Caveats: I would like to keep the original "synced" data in its own
> > > field and the "approved" data (as edited) in separate field.  I
> > > imagine that the data first gets brought into the "edit" field, admin
> > > may make changes and save, but the "originating" data will remain
> > > separate and continue to be updated (synced).
> >
> > > This means I need at least
> >
> > > I am stuck, though, on the most appropriate/logical approach to this
> > > app.  Some approaches I've considered.
> >
> > > [1] My first thought is to create base model "Video" (with the main
> > > fields) and then create child models like YoutubeVideo and VimeoVideo
> > > and BlipVideo ... when the user submits a url, would do a regex on it
> > > in the view, and send it through the appropriate child class.  I could
> > > then grab the base Video model in my views (not having to distinguish
> > > the type of video) and use a "leaf" technique (eg,
> > >http://www.djangosnippets.org/snippets/1031/) to run the child's
> > > "sync" or "update" command.  CONS: seems tacky and not easy to build
> > > on.  The leaf technique isn't working when I override the save()
> > > function in leaf models.
> >
> > > [2] Perhaps create only a single model and then create separate
> > > classes/functions to handle the the syncing of data based on the
> > > URLField data ... so, perhaps when Video.update() is called, it would
> > > run the logic then to see what kind of url it has, and how to update
> > > it.  CONS: I thought maybe I could just create a ForeignKey field to a
> > > non-model group of classes with common functions (update, sync,
> > > etc) ... but I am not sure how, or if, I can do that.
> >
> > > [3] Outsourcing.
> >
> > > Hope this makes sense and folks have some feedback about how they
> > > might approach this.  I would like this to be easily expandable -- for
> > > example, add YouTube and Vimeo support to start, and easily add other
> > > sites without having to "hack" it.
> >
> > > I know this is a huge question, but am interested in your "Design
> > > Approach" thoughts ...
> >
> > > Thanks,
> > > Damon
> --~--~-~--~~~---~--~~
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en
> -~--~~~~--~~--~--~---
>
>

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.




Re: Django DatabaseError when using sqlall and syncdb

2010-04-27 Thread Fred Chevitarese
Hi!

As you said, you´ve created a new database, or you created a database and
restore a backup ?
Try to create a new and after this, run syncdb.


http://chevitarese.wordpress.com
Fred Chevitarese - GNU/Linux


2010/4/27 larsendt 

> I'm having issues creating a new database for my app. I'm using the
> Django 1.2 beta.
> I wrote the "people" app on another computer, and now I'm trying to
> get it working on a little server I have set up.
> When I try:
>
>./manage.py sqlall people
>
> I get the error:
>
>django.db.utils.DatabaseError: (1146, "Table
> 'peace_tracker_db.people_person' doesn't exist")
>
> I have already created the db in MySQL.
> The same thing happens when I use ./manage.py syncdb
>
> From what I've read elsewhere, there's a bug that has a similar effect
> when using multiple databases, but I am only using one database.
>
> Any suggestions?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: TemplateDoesNotExist

2010-11-12 Thread Fred Chevitarese
Look at settings.py and see where in which directory are configured your
templates.
Then, you can see at the error what file he is searching for...
"TemplateNotFound" /home/fred/teste.hlml

Something like this :P

Hope it helps ;)

http://chevitarese.wordpress.com
Fred Chevitarese - GNU/Linux


2010/11/12 lch...@gmail.com 

> I think the problem is that Django is looking for a template that has
> not been created. I need to make sure the template exists, but don't
> know how to do this.
>
> On Nov 12, 2:33 pm, Daniel Roseman  wrote:
> > On Nov 12, 7:23 pm, "lch...@gmail.com"  wrote:
> >
> >
> >
> > > I'm trying to update a website that I didn't create that uses Django,
> > > but am running into some issues.
> >
> > > 1. I use the Django Admin site to create a new flat page
> > > 2. I create a new file named "yourname.html"
> > > 3. I FTP the file to my server
> >
> > > When I try to test it, I get a 500 Internal Site Error.  My logs are
> > > telling me that it isn't finding the template
> > > "TemplateDoesNotExist".
> >
> > > I have no idea how to troubleshoot this and I'm not very familiar with
> > > Django.
> >
> > > Please help me!
> >
> > > Thanks!
> >
> > You don't give nearly enough information. What is the "yourname.html"
> > file for? Where are you uploading it to? Does that match any paths in
> > your settings file?
> > --
> > DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ANN: django-iadmin

2011-07-04 Thread Fred Chevitarese
Hmmm I like it !

All those features are already working?


^^


"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com





2011/7/4 creecode 

> Sounds interesting!  Thanks!
>
>
> On Monday, July 4, 2011 11:06:44 AM UTC-7, sax wrote:
>>
>> Django iAdmin
>>
>> iAdmin is a replacement of standard django admin application.
>> Features
>>
>>- multiple columns portlets-like home page
>>- tabbed view of inlines
>>- mass updates functionality
>>- export to csv with options and formatting
>>- advanced import from csv with foreign key handling
>>- link to foreignkey edit page from changelist
>>(list_display_rel_links)
>>- filter by cell values (cell_filters)
>>- ajax autocomplete widgets for ForeignKey
>>- auto register missed modules.
>>- auto add fields not present in fieldset (add_undefined_fields)
>>- utilities ( tabular_factory)
>>- info page for packages and application version
>>- integrated file manager with upload/zip functionality
>>- WYSIWYG editor wymeditor
>>- shortcuts to configure django.contrib.* applications
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/PCtWyR-jwVMJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ANN: django-iadmin

2011-07-04 Thread Fred Chevitarese
Thanks!

I will try to test :P


"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com





2011/7/4 sax 

> yep, but more test needed
>
> sax
>
>
>
>
> 2011/7/4 Fred Chevitarese 
>
>> Hmmm I like it !
>>
>> All those features are already working?
>>
>>
>> ^^
>>
>>
>> "
>> *O relógio da vida recebe corda apenas uma vez.*
>> *Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo
>> ou se mais tarde.*
>> *O presente é o único tempo que você possui.*
>> *Viva, ame e trabalhe com vontade.*
>> *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a
>> qualquer momento.*
>> "
>>
>> Fred Chevitarese - GNU/Linux
>> http://chevitarese.wordpress.com
>>
>>
>>
>>
>>
>> 2011/7/4 creecode 
>>
>>> Sounds interesting!  Thanks!
>>>
>>>
>>> On Monday, July 4, 2011 11:06:44 AM UTC-7, sax wrote:
>>>>
>>>> Django iAdmin
>>>>
>>>> iAdmin is a replacement of standard django admin application.
>>>> Features
>>>>
>>>>- multiple columns portlets-like home page
>>>>- tabbed view of inlines
>>>>- mass updates functionality
>>>>- export to csv with options and formatting
>>>>- advanced import from csv with foreign key handling
>>>>- link to foreignkey edit page from changelist
>>>>(list_display_rel_links)
>>>>- filter by cell values (cell_filters)
>>>>- ajax autocomplete widgets for ForeignKey
>>>>- auto register missed modules.
>>>>- auto add fields not present in fieldset (add_undefined_fields)
>>>>- utilities ( tabular_factory)
>>>>- info page for packages and application version
>>>>- integrated file manager with upload/zip functionality
>>>>- WYSIWYG editor wymeditor
>>>>- shortcuts to configure django.contrib.* applications
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/django-users/-/PCtWyR-jwVMJ.
>>>
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Building app on already existing set of DB tables

2010-12-22 Thread Fred Chevitarese
I think you can configure your settings to access the database, and after
that, you can run this command:

python manage.py inspectdb > youtfile.txt

Than, you'll have to realocate the models, 'cause django will output all
tables in the database like models.py ;)

Is that what you want?

Hope it help!


Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com



2010/12/22 Vikram 

> Hi,
>
> I am working on building an app that reports the data from the already
> existing tables in the Oracle DB. These tables are data-dictionary
> tables and my application will connect to these tables using read-only
> access to SELECT and draw graphs on the webpage.
> How do I build my application that queries the already existing
> tables? Am new to web development and all Django documentation
> discusses models that get created according to the models.py.
>
> Scenario:
> table v$session contains all the current sessions information and is
> under SYS user. My web application should connect as webinfo user that
> has read-only access on v$session table, query the data and present it
> in webpage.
>
> Do I write views that directly talk to these tables, pull data and
> render it online? Or is there a better way?
>
> Thanks
> Vikram
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: E-commerce site

2011-02-09 Thread Fred Chevitarese
I know. Lot of people don´t like ides, but i like it! xD

And i use Komodo Edit. You can configure a lot of shortcuts to increasing
your the development.
I´ve made an "tutorial" to explain how to create those shortcuts... It´s in
portuguese but you can use google translator.
The video don´t have audio... So, here goes the link!

http://chevitarese.wordpress.com/2009/11/17/django-criando-atalhos-na-ide-komodo/

Hope it helps!


"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com





2011/2/8 Kenneth Gonsalves 

> On Tue, 2011-02-08 at 05:53 -0800, Arun K.Rajeevan wrote:
> > The one e-commerce solution I found and looks promising is Stachmo
> >  http://www.satchmoproject.com/
> > which is django based.
>
> go for it - it is developed by people with a long history of developing
> e-commerce sites in a variety of platforms before they came to django
> and they know what they are doing.
> --
> regards
> KG
> http://lawgon.livejournal.com
> Coimbatore LUG rox
> http://ilugcbe.techstud.org/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: E-commerce site

2011-02-09 Thread Fred Chevitarese
Ops, i forgot...

Here´s another e-commerce system made in Django...

http://www.getlfs.com/start

<http://www.getlfs.com/start>;)


"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com





2011/2/9 Fred Chevitarese 

> I know. Lot of people don´t like ides, but i like it! xD
>
> And i use Komodo Edit. You can configure a lot of shortcuts to increasing
> your the development.
> I´ve made an "tutorial" to explain how to create those shortcuts... It´s in
> portuguese but you can use google translator.
> The video don´t have audio... So, here goes the link!
>
>
> http://chevitarese.wordpress.com/2009/11/17/django-criando-atalhos-na-ide-komodo/
>
> Hope it helps!
>
>
> "
> *O relógio da vida recebe corda apenas uma vez.*
> *Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo
> ou se mais tarde.*
> *O presente é o único tempo que você possui.*
> *Viva, ame e trabalhe com vontade.*
> *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a
> qualquer momento.*
> "
>
> Fred Chevitarese - GNU/Linux
> http://chevitarese.wordpress.com
>
>
>
>
>
> 2011/2/8 Kenneth Gonsalves 
>
> On Tue, 2011-02-08 at 05:53 -0800, Arun K.Rajeevan wrote:
>> > The one e-commerce solution I found and looks promising is Stachmo
>> >  http://www.satchmoproject.com/
>> > which is django based.
>>
>> go for it - it is developed by people with a long history of developing
>> e-commerce sites in a variety of platforms before they came to django
>> and they know what they are doing.
>> --
>> regards
>> KG
>> http://lawgon.livejournal.com
>> Coimbatore LUG rox
>> http://ilugcbe.techstud.org/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: E-commerce site

2011-02-09 Thread Fred Chevitarese
Yeah! Komodo Edit is free and is a very very good ide.
In Komodo Ide you will have lot´s of features... But i think it´s expensive
and Komodo Edit works very nice!  ^^

;) cya!


"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com





2011/2/9 Kenneth Gonsalves 

> On Wed, 2011-02-09 at 16:22 +0530, Arun K.Rajeevan wrote:
> > I know the place to ask satchmo related questions is there mailing
> > list.
> > But, still, Yesterday I tried installing satchmo and everything went
> > right,
> > except pictures (of products) are not showing up.
>
> actually I am not much into satchmo - but pictures not showing up is
> usually due to path problems. If satchmo uses the MEDIA_ROOT for
> uploaded pictures, make sure the path is correct.
> --
> regards
> KG
> http://lawgon.livejournal.com
> Coimbatore LUG rox
> http://ilugcbe.techstud.org/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread Fred Chevitarese
I guess you are making an mistake.
It have to be something like this: {% now "jS F Y H:i" %}

You can take a look at the table with the custom datefilters:

http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#date

;)

Hope it help!





"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com





2011/2/9 creecode 

> Hello all,
>
> I'm trying to use the now template tag <
> http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now >
> with the predefined format DATE_FORMAT and the now tag seems to be
> processing the predefined format as a custom format.
>
> I tried...
>
> {% now "DATE_FORMAT" %}
>
> ...and get back...
>
> WedAMPSTEPST0FebE_February-0800RFebAMPST
>
> Any thoughts on what I'm doing wrong?
>
> I'm using Django 1.2.x, have USE_I18N and USE_L10N set to True, and
> LANGUAGE_CODE is 'en-us' in settings.py.
>
> Toodle-l
> creecode
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread Fred Chevitarese
I guess :P


"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com





2011/2/9 Fred Chevitarese 

> I guess you are making an mistake.
> It have to be something like this: {% now "jS F Y H:i" %}
>
> You can take a look at the table with the custom datefilters:
>
> http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#date
>
> ;)
>
> Hope it help!
>
>
>
>
>
> "
> *O relógio da vida recebe corda apenas uma vez.*
> *Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo
> ou se mais tarde.*
> *O presente é o único tempo que você possui.*
> *Viva, ame e trabalhe com vontade.*
> *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a
> qualquer momento.*
> "
>
> Fred Chevitarese - GNU/Linux
> http://chevitarese.wordpress.com
>
>
>
>
>
> 2011/2/9 creecode 
>
> Hello all,
>>
>> I'm trying to use the now template tag <
>> http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now >
>> with the predefined format DATE_FORMAT and the now tag seems to be
>> processing the predefined format as a custom format.
>>
>> I tried...
>>
>> {% now "DATE_FORMAT" %}
>>
>> ...and get back...
>>
>> WedAMPSTEPST0FebE_February-0800RFebAMPST
>>
>> Any thoughts on what I'm doing wrong?
>>
>> I'm using Django 1.2.x, have USE_I18N and USE_L10N set to True, and
>> LANGUAGE_CODE is 'en-us' in settings.py.
>>
>> Toodle-l
>> creecode
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django + FacebookConnect

2011-02-10 Thread Fred Chevitarese
Hi all!

Anyone has an example of loggin/register users using Facebook?
All the ways i try just don´t work or don´t work fine.

A simple example will be appreciated!

Thanks in advance!!!


"
*O relógio da vida recebe corda apenas uma vez.*
*Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou
se mais tarde.*
*O presente é o único tempo que você possui.*
*Viva, ame e trabalhe com vontade.*
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer
momento.*
"

Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Installing Django [Again]

2015-07-09 Thread Fred Chevitarese
Well Steve, i will try to help you!

1 - Make sure to put Python at the system path.  I mean, you can run python
at prompt?
2 - After that, make sure C:\PythonXX\Scripts is on system path as well.
3 - Now, you need to create your project. Try to run django-admin.py to see
if there's any information. If yes, go ahead and create your project with
django-admin.py startproject project_name

There's a link on how to do steps 1 and 2 --> http://goo.gl/wxtgb
Another one --> http://goo.gl/qlppe9


Here you can find how to install Django, but i think you already did -->
https://goo.gl/rI55Le

And finally how you create your project, apps and so on!
Go ahead and try the tutorial. It's the first step to make anything,
otherwise, you will always get stuck =D
https://goo.gl/Z7Ik2w

Hope it helps =D

Cheers!


Em qui, 9 de jul de 2015 às 13:39, Steve Burrus 
escreveu:

> *I know thrat I have appealed for help about this before but I am having
> problems aGAIN with installing Django. Well I was able to run "pip install
> django" okay but then I don't know where to go from there! Here is where I
> am now :  (myenv)C:\Users\SteveB\Desktop\myenv>*
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7621b62f-01fc-4ef4-8907-7385b9e31a17%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKyfVpJQTrYQ3fpRzsJg9BNEKXX5pkffB9ZTnUtFNO8LJHKGdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model forms

2017-01-24 Thread Fred Chevitarese
Hey!

I use this app to make my job easier :P
https://github.com/dyve/django-bootstrap3

Just install it and follow the instructions ;)


Cheers!



*"*
*São os homens que mais me surpreendem na humanidade. Porque perdem a saúde
para juntar dinheiro, depois perdem dinheiro para recuperar a saúde. E por
pensarem ansiosamente no futuro, esquecem do presente de tal forma que
acabam por não viver nem o presente nem o futuro. E vivem como se nunca
fossem morrer e morrem como se nunca tivessem vivido” - Dalai Lama.*
*"*

*Fred Chevitarese - GNU/Linux*
*http://chevitarese.wordpress.com* <http://chevitarese.wordpress.com>



2017-01-24 11:06 GMT-02:00 JJEMBA KENNETH :

> Hello Django user,
> Am a new user and am worndering  How can I add a css class to django model
> forms, like bootstrap classes
>
> --
> Jjemba Kenneth
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CALHyo8_vKn7wJQAjTOqgqZMscB2nUakBxCCDi
> %2Bhb62rCYOuQ-g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALHyo8_vKn7wJQAjTOqgqZMscB2nUakBxCCDi%2Bhb62rCYOuQ-g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKyfVp%2ByKyuGUqUXe72efNVD_jW3-YwcEH-Okc2LTD_ik51VbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: can somebody help me understand django framework please

2017-06-23 Thread Fred Chevitarese
Hi!

Well, there's a lot of video courses on youtube althougt i think taking the
official tutorial is nice as well:

Official tutorial: https://docs.djangoproject.com/en/1.11/intro/tutorial01/
Youtube course:
https://www.youtube.com/watch?v=KdPf-pNK1s0&list=PLEsfXFp6DpzQSEMN5PXvEWuD2gEWVngCZ

Good studies!




*"*
*São os homens que mais me surpreendem na humanidade. Porque perdem a saúde
para juntar dinheiro, depois perdem dinheiro para recuperar a saúde. E por
pensarem ansiosamente no futuro, esquecem do presente de tal forma que
acabam por não viver nem o presente nem o futuro. E vivem como se nunca
fossem morrer e morrem como se nunca tivessem vivido” - Dalai Lama.*
*"*

*Fred Chevitarese - GNU/Linux*
*http://chevitarese.wordpress.com* <http://chevitarese.wordpress.com>



2017-06-23 9:51 GMT-03:00 Daniel Jacob <
jacob.dan...@covenantuniversity.edu.ng>:

> I am new to django and i want some form of tutorial
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/ba4fbd0c-1579-41aa-afed-2146b296f56d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ba4fbd0c-1579-41aa-afed-2146b296f56d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKyfVp%2BzJDkhqMHw04b-ZuAZGVs%3DpP8E_iw82_kihV6KVT0SQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.